Skip to content

Commit

Permalink
Update CCM to v0.4.0
Browse files Browse the repository at this point in the history
Update cluster templates
  • Loading branch information
thunderboltsid committed Jul 23, 2024
1 parent a4d9c84 commit 8e2aacf
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 279 deletions.
6 changes: 3 additions & 3 deletions templates/ccm/nutanix-ccm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: ${CLUSTER_NAME}-pc-trusted-ca-bundle
name: nutanix-ccm-pc-trusted-ca-bundle
namespace: kube-system
binaryData:
ca.crt: ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
Expand Down Expand Up @@ -34,7 +34,7 @@ data:
},
"additionalTrustBundle": {
"kind": "ConfigMap",
"name": "${CLUSTER_NAME}-pc-trusted-ca-bundle",
"name": "nutanix-ccm-pc-trusted-ca-bundle",
"namespace": "kube-system"
}
},
Expand Down Expand Up @@ -186,7 +186,7 @@ spec:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.3.2}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand Down
6 changes: 3 additions & 3 deletions templates/cluster-template-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data:
apiVersion: v1
kind: ConfigMap
metadata:
name: ${CLUSTER_NAME}-pc-trusted-ca-bundle
name: nutanix-ccm-pc-trusted-ca-bundle
namespace: kube-system
binaryData:
ca.crt: ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
Expand Down Expand Up @@ -45,7 +45,7 @@ data:
},
"additionalTrustBundle": {
"kind": "ConfigMap",
"name": "${CLUSTER_NAME}-pc-trusted-ca-bundle",
"name": "nutanix-ccm-pc-trusted-ca-bundle",
"namespace": "kube-system"
}
},
Expand Down Expand Up @@ -197,7 +197,7 @@ data:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.3.2}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand Down
3 changes: 2 additions & 1 deletion templates/cluster-template-topology.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ data:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.3.2}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand All @@ -207,6 +207,7 @@ data:
args:
- "--leader-elect=true"
- "--cloud-config=/etc/cloud/nutanix_config.json"
- "--tls-cipher-suites=${TLS_CIPHER_SUITES=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256}"
resources:
requests:
cpu: 100m
Expand Down
6 changes: 3 additions & 3 deletions templates/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data:
apiVersion: v1
kind: ConfigMap
metadata:
name: ${CLUSTER_NAME}-pc-trusted-ca-bundle
name: nutanix-ccm-pc-trusted-ca-bundle
namespace: kube-system
binaryData:
ca.crt: ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
Expand Down Expand Up @@ -45,7 +45,7 @@ data:
},
"additionalTrustBundle": {
"kind": "ConfigMap",
"name": "${CLUSTER_NAME}-pc-trusted-ca-bundle",
"name": "nutanix-ccm-pc-trusted-ca-bundle",
"namespace": "kube-system"
}
},
Expand Down Expand Up @@ -197,7 +197,7 @@ data:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.3.2}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand Down
11 changes: 2 additions & 9 deletions templates/topology/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

configMapGenerator:
- behavior: merge
files:
- nutanix-ccm.yaml
name: nutanix-ccm


resources:
- ../ccm
- ./cm.yaml
- ./cluster-with-topology.yaml
- ./secret.yaml
- ./nutanix-ccm-secret.yaml
- ./nutanix-ccm-crs.yaml

patches:
- path: ./ccm-patch.yaml
22 changes: 0 additions & 22 deletions templates/topology/nutanix-ccm-crs.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions templates/topology/nutanix-ccm-secret.yaml

This file was deleted.

211 changes: 0 additions & 211 deletions templates/topology/nutanix-ccm.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion test/e2e/data/infrastructure-nutanix/ccm-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ data:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.3.2}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand Down

0 comments on commit 8e2aacf

Please sign in to comment.