Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeApply = "apply" TypeFile = "file" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyConfig ¶
type ApplyConfig struct {
CreateOnly bool `json:"createOnly"`
}
ApplyConfig represents the configuration for directly applying sealed secret
func (*ApplyConfig) UpdateSealedSecret ¶
func (c *ApplyConfig) UpdateSealedSecret( ctx context.Context, k8sConfig clientcmd.ClientConfig, pubKey *rsa.PublicKey, secret *v1.Secret, ) error
UpdateSealedSecret updates a sealed secret by applying it directly to the cluster
type FileConfig ¶
type FileConfig struct { Path string `json:"path"` Relative bool `json:"relative"` CreateOnly bool `json:"createOnly"` }
FileConfig represents the configuration for using a file as sealed secret output
func (*FileConfig) UpdateSealedSecret ¶
func (c *FileConfig) UpdateSealedSecret( ctx context.Context, k8sConfig clientcmd.ClientConfig, pubKey *rsa.PublicKey, secret *v1.Secret, ) error
UpdateSealedSecret updates a sealed secret and writes it to a file
Click to show internal directories.
Click to hide internal directories.