Documentation ¶
Index ¶
- func ConfigureRegistry(oc *exutil.CLI, desiredState RegistryConfiguration) error
- func DoesRegistryAcceptSchema2(oc *exutil.CLI) (bool, error)
- func EnsureRegistryAcceptsSchema2(oc *exutil.CLI, accept bool) error
- func GetDockerRegistryURL(oc *exutil.CLI) (string, error)
- func GetRegistryPod(podsGetter kcoreclient.PodsGetter) (*kapiv1.Pod, error)
- func GetRegistryStorageSize(oc *exutil.CLI) (int64, error)
- type RegistryConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureRegistry ¶
func ConfigureRegistry(oc *exutil.CLI, desiredState RegistryConfiguration) error
ConfigureRegistry re-deploys the registry pod if its configuration doesn't match the desiredState. The function blocks until the registry is ready.
func DoesRegistryAcceptSchema2 ¶
DoesRegistryAcceptSchema2 returns true if the integrated registry is configured to accept manifest V2 schema 2.
func EnsureRegistryAcceptsSchema2 ¶
EnsureRegistryAcceptsSchema2 checks whether the registry is configured to accept manifests V2 schema 2 or not. If the result doesn't match given accept argument, registry's deployment config will be updated accordingly and the function will block until the registry have been re-deployed and ready for new requests.
func GetDockerRegistryURL ¶
GetDockerRegistryURL returns a cluster URL of internal docker registry if available.
func GetRegistryPod ¶
func GetRegistryPod(podsGetter kcoreclient.PodsGetter) (*kapiv1.Pod, error)
GetRegistryPod returns the youngest registry pod deployed.
Types ¶
type RegistryConfiguration ¶
RegistriConfiguration holds desired configuration options for the integrated registry. *nil* stands for "no change".