Skip to content

Commit

Permalink
Integrate capi v0.4.2 and capm3 v0.5.0
Browse files Browse the repository at this point in the history
The below manifest changes integrates capi v0.4.2 with capm3
v0.5.0 version. It changes the required manifests files
in the airshipctl. It upgrades capi to v1alpha4 and capm3 to
v1alpha5.

Closes: #518 #560
Change-Id: Ia9ea82ad8052e55f0e70f1038497a919ac7b9270
  • Loading branch information
SirishaGopigiri authored and raliev12 committed Oct 13, 2021
1 parent 61a316c commit ad555d4
Show file tree
Hide file tree
Showing 22 changed files with 103 additions and 153 deletions.
2 changes: 1 addition & 1 deletion krm-functions/clusterctl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FROM ${PLUGINS_BUILD_IMAGE} as ctls
RUN apk update && apk add curl
COPY ./certs/* /usr/local/share/ca-certificates/
RUN update-ca-certificates
ARG CCTL_VERSION=0.3.23
ARG CCTL_VERSION=0.4.4
RUN curl -L https://github.com/kubernetes-sigs/cluster-api/releases/download/v${CCTL_VERSION}/clusterctl-linux-amd64 -o /clusterctl
RUN chmod +x /clusterctl

Expand Down
4 changes: 2 additions & 2 deletions manifests/function/airshipctl-base-catalogues/networking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
provisioningIp: "10.23.25.102"
dhcpRange: "10.23.25.200,10.23.25.250"
ironicAutomatedClean: ""
httpPort: ""
httpPort: "80"
ironicFastTrack: ""
deployKernelUrl: ""
deployRamdiskUrl: ""
Expand Down Expand Up @@ -72,4 +72,4 @@ spec:
- 0.pool.ntp.org
- 1.pool.ntp.org
- 2.pool.ntp.org
- 3.pool.ntp.org
- 3.pool.ntp.org
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,18 @@ spec:
capm3: # Images specific to the camp3 function; etc.
manager:
repository: quay.io/metal3-io
tag: v0.4.0
tag: v0.5.0
auth_proxy:
repository: gcr.io/kubebuilder
tag: v0.4.0
ipam-manager:
repository: quay.io/metal3-io
tag: v0.0.4
tag: v0.8.0
cacpk:
manager:
repository: us.gcr.io/k8s-artifacts-prod/cluster-api
tag: v0.3.7
auth_proxy:
repository: gcr.io/kubebuilder
tag: v0.4.1
repository: gcr.io/k8s-staging-cluster-api
tag: v0.4.2
cabpk:
manager:
repository: us.gcr.io/k8s-artifacts-prod/cluster-api
tag: v0.3.7
auth_proxy:
repository: gcr.io/kubebuilder
tag: v0.4.1
repository: gcr.io/k8s-staging-cluster-api
tag: v0.4.2
capd:
manager:
repository: gcr.io/k8s-staging-cluster-api
Expand All @@ -70,11 +61,8 @@ spec:
tag: v0.4.1
capi:
manager:
repository: us.gcr.io/k8s-artifacts-prod/cluster-api
tag: v0.3.7
auth_proxy:
repository: gcr.io/kubebuilder
tag: v0.4.1
repository: gcr.io/k8s-staging-cluster-api
tag: v0.4.2
capz:
manager:
repository: gcr.io/k8s-staging-cluster-api-azure
Expand All @@ -90,27 +78,33 @@ spec:
# <container>:
baremetal_operator:
ironic: # ironic Deployment
init_bootstrap:
image: quay.io/centos/centos:8.3.2011
init_images:
image: quay.io/airshipit/ipa:latest
image: quay.io/airshipit/ipa-wallaby:latest
qcow_bundle:
image: quay.io/airshipit/qcow-bundle:latest-ubuntu_focal
image: quay.io/airshipit/qcow-bundle:k8s-1.19-latest-ubuntu_focal
dnsmasq:
image: quay.io/metal3-io/ironic:capm3-v0.4.0
image: quay.io/metal3-io/ironic:capm3-v0.5.0
mariadb:
image: quay.io/metal3-io/ironic:capm3-v0.5.0
httpd:
image: quay.io/metal3-io/ironic:capm3-v0.4.0
ironic:
image: quay.io/metal3-io/ironic:capm3-v0.4.0
image: quay.io/metal3-io/ironic:capm3-v0.5.0
ironic_api:
image: quay.io/metal3-io/ironic:capm3-v0.5.0
ironic_conductor:
image: quay.io/metal3-io/ironic:capm3-v0.5.0
ironic_inspector:
image: quay.io/metal3-io/ironic-inspector:capm3-v0.4.0
image: quay.io/metal3-io/ironic:capm3-v0.5.0
ironic_log_watch:
image: quay.io/metal3-io/ironic:capm3-v0.5.0
ironic_inspector_log_watch:
image: quay.io/metal3-io/ironic:capm3-v0.5.0
ironic_endpoint_keepalived:
image: quay.io/metal3-io/keepalived:capm3-v0.5.0
metal3_baremetal_operator: # metal3-baremetal-operator Deployment
baremetal_operator:
image: quay.io/metal3-io/baremetal-operator:capm3-v0.4.0
ironic_proxy:
image: quay.io/airshipit/socat:1.7.4.1
ironic_inspector_proxy:
image: quay.io/airshipit/socat:1.7.4.1
image: quay.io/metal3-io/baremetal-operator:capm3-v0.5.0
kube_rbac_proxy:
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
calico_v3:
node: # calico-node DaemonSet
upgrade_ipam:
Expand Down Expand Up @@ -158,9 +152,9 @@ spec:
image_builder:
image_builder:
image_builder:
image: quay.io/airshipit/image-builder:611fd18363c52ee322a83e9c68a8b56f863b8a79-ubuntu_focal
image: quay.io/airshipit/image-builder:k8s-1.19-latest-ubuntu_focal

kubernetes: v1.18.6
kubernetes: v1.19.14

image_repositories:
cni:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,14 @@ spec:
- tag
type: object
required:
- auth_proxy
- manager
type: object
description: capi_images defines collections of images used by cluster
API. The name of each key in this section should correspond to the
airshipctl function in which the images will be used, such as "capm3".
Each capi_image object must have a "manager" and "auth_proxy" object,
each of which must have "repository" and "tag" properties defined.
capi_images may also include an optional "ipam-manager" object,
Each capi_image object must have a "manager" object, which must have
"repository" and "tag" properties defined. capi_images may also include
an optional "ipam-manager" or "auth_proxy" object,
which must also have "repository" and "tag" properties defined.
type: object
charts:
Expand Down
44 changes: 16 additions & 28 deletions manifests/function/clusterctl/clusterctl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,56 +5,44 @@ metadata:
airshipit.org/deploy-k8s: "false"
name: clusterctl_init
init-options:
core-provider: "cluster-api:v0.3.7"
bootstrap-providers: "kubeadm:v0.3.7"
infrastructure-providers: "metal3:v0.4.0"
control-plane-providers: "kubeadm:v0.3.7"
core-provider: "cluster-api:v0.4.2"
bootstrap-providers: "kubeadm:v0.4.2"
infrastructure-providers: "metal3:v0.5.0"
control-plane-providers: "kubeadm:v0.4.2"
providers:
- name: "metal3"
type: "InfrastructureProvider"
url: airshipctl/manifests/function/capm3/v0.4.0
url: airshipctl/manifests/function/capm3/v0.5.0
- name: "kubeadm"
type: "BootstrapProvider"
url: airshipctl/manifests/function/cabpk/v0.3.7
url: airshipctl/manifests/function/cabpk/v0.4.2
- name: "cluster-api"
type: "CoreProvider"
url: airshipctl/manifests/function/capi/v0.3.7
url: airshipctl/manifests/function/capi/v0.4.2
- name: "kubeadm"
type: "ControlPlaneProvider"
url: airshipctl/manifests/function/cacpk/v0.3.7
url: airshipctl/manifests/function/cacpk/v0.4.2

# The default image repository and tag for a specific component
# can be overriden here
images:
cert-manager:
repository: "quay.io/jetstack"
cluster-api/cluster-api-controller:
repository: "us.gcr.io/k8s-artifacts-prod/cluster-api"
tag: "v0.3.7"
cluster-api/kube-rbac-proxy:
repository: "gcr.io/kubebuilder"
tag: "v0.4.1"
repository: "gcr.io/k8s-staging-cluster-api"
tag: "v0.4.2"
bootstrap-kubeadm/kubeadm-bootstrap-controller:
repository: "us.gcr.io/k8s-artifacts-prod/cluster-api"
tag: "v0.3.7"
bootstrap-kubeadm/kube-rbac-proxy:
repository: "gcr.io/kubebuilder"
tag: "v0.4.1"
repository: "gcr.io/k8s-staging-cluster-api"
tag: "v0.4.2"
control-plane-kubeadm/kubeadm-control-plane-controller:
repository: "us.gcr.io/k8s-artifacts-prod/cluster-api"
tag: "v0.3.7"
control-plane-kubeadm/kube-rbac-proxy:
repository: "gcr.io/kubebuilder"
tag: "v0.4.1"
repository: "gcr.io/k8s-staging-cluster-api"
tag: "v0.4.2"
infrastructure-metal3/cluster-api-provider-metal3:
repository: "quay.io/metal3-io"
tag: "v0.4.0"
tag: "v0.5.0"
infrastructure-metal3/kube-rbac-proxy:
repository: "gcr.io/kubebuilder"
tag: "v0.4.0"
infrastructure-metal3/ip-address-manager:
repository: "quay.io/metal3-io"
tag: "v0.4.0"
tag: "v0.8.0"
infrastructure-docker/capd-manager:
repository: "gcr.io/k8s-staging-cluster-api"
tag: "v20201019-v0.3.10-86-gc1647481f"
Expand Down
40 changes: 0 additions & 40 deletions manifests/function/clusterctl/replacements/versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@ replacements:
kind: Clusterctl
name: clusterctl_init
fieldrefs: ["{.images.infrastructure-metal3/kube-rbac-proxy}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-airshipctl
fieldref: "{.spec.capi_images.capm3.ipam-manager}"
target:
objref:
kind: Clusterctl
name: clusterctl_init
fieldrefs: ["{.images.infrastructure-metal3/ip-address-manager}"]
# Replace cacpk versions
- source:
objref:
Expand All @@ -50,16 +40,6 @@ replacements:
kind: Clusterctl
name: clusterctl_init
fieldrefs: ["{.images.control-plane-kubeadm/kubeadm-control-plane-controller}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-airshipctl
fieldref: "{.spec.capi_images.cacpk.auth_proxy}"
target:
objref:
kind: Clusterctl
name: clusterctl_init
fieldrefs: ["{.images.control-plane-kubeadm/kube-rbac-proxy}"]
# Replace cabpk versions
- source:
objref:
Expand All @@ -71,16 +51,6 @@ replacements:
kind: Clusterctl
name: clusterctl_init
fieldrefs: ["{.images.bootstrap-kubeadm/kubeadm-bootstrap-controller}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-airshipctl
fieldref: "{.spec.capi_images.cabpk.auth_proxy}"
target:
objref:
kind: Clusterctl
name: clusterctl_init
fieldrefs: ["{.images.bootstrap-kubeadm/kube-rbac-proxy}"]
# Replace capd versions
- source:
objref:
Expand Down Expand Up @@ -155,16 +125,6 @@ replacements:
kind: Clusterctl
name: clusterctl_init
fieldrefs: ["{.images.cluster-api/cluster-api-controller}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-airshipctl
fieldref: "{.spec.capi_images.capi.auth_proxy}"
target:
objref:
kind: Clusterctl
name: clusterctl_init
fieldrefs: ["{.images.cluster-api/kube-rbac-proxy}"]

# Replace capz versions
- source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ metadata:
hardwareProfile:
firmware:
sriovEnabled: false
virtualizationDisabled: false
simultaneousMultithreadingDisabled: false
virtualizationEnabled: false
simultaneousMultithreadingEnabled: false
raid:
hardwareRAIDVolumes:
- name: "VirtualDisk1"
Expand Down
16 changes: 9 additions & 7 deletions manifests/function/hostgenerator-m3/hosttemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ values:
# See function/hardwareprofile-example for an example of how to do this.
hardwareProfiles:
default:
raid:
hardwareRAIDVolumes: []
softwareRAIDVolumes: []
# Reference: https://github.com/metal3-io/metal3-docs/blob/master/design/baremetal-operator/bios-config.md
firmware:
sriovEnabled: false
virtualizationDisabled: false
simultaneousMultithreadingDisabled: false
#firmware:
# sriovEnabled: false
# virtualizationEnabled: false
# simultaneousMultithreadingEnabled: false

template: |
{{- $envAll := . }}
Expand All @@ -39,9 +42,6 @@ template: |
{{- if not $hardwareProfile -}}
{{- fail (printf "can't find hardwareProfile %s" $host.hardwareProfile) -}}
{{- end -}}
{{- if not $hardwareProfile.firmware -}}
{{- fail (printf "hardwareProfile %s doesn't have firmware field" $host.hardwareProfile) -}}
{{- end -}}
---
apiVersion: metal3.io/v1alpha1
kind: BareMetalHost
Expand All @@ -63,10 +63,12 @@ template: |
address: {{ $host.bmcAddress }}
credentialsName: {{ $hostName }}-bmc-secret
disableCertificateVerification: {{ default false $host.disableCertificateVerification }}
{{- if $hardwareProfile.firmware }}
firmware:
{{ toYaml $hardwareProfile.firmware | indent 4 }}
{{- /* If no raid is defined for a host, simply skip. There is no default setting for raid */ -}}
{{- /* Reference for RAID: https://github.com/metal3-io/metal3-docs/pull/134 */ -}}
{{- end }}
{{- if $hardwareProfile.raid }}
raid:
{{ toYaml $hardwareProfile.raid | indent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- sh
- -c
- "cp /qcows/*.qcow2 /qcows/*.qcow2.md5sum /shared/html/images/"
image: "quay.io/sirishagopigiri/qcow-bundle:v1.19.1"
image: "quay.io/airshipit/qcow-bundle:k8s-1.19-latest-ubuntu_focal"
imagePullPolicy: Always
volumeMounts:
- mountPath: "/shared"
Expand Down
8 changes: 4 additions & 4 deletions manifests/function/k8scontrol/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ data:
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURWRENDQWp5Z0F3SUJBZ0lVTUNwc09vRXhyRzdnRTVMOVJSamdnT01UOG53d0RRWUpLb1pJaHZjTkFRRUwKQlFBd0dURVhNQlVHQTFVRUF3d09TM1ZpWlhKdVpYUmxjeUJCVUVrd0hoY05NakF3T1RFMU1ERXdORE0zV2hjTgpNekF3T1RFek1ERXdORE0zV2pBWk1SY3dGUVlEVlFRRERBNUxkV0psY201bGRHVnpJRUZRU1RDQ0FTSXdEUVlKCktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQUtBZFo0UWJHZmlLTExpTXNHcFJKS3d5ZkRGWVI5U0MKbGtVb3hlTU1BZVBkeVNNU0paTTlFMFBOaDM5TUtTVjNSZDRIZWt1eGdHK3J4em83WmcrZU1aY1hyNFk3ektQMwo1SW0vaERkMm1TYThsMEkxZTRwV3B0Z25vZjdvRWJpSXVIU2YxQmRhMU4wWm1EUUdtckxyQnFOZFE3c1BVenNWCllPejZVUFZlamNIeEFjMXBvMWZsQXYrWVNZejVXa28wRVRnTXZYRGtxT0hrWFc1WnhPcHBVbiszOVpvWTZMK3gKVmUwUHFQdHlmSVZ1M3dtcnZFNGd4SmxtWEk3dUxmdzZONHpwS2RuK0k0K1RJRWF5aE1EMWRRenNwQzRMM0IrcApYcHFPMWNWM2ZKMlBycS9mNU14SnIxWTVHUTZlQlZyTGVod1ZWTEhEMzF3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v1alpha4
kind: Cluster
metadata:
name: target-cluster
Expand All @@ -22,15 +22,15 @@ spec:
cidrBlocks: ["192.168.0.0/18"]
serviceDomain: "cluster.local"
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
kind: Metal3Cluster
name: target-cluster
controlPlaneRef:
kind: KubeadmControlPlane
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
name: cluster-controlplane
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
kind: Metal3Cluster
metadata:
name: target-cluster
Expand Down
Loading

0 comments on commit ad555d4

Please sign in to comment.