Skip to content

Commit d68d5fe

Browse files
committed
ci: set structure for sync tool
1 parent 26d56fc commit d68d5fe

File tree

11 files changed

+136
-0
lines changed

11 files changed

+136
-0
lines changed

hack/addons/kustomize/ccm/aws/manifests/values-template.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<<<<<<< HEAD
2+
=======
3+
# Copyright 2024 Nutanix. All rights reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
# Used to generate CRS
7+
>>>>>>> cefd0dc (ci: set structure for sync tool)
18
---
29
# Starting in Kubernetes v1.29 the Kubelet no longer adds temporary addresses to the Node.
310
# See https://github.com/kubernetes/kubernetes/pull/121028
@@ -12,8 +19,11 @@ args:
1219
- --v=2
1320
- --cloud-provider=aws
1421
- --configure-cloud-routes=false
22+
<<<<<<< HEAD
1523

1624
{{ $clusterSemver := semver .Cluster.spec.topology.version }}
1725
{{ $ccmVersion := get $k8sMinorVersionToCCMVersion ( print $clusterSemver.Major "." $clusterSemver.Minor ) }}
1826
image:
1927
tag: {{ $ccmVersion }}
28+
=======
29+
>>>>>>> cefd0dc (ci: set structure for sync tool)

hack/addons/kustomize/cluster-autoscaler/manifests/values-template.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
<<<<<<< HEAD
12
---
23
fullnameOverride: "cluster-autoscaler-{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}
4+
=======
5+
# Copyright 2023 Nutanix. All rights reserved.
6+
# SPDX-License-Identifier: Apache-2.0
7+
8+
# This is used to generate CRS
9+
---
10+
# This is a hack, but because a single cluster-autoscaler deployment can only monitor a single Kubernetes cluster
11+
# we expect 'tmp-clustername-tmpl', 'tmpl-clusternamespace-tmpl' and 'tmpl-clusteruuid-tmpl'
12+
# to be replaced with the Cluster's name and namespace.
13+
fullnameOverride: cluster-autoscaler-tmpl-clusteruuid-tmpl
14+
>>>>>>> cefd0dc (ci: set structure for sync tool)
315

416
cloudProvider: clusterapi
517

@@ -14,18 +26,31 @@ tolerations:
1426

1527
# Limit a single cluster-autoscaler Deployment to a single Cluster.
1628
autoDiscovery:
29+
<<<<<<< HEAD
1730
clusterName: {{ .Cluster.Name }}
1831
# The controller failed with an RBAC error trying to watch CAPI objects at the cluster scope without this.
1932
labels:
2033
- namespace: {{ .Cluster.Namespace }}
2134

35+
=======
36+
clusterName: tmpl-clustername-tmpl
37+
# The controller failed with an RBAC error trying to watch CAPI objects at the cluster scope without this.
38+
labels:
39+
- namespace: tmpl-clusternamespace-tmpl
40+
41+
clusterAPIConfigMapsNamespace: tmpl-clusternamespace-tmpl
42+
>>>>>>> cefd0dc (ci: set structure for sync tool)
2243
# For workload clusters it is not possible to use the in-cluster client.
2344
# To simplify the configuration, use the admin kubeconfig generated by CAPI for all clusters.
2445
clusterAPIMode: kubeconfig-incluster
2546
clusterAPIWorkloadKubeconfigPath: /cluster/kubeconfig
2647
extraVolumeSecrets:
2748
kubeconfig:
49+
<<<<<<< HEAD
2850
name: "{{ .Cluster.Name }}-kubeconfig"
51+
=======
52+
name: tmpl-clusteruuid-tmpl-kubeconfig
53+
>>>>>>> cefd0dc (ci: set structure for sync tool)
2954
mountPath: /cluster
3055
readOnly: true
3156
items:

