Skip to content

Commit

Permalink
Add image registries annotation key
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <jiazhu@redhat.com>
  • Loading branch information
zhujian7 committed Jul 26, 2023
1 parent c0c9fb5 commit 3647925
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cluster/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,18 @@ const (
// ClusterNameLabelKey is the key of a label to set ManagedCluster name.
ClusterNameLabelKey = "open-cluster-management.io/cluster-name"
)

const (
// ClusterImageRegistriesAnnotationKey is an annotation key on ManagedCluster to configure image override for addons
// running on the ManagedCluster, the value of the annotation should be a json string like this:
//
// {
// "registries": [
// {
// "source": "quay.io/ocm",
// "mirrors": "quay.io/open-cluster-management"
// }
// ]
// }
ClusterImageRegistriesAnnotationKey = "open-cluster-management.io/image-registries"
)

0 comments on commit 3647925

Please sign in to comment.