Documentation ¶
Index ¶
Constants ¶
View Source
const ( AwsAccessKeyId = "AWS_ACCESS_KEY_ID" AwsSecretAccessKey = "AWS_SECRET_ACCESS_KEY" AwsDefaultRegion = "AWS_DEFAULT_REGION" EcrSaSecretName = "ecr-sa" )
View Source
const (
BasicRegCredSecretName = "basic-regcred"
)
View Source
const (
GcrSaSecretName = "gcr-sa"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicRegCred ¶
type BasicRegCred struct {
// contains filtered or unexported fields
}
func CreateBasicRegCred ¶
func CreateBasicRegCred(clientset kubernetes.Interface, secretNamespace string) *BasicRegCred
func (*BasicRegCred) Add ¶
func (u *BasicRegCred) Add(job *batchv1.Job)
func (*BasicRegCred) ShouldAdd ¶
func (u *BasicRegCred) ShouldAdd() bool
type CredentialAdder ¶
type ECR ¶
type ECR struct {
// contains filtered or unexported fields
}
type GCR ¶
type GCR struct {
// contains filtered or unexported fields
}
func (*GCR) Add ¶
Klar is using google SDK to pull the user name and password required to pull the image. We need to do the following: 1. Create a volume that holds the `gcrSaSecretFileName` data 2. Mount the volume into each container to a specific path (`gcrVolumeMountPath`/`gcrSaSecretFileName`) 3. Set `GOOGLE_APPLICATION_CREDENTIALS` to point to the mounted file
Click to show internal directories.
Click to hide internal directories.