Merge "adding installation registry to version catalogue"

This commit is contained in:
Zuul 2021-07-16 17:16:13 +00:00 committed by Gerrit Code Review
commit 0c36a47ee3
6 changed files with 48 additions and 6 deletions

View File

@ -162,4 +162,10 @@ spec:
kubernetes: v1.18.6 kubernetes: v1.18.6
image_repositories: k8s.gcr.io image_repositories:
cni:
name: tigera-operator
repository: quay.io
controlplane:
name: kubeadm-clusterConfiguration
repository: k8s.gcr.io

View File

@ -196,8 +196,34 @@ spec:
are grouped by airshipctl function -> images in function. are grouped by airshipctl function -> images in function.
type: object type: object
image_repositories: image_repositories:
additionalProperties:
description: ImageRepositorySpec defines the spec for a repository
that includes repository URL, Name and one of Hash/Tag/SHA/Digest.
properties:
digest:
type: string
hash:
type: string
name:
description: Name is an optional property that is used to specify
the name of an image. Typically, this format is only needed
for charts such as dex-aio, which uses "repo", "name", and
"tag" properties to declare images, rather than the more commonly
used "repository" and "tag". In such cases, "repository" should
contain only the name of the repository (e.g. "quay.io") and
the "name" property should contain the image name (e.g. "metal3-io/ironic").
type: string
repository:
type: string
sha:
type: string
tag:
type: string
required:
- repository
type: object
description: Allows for the specification of the image repositories description: Allows for the specification of the image repositories
type: string type: object
images: images:
additionalProperties: additionalProperties:
additionalProperties: additionalProperties:

View File

@ -16,4 +16,14 @@ replacements:
objref: objref:
kind: Deployment kind: Deployment
name: tigera-operator name: tigera-operator
fieldrefs: ["{.spec.template.spec.containers[?(.name == 'tigera-operator')].image}"] fieldrefs: ["{.spec.template.spec.containers[?(.name == 'tigera-operator')].image}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-airshipctl
fieldref: "{.spec.image_repositories.cni.repository}"
target:
objref:
kind: Installation
name: default
fieldrefs: ["{.spec.registry}"]

View File

@ -13,7 +13,7 @@ replacements:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue
name: versions-airshipctl name: versions-airshipctl
fieldref: "{.spec.image_repositories}" fieldref: "{.spec.image_repositories.controlplane.repository}"
target: target:
objref: objref:
name: ephemeral-bmc-secret name: ephemeral-bmc-secret

View File

@ -35,7 +35,7 @@ replacements:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue
name: versions-airshipctl name: versions-airshipctl
fieldref: "{.spec.image_repositories}" fieldref: "{.spec.image_repositories.controlplane.repository}"
target: target:
objref: objref:
kind: KubeadmControlPlane kind: KubeadmControlPlane

View File

@ -165,7 +165,7 @@ type VersionsCatalogueSpec struct {
Kubernetes string `json:"kubernetes,omitempty"` Kubernetes string `json:"kubernetes,omitempty"`
// Allows for the specification of the image repositories // Allows for the specification of the image repositories
ImageRepositories string `json:"image_repositories,omitempty"` ImageRepositories map[string]ImageRepositorySpec `json:"image_repositories,omitempty"`
} }
// +kubebuilder:object:root=true // +kubebuilder:object:root=true