Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ClusterImageRegistriesAnnotation value is a json string of ImageRegistries
ClusterImageRegistriesAnnotation = "open-cluster-management.io/image-registries"
)
Variables ¶
This section is empty.
Functions ¶
func OverrideImageByAnnotation ¶
OverrideImageByAnnotation is to override the image by image-registries annotation of managedCluster. The source registry will be replaced by the Mirror. The larger index will work if the Sources are the same.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ImageOverride ¶
ImageOverride is to override the image by image-registries annotation of managedCluster. The source registry will be replaced by the Mirror. The larger index will work if the Sources are the same.
type ImageRegistries ¶
type ImageRegistries struct { PullSecret string `json:"pullSecret"` Registries []Registry `json:"registries"` }
ImageRegistries is value of the image registries annotation includes the mirror and source registries. The source registry will be replaced by the Mirror. The larger index will work if the Sources are the same.
Click to show internal directories.
Click to hide internal directories.