secrets

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerSecretKey    = ".dockerconfigjson"
	DockerPrefixSecret = "reg-cred"
	DockerConfigType   = "kubernetes.io/dockerconfigjson"
)
View Source
const (
	// TODO use an increment in order to be able to manage several repository git
	GitTektonAnnotation = "tekton.dev/git-0"
	GitPrefixSecret     = "secret-git"
	GitSecretKey        = "git_token"
	GitUsername         = "oauth2"
)
View Source
const (
	// filename use with s3cmd
	MinIOSecretKey string = ".s3cfg"
	// Prefix use for name of resource
	MinIOPrefixSecret string = "minio"
	// s3cfg config template
	MinIOSecretTemplate string = `` /* 576-byte string literal not displayed */

)

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) GitCreate

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

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

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