hack/addons/kustomize/cni/calico/manifests/aws/helm-addon-installation.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
<<<<<<< HEAD
45
{{- if .Values.hooks.cni.calico.helmAddonStrategy.defaultValueTemplatesConfigMaps.AWSCluster.create }}
56
apiVersion: v1
67
kind: ConfigMap
@@ -9,4 +10,14 @@ metadata:
910
data:
1011
values.yaml: |-
1112
{{- .Files.Get "addons/cni/calico/aws/values-template.yaml" | nindent 4 }}
13+
=======
14+
{{- if .Values.hooks.cni.calico.helmAddonStrategy.defaultValueTemplatesConfigMaps.NutanixCluster.create }}
15+
apiVersion: v1
16+
kind: ConfigMap
17+
metadata:
18+
name: '{{ .Values.hooks.cni.calico.helmAddonStrategy.defaultValueTemplatesConfigMaps.NutanixCluster.name }}'
19+
data:
20+
values.yaml: |-
21+
{{- .Files.Get "addons/cni/calico/nutanix/values-template.yaml" | nindent 4 }}
22+
>>>>>>> cefd0dc (ci: set structure for sync tool)
1223
{{- end -}}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
1+
<<<<<<< HEAD
2+
=======
3+
# Copyright 2023 Nutanix. All rights reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
>>>>>>> cefd0dc (ci: set structure for sync tool)
16

27
installation:
38
cni:
49
type: Calico
510
calicoNetwork:
611
bgp: Enabled
12+
<<<<<<< HEAD
713
ipPools: {{ range $cidr := .Cluster.spec.clusterNetwork.pods.cidrBlocks }}
814
- cidr: "{{ $cidr }}"
915
encapsulation: None
1016
natOutgoing: Enabled
1117
nodeSelector: all(){{ end }}
18+
=======
19+
ipPools:{{ printf "{{ range $cidr := .Cluster.spec.clusterNetwork.pods.cidrBlocks }}" }}
20+
- cidr: {{ printf "{{ $cidr }}" }}
21+
encapsulation: None
22+
natOutgoing: Enabled
23+
nodeSelector: all(){{ printf "{{ end }}" }}
24+
>>>>>>> cefd0dc (ci: set structure for sync tool)
1225
nodeMetricsPort: 9091
1326
typhaMetricsPort: 9093
1427
registry: quay.io/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1+
<<<<<<< HEAD
2+
=======
3+
# Copyright 2023 Nutanix. All rights reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
>>>>>>> cefd0dc (ci: set structure for sync tool)
16

27
installation:
38
cni:
49
type: Calico
510
calicoNetwork:
11+
<<<<<<< HEAD
612
ipPools:{{ range $cidr := .Cluster.spec.clusterNetwork.pods.cidrBlocks }}
713
- cidr: "{{ $cidr }}"
814
encapsulation: None
915
natOutgoing: Enabled
1016
nodeSelector: all(){{ end }}
17+
=======
18+
ipPools:{{ printf "{{ range $cidr := .Cluster.spec.clusterNetwork.pods.cidrBlocks }}" }}
19+
- cidr: {{ printf "{{ $cidr }}" }}
20+
encapsulation: None
21+
natOutgoing: Enabled
22+
nodeSelector: all(){{ printf "{{ end }}" }}
23+
>>>>>>> cefd0dc (ci: set structure for sync tool)
1124
nodeMetricsPort: 9091
1225
typhaMetricsPort: 9093
1326
registry: quay.io/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
1+
<<<<<<< HEAD
2+
=======
3+
# Copyright 2023 Nutanix. All rights reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
>>>>>>> cefd0dc (ci: set structure for sync tool)
16

27
installation:
38
cni:
49
type: Calico
510
calicoNetwork:
611
bgp: Enabled
12+
<<<<<<< HEAD
713
ipPools:{{ range $cidr := .Cluster.spec.clusterNetwork.pods.cidrBlocks }}
814
- cidr: "{{ $cidr }}"
915
encapsulation: None
1016
natOutgoing: Enabled
1117
nodeSelector: all(){{ end }}
18+
=======
19+
ipPools:{{ printf "{{ range $cidr := .Cluster.spec.clusterNetwork.pods.cidrBlocks }}" }}
20+
- cidr: {{ printf "{{ $cidr }}" }}
21+
encapsulation: None
22+
natOutgoing: Enabled
23+
nodeSelector: all(){{ printf "{{ end }}" }}
24+
>>>>>>> cefd0dc (ci: set structure for sync tool)
1225
nodeMetricsPort: 9091
1326
typhaMetricsPort: 9093
1427
registry: quay.io/

