lib/metatron/templates/daemon_set.rb in metatron-0.1.8 vs lib/metatron/templates/daemon_set.rb in metatron-0.1.9

- old
+ new

@@ -3,10 +3,11 @@ module Metatron module Templates # The DaemonSet Kubernetes resource class DaemonSet < Template include Concerns::Annotated + include Concerns::Namespaced include Concerns::PodProducer attr_accessor :replicas, :additional_labels def initialize(name) @@ -21,10 +22,10 @@ apiVersion:, kind:, metadata: { name:, labels: { "#{label_namespace}/name": name }.merge(additional_labels) - }.merge(formatted_annotations), + }.merge(formatted_annotations).merge(formatted_namespace), spec: { selector: { matchLabels: { "#{label_namespace}/name": name }.merge(additional_pod_labels) }, template: {