lib/metatron/templates/concerns/pod_producer.rb in metatron-0.2.6 vs lib/metatron/templates/concerns/pod_producer.rb in metatron-0.2.7

- old
+ new

@@ -6,11 +6,11 @@ # A mixin to assist with templating Kubernetes resources that create Pods module PodProducer def self.included(base) # rubocop:disable Metrics/MethodLength # base.extend ClassMethods base.class_eval do - attr_accessor :active_deadline_seconds, :additional_labels, :additional_pod_labels, + attr_accessor :active_deadline_seconds, :additional_pod_labels, :affinity, :automount_service_account_token, :containers, :dns_policy, :enable_service_links, :hostname, :host_ipc, :host_network, :host_pid, :image_pull_secrets, :init_containers, :node_selector, :node_name, :persistent_volume_claims, :pod_annotations, :restart_policy, :scheduler_name, :security_context, :service_account, @@ -37,10 +37,9 @@ alias_method :terminationGracePeriodSeconds, :termination_grace_period_seconds end end def pod_producer_initialize - @additional_labels = {} @additional_pod_labels = {} @affinity = {} @containers = [] @enable_service_links = nil @image_pull_secrets = []