Sha256: 6610e25dc370dd0446ef8b4393efb566f276b8968e8593c428d0282b5105e562
Contents?: true
Size: 742 Bytes
Versions: 6
Compression:
Stored size: 742 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: { "#{label_namespace}/name": name }.merge(additional_labels) }.merge(formatted_annotations).merge(formatted_namespace), type:, stringData: data } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems