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

- old
+ new

@@ -5,22 +5,15 @@ # The Deployment Kubernetes resource class Deployment < 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, replicas: 2) super(name) @api_version = "apps/v1" @replicas = replicas - @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