Documentation
¶
Index ¶
- Constants
- func NewBasicAuthSecret(secretNamespace, secretName, registry, user, password string) (*corev1.Secret, error)
- func NewECRLoginCredentialsSecret(secretNamespace, secretName, accountID, region, awsAccessKeyID, ... string) *corev1.Secret
- func SecretNameFromURL(prefix, url string) string
- type DockerRegistryConfig
- type LoginCredentials
Constants ¶
View Source
const ( SecretTypeBasicAuth = "kubernetes.io/dockerconfigjson" SecretTypeECRCredentials = "banzaicloud.io/aws-ecr-login-config" SecretKeyDockerConfig = ".dockerconfigjson" ECRSecretRegion = "region" ECRSecretAccountID = "accountID" ECRSecretKeyAccessKeyID = "accessKeyID" ECRSecretSecretKey = "secretKey" ECRRoleArn = "roleArn" )
nolint:gosec
Variables ¶
This section is empty.
Functions ¶
func NewBasicAuthSecret ¶
func SecretNameFromURL ¶
Types ¶
type DockerRegistryConfig ¶
type DockerRegistryConfig struct {
Auths map[string]LoginCredentials `json:"auths"`
}
DockerRegistryConfig represents a docker compliant image pull secret json file
type LoginCredentials ¶
Click to show internal directories.
Click to hide internal directories.