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
manifests/function
airshipctl-base-catalogues
airshipctl-schemas
cni/tigera-operator/replacements
ephemeral/replacements
k8scontrol/replacements
pkg/api/v1alpha1

@ -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

@ -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:
description: Allows for the specification of the 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 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
type: object
images: images:
additionalProperties: additionalProperties:
additionalProperties: additionalProperties:

@ -17,3 +17,13 @@ replacements:
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}"]

@ -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

@ -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

@ -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