gcr

package
v0.0.0-...-3ac7d67 Latest Latest
Warning

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

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

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

func DockerCfgJSON(token string) []byte

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.

Jump to

Keyboard shortcuts

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