secrets

package
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

func (s *Secret) DockerCredCreate(ctx context.Context, r client.Client, log logr.Logger) error

DockerCredCreate creates the docker config json secret and add it into the service account

func (*Secret) GetSecret added in v0.8.0

func (s *Secret) GetSecret(key ci.SecretKind, logger logr.Logger) string

GetSecret return the secret from vault if defined else the play secret as default

func (*Secret) GetToken added in v0.8.0

func (s *Secret) GetToken(v *config.Vault, logger logr.Logger) string

GetToken from play is exist or get it from config

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

func (s *Secret) GitCreate(ctx context.Context, r client.Client, logger logr.Logger) error

GitCreate creates the git credential secret and add it into the service account

func (*Secret) KubeConfigCreate added in v0.8.0

func (s *Secret) KubeConfigCreate(ctx context.Context, r client.Client, logger logr.Logger) error

func (*Secret) MinIOCreate

func (s *Secret) MinIOCreate(ctx context.Context, r client.Client, log logr.Logger) error

MinIOCreate creates the minio secret that contains the .s3cfg configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL