Documentation ¶
Index ¶
- Constants
- type Secret
- func (s *Secret) DockerCredCreate(ctx context.Context, r client.Client, log logr.Logger) error
- func (s *Secret) GetSecret(key ci.SecretKind, logger logr.Logger) string
- func (s *Secret) GetToken(v *config.Vault, logger logr.Logger) string
- func (s *Secret) GetVaultSecret(key ci.SecretKind, sec ci.VaultSecret, logger logr.Logger) (secret string)
- func (s *Secret) GitCreate(ctx context.Context, r client.Client, logger logr.Logger) error
- func (s *Secret) KubeConfigCreate(ctx context.Context, r client.Client, logger logr.Logger) error
- func (s *Secret) MinIOCreate(ctx context.Context, r client.Client, log logr.Logger) error
Constants ¶
View Source
const ( // GitTektonAnnotation // TODO use an increment in order to be able to manage several repository git GitTektonAnnotation = "tekton.dev/git-0" GitPrefixSecret = "secret-git" GitUsername = "oauth2" )
View Source
const ( KubeConfigKey = "kubeconfig" KubeConfigPrefix = "kubeconfig" )
View Source
const ( // MinIOSecretKey filename use with s3cmd MinIOSecretKey string = ".s3cfg" // MinIOPrefixSecret Prefix use for name of resource MinIOPrefixSecret string = "minio" // MinIOSecretTemplate s3cfg config template MinIOSecretTemplate string = `` /* 576-byte string literal not displayed */ )
View Source
const (
DockerPrefixSecret = "reg-cred"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Secret ¶
type Secret struct { internal.WorkFlowStruct Value string }
func (*Secret) DockerCredCreate ¶
DockerCredCreate creates the docker config json secret and add it into the service account
func (*Secret) GetSecret ¶ added in v0.8.0
GetSecret return the secret from vault if defined else the play secret as default
func (*Secret) GetVaultSecret ¶ added in v0.8.0
func (s *Secret) GetVaultSecret(key ci.SecretKind, sec ci.VaultSecret, logger logr.Logger) (secret string)
GetVaultSecret return the secret from vault
func (*Secret) GitCreate ¶
GitCreate creates the git credential secret and add it into the service account
func (*Secret) KubeConfigCreate ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.