Sha256: 1ad5b8a5f2fb55fcbdd23087155dca37d1161fec51d03dd19dba34ff4b13fd83
Contents?: true
Size: 734 Bytes
Versions: 4
Compression:
Stored size: 734 Bytes
Contents
# frozen_string_literal: true module Metatron module Templates # The Secret Kubernetes resource class Secret < Template include Concerns::Annotated include Concerns::Namespaced attr_accessor :additional_labels, :type, :data def initialize(name, data = {}) super(name) @data = data @additional_labels = {} @type = "Opaque" end def render { apiVersion:, kind:, metadata: { name:, labels: base_labels.merge(additional_labels) }.merge(formatted_annotations).merge(formatted_namespace).compact, type:, stringData: data }.compact end end end end
Version data entries
4 entries across 4 versions & 1 rubygems