k8s

package
v0.0.0-...-b19e3a3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigReader

type ConfigReader struct {
	// contains filtered or unexported fields
}

func NewGithubAppConfigReader

func NewGithubAppConfigReader(client client.Client, scheme *runtime.Scheme, eventRecorder record.EventRecorder) ConfigReader

func (ConfigReader) GetConfig

func (k ConfigReader) GetConfig(ctx context.Context) (githubAppIdStr string, appPrivateKeyPem []byte, err error)

type GitCredentialProvider

type GitCredentialProvider struct {
	// contains filtered or unexported fields
}

GitCredentialProvider is an implementation of the git.CredentialsProvider that retrieves the git credentials from the Kubernetes secrets

func NewGitCredentialProvider

func NewGitCredentialProvider(client client.Client) *GitCredentialProvider

func (*GitCredentialProvider) GetBasicAuthCredentials

func (k *GitCredentialProvider) GetBasicAuthCredentials(ctx context.Context, component *git.ScmComponent) (*BasicAuthCredentials, error)

func (*GitCredentialProvider) GetSSHCredentials

func (k *GitCredentialProvider) GetSSHCredentials(ctx context.Context, component *git.ScmComponent) (*SSHCredentials, error)

func (*GitCredentialProvider) LookupSecret

func (k *GitCredentialProvider) LookupSecret(ctx context.Context, component *git.ScmComponent, secretType corev1.SecretType) (*corev1.Secret, error)

Jump to

Keyboard shortcuts

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