Sha256: fe451b09210ca67149b756550628f1d4438d1afaeceff0dfcd550fdc3814a8be
Contents?: true
Size: 680 Bytes
Versions: 4
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true module Metatron module Templates # The Secret Kubernetes resource class Secret < Template include Concerns::Annotated 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: { "#{label_namespace}/name": name }.merge(additional_labels) }.merge(formatted_annotations), type:, stringData: data } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems