lib/metatron/templates/daemon_set.rb in metatron-0.1.5 vs lib/metatron/templates/daemon_set.rb in metatron-0.1.6

- old
+ new

@@ -5,21 +5,14 @@ # The DaemonSet Kubernetes resource class DaemonSet < Template include Concerns::Annotated include Concerns::PodProducer - attr_accessor :replicas, :pod_annotations, - :additional_labels, :additional_pod_labels + attr_accessor :replicas, :additional_labels def initialize(name) super(name) @api_version = "apps/v1" - @pod_annotations = {} - @additional_pod_labels = {} - end - - def formatted_pod_annotations - pod_annotations && !pod_annotations.empty? ? { annotations: pod_annotations } : {} end # rubocop:disable Metrics/MethodLength # rubocop:disable Metrics/AbcSize def render