Documentation ¶
Index ¶
Constants ¶
View Source
const ( AwsAccessKeyName = "aws_access_key_id" AwsSecretKeyName = "aws_secret_access_key" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsSecretConverter ¶ added in v0.18.12
type AwsSecretConverter struct{}
The purpose of this implementation of the SecretConverter interface is to provide a way for the user to specify AWS secrets without having to use an annotation to identify the secret as a AWS secret. Instead of an annotation, this converter looks for the two required fields.
func (*AwsSecretConverter) FromKubeSecret ¶ added in v0.18.12
func (t *AwsSecretConverter) FromKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*AwsSecretConverter) ToKubeSecret ¶ added in v0.18.12
func (t *AwsSecretConverter) ToKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
type SecretConverterChain ¶ added in v0.18.12
type SecretConverterChain struct {
// contains filtered or unexported fields
}
func NewSecretConverterChain ¶ added in v0.18.12
func NewSecretConverterChain(converters ...kubesecret.SecretConverter) *SecretConverterChain
func (*SecretConverterChain) FromKubeSecret ¶ added in v0.18.12
func (t *SecretConverterChain) FromKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*SecretConverterChain) ToKubeSecret ¶ added in v0.18.12
func (t *SecretConverterChain) ToKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
type TLSSecretConverter ¶
type TLSSecretConverter struct{}
func (*TLSSecretConverter) FromKubeSecret ¶
func (t *TLSSecretConverter) FromKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*TLSSecretConverter) ToKubeSecret ¶
func (t *TLSSecretConverter) ToKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
Click to show internal directories.
Click to hide internal directories.