Documentation ¶
Overview ¶
Library for updating the token used to pull images from GCR in the surrounding cluster.
Index ¶
Constants ¶
View Source
const SecretName = "gcr-json-key"
Name of the secret that stores the GCR pull token.
Variables ¶
This section is empty.
Functions ¶
func DockerCfgJSON ¶
DockerCfgJSON takes a service account key, and converts it into the JSON format required for k8s's docker-registry secrets.
func UpdateGcrCredentials ¶
func UpdateGcrCredentials(ctx context.Context, k8s *kubernetes.Clientset, auth *robotauth.RobotAuth) error
UpdateGcrCredentials authenticates to the cloud cluster using the auth config given and updates the credentials used to pull images from GCR.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.