mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 10:15:22 +00:00
20 lines
625 B
Go
20 lines
625 B
Go
// Copyright 2019 The Kubernetes Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package types
|
|
|
|
// SecretArgs contains the metadata of how to generate a secret.
|
|
type SecretArgs struct {
|
|
// GeneratorArgs for the secret.
|
|
GeneratorArgs `json:",inline,omitempty" yaml:",inline,omitempty"`
|
|
|
|
// Type of the secret.
|
|
//
|
|
// This is the same field as the secret type field in v1/Secret:
|
|
// It can be "Opaque" (default), or "kubernetes.io/tls".
|
|
//
|
|
// If type is "kubernetes.io/tls", then "literals" or "files" must have exactly two
|
|
// keys: "tls.key" and "tls.crt"
|
|
Type string `json:"type,omitempty" yaml:"type,omitempty"`
|
|
}
|