Documentation
¶
Index ¶
- Constants
- func GenerateBasicAuthSecretName() string
- func GetCurrentNSWebhookSecret(ctx context.Context, k8int kubeinteraction.Interface, run *params.Run) (string, error)
- func GetSecretsAttachedToPipelineRun(ctx context.Context, k kubeinteraction.Interface, pr *tektonv1.PipelineRun) []ktypes.SecretValue
- func MakeBasicAuthSecret(runevent *info.Event, secretName string) (*corev1.Secret, error)
- func ReplaceSecretsInText(text string, values []ktypes.SecretValue) string
- type SecretFromRepository
Constants ¶
View Source
const ( DefaultGitProviderSecretKey = "provider.token" DefaultGitProviderWebhookSecretKey = "webhook.secret" )
Variables ¶
This section is empty.
Functions ¶
func GenerateBasicAuthSecretName ¶
func GenerateBasicAuthSecretName() string
func GetCurrentNSWebhookSecret ¶ added in v0.46.0
func GetCurrentNSWebhookSecret(ctx context.Context, k8int kubeinteraction.Interface, run *params.Run) (string, error)
GetCurrentNSWebhookSecret get secret from namespace as stored on context.
func GetSecretsAttachedToPipelineRun ¶
func GetSecretsAttachedToPipelineRun(ctx context.Context, k kubeinteraction.Interface, pr *tektonv1.PipelineRun) []ktypes.SecretValue
GetSecretsAttachedToPipelineRun get all secrets attached to a PipelineRun and grab their values attached to it.
func MakeBasicAuthSecret ¶
MakeBasicAuthSecret Make a secret for git-clone basic-auth workspace.
func ReplaceSecretsInText ¶
func ReplaceSecretsInText(text string, values []ktypes.SecretValue) string
ReplaceSecretsInText this will take a text snippet and hide the leaked secret.
Types ¶
type SecretFromRepository ¶ added in v0.46.0
type SecretFromRepository struct {
K8int kubeinteraction.Interface
Config *info.ProviderConfig
Event *info.Event
Repo *apipac.Repository
WebhookType string
Namespace string
Logger *zap.SugaredLogger
}
Click to show internal directories.
Click to hide internal directories.