lib/metatron/templates/stateful_set.rb in metatron-0.6.0 vs lib/metatron/templates/stateful_set.rb in metatron-0.6.1

- old
+ new

@@ -23,23 +23,23 @@ alias serviceName service_name alias strategy update_strategy alias strategy= update_strategy= alias updateStrategy update_strategy - def render # rubocop:disable Metrics/AbcSize + def render { apiVersion:, kind:, metadata: { name:, - labels: { "#{label_namespace}/name": name }.merge(additional_labels) + labels: base_labels.merge(additional_labels) }.merge(formatted_annotations).merge(formatted_namespace), spec: { replicas:, serviceName:, updateStrategy:, selector: { - matchLabels: { "#{label_namespace}/name": name }.merge(additional_pod_labels) + matchLabels: base_labels.merge(additional_pod_labels) } }.merge(pod_template).merge(volume_claim_templates).compact } end end