hack/addons/kustomize/cni/cilium/manifests/values-template.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
<<<<<<< HEAD
2+
=======
3+
# Copyright 2024 Nutanix. All rights reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
>>>>>>> cefd0dc (ci: set structure for sync tool)
16

27
---
38
cni:
49
chainingMode: portmap
10+
<<<<<<< HEAD
511
exclusive: false
12+
=======
13+
>>>>>>> cefd0dc (ci: set structure for sync tool)
614
hubble:
715
tls:
816
auto:
@@ -20,5 +28,8 @@ operator:
2028
certgen:
2129
image:
2230
useDigest: false
31+
<<<<<<< HEAD
2332
socketLB:
2433
hostNamespaceOnly: true
34+
=======
35+
>>>>>>> cefd0dc (ci: set structure for sync tool)

hack/addons/kustomize/csi/nutanix/manifests/values-template.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
<<<<<<< HEAD
12

23
# The Secret containing the credentials will be created by the handler.
34
createPrismCentralSecret: false
45
pcSecretName: nutanix-csi-credentials
56
createSecret: false
7+
=======
8+
# The Secret containing the credentials will be created by the handler.
9+
createPrismCentralSecret: false
10+
pcSecretName: nutanix-csi-credentials
11+
>>>>>>> cefd0dc (ci: set structure for sync tool)
612

713
tolerations:
814
- key: CriticalAddonsOnly

hack/addons/kustomize/csi/snapshot-controller/manifests/helm-addon-installation.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright 2024 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
<<<<<<< HEAD
45
{{- if (index .Values.hooks.csi "snapshot-controller").helmAddonStrategy.defaultValueTemplateConfigMap.create }}
56
apiVersion: v1
67
kind: ConfigMap
@@ -9,4 +10,14 @@ metadata:
910
data:
1011
values.yaml: |-
1112
{{- .Files.Get "addons/csi/snapshot-controller/values-template.yaml" | nindent 4 }}
13+
=======
14+
{{- if (index .Values.hooks.csi "local-path").helmAddonStrategy.defaultValueTemplateConfigMap.create }}
15+
apiVersion: v1
16+
kind: ConfigMap
17+
metadata:
18+
name: '{{ (index .Values.hooks.csi "local-path").helmAddonStrategy.defaultValueTemplateConfigMap.name }}'
19+
data:
20+
values.yaml: |-
21+
{{- .Files.Get "addons/csi/local-path/values-template.yaml" | nindent 4 }}
22+
>>>>>>> cefd0dc (ci: set structure for sync tool)
1223
{{- end -}}

hack/addons/kustomize/csi/snapshot-controller/manifests/values-template.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<<<<<<< HEAD
12

23
controller:
34
priorityClassName: system-cluster-critical
@@ -15,3 +16,22 @@ controller:
1516
operator: Exists
1617
webhook:
1718
enabled: false
19+
=======
20+
storageClass:
21+
create: false
22+
provisionerName: rancher.io/local-path
23+
helperImage:
24+
tag: 1.36.1
25+
tolerations:
26+
- key: CriticalAddonsOnly
27+
operator: Exists
28+
- effect: NoExecute
29+
operator: Exists
30+
tolerationSeconds: 300
31+
- effect: NoSchedule
32+
key: node-role.kubernetes.io/master
33+
operator: Exists
34+
- effect: NoSchedule
35+
key: node-role.kubernetes.io/control-plane
36+
operator: Exists
37+
>>>>>>> cefd0dc (ci: set structure for sync tool)

hack/addons/kustomize/serviceloadbalancer/metallb/values-template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
<<<<<<< HEAD
12

3+
=======
4+
>>>>>>> cefd0dc (ci: set structure for sync tool)
25
controller:
36
tolerations:
47
- key: node-role.kubernetes.io/control-plane

0 commit comments

Comments
 (0)