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

- old
+ new

@@ -5,31 +5,23 @@ # Template for basic StatefulSet k8s resource class StatefulSet < Template include Concerns::Annotated include Concerns::PodProducer - attr_accessor :replicas, :pod_annotations, :service_name, - :pod_management_policy, :enable_service_links, - :additional_pod_labels + attr_accessor :replicas, :service_name, :pod_management_policy, :enable_service_links def initialize(name, replicas: 1) super(name) @replicas = replicas @api_version = "apps/v1" - @pod_annotations = {} @pod_management_policy = "OrderedReady" - @additional_pod_labels = {} @enable_service_links = true @service_name = name end alias enableServiceLinks enable_service_links alias podManagementPolicy pod_management_policy alias serviceName service_name - - def formatted_pod_annotations - pod_annotations && !pod_annotations.empty? ? { annotations: pod_annotations } : {} - end # rubocop:disable Metrics/MethodLength # rubocop:disable Metrics/AbcSize def render {