Skip to content

Commit 7520880

Browse files
committed
fix: remove custom eks cilium configuration from eks examples
1 parent b42ef54 commit 7520880

File tree

6 files changed

+2
-134
lines changed

6 files changed

+2
-134
lines changed

charts/cluster-api-runtime-extensions-nutanix/addons/cni/cilium/values-template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ kubeProxyReplacement: true
4545
{{- end }}
4646

4747
{{- if eq $capiProvider "eks" }}
48-
k8sServiceHost: "{{ trimPrefix "https://" .Cluster.spec.controlPlaneEndpoint.host }}"
49-
k8sServicePort: "{{ .Cluster.spec.controlPlaneEndpoint.port }}"
48+
k8sServiceHost: "{{ trimPrefix .Cluster.Spec.ControlPlaneEndpoint.Host "https://" }}"
49+
k8sServicePort: "{{ .Cluster.Spec.ControlPlaneEndpoint.Port }}"
5050
{{- else }}
5151
k8sServiceHost: auto
5252
{{- end }}

examples/capi-quick-start/eks-cluster.yaml

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,3 @@
1-
apiVersion: v1
2-
data:
3-
values.yaml: |-
4-
cni:
5-
exclusive: false
6-
hubble:
7-
enabled: true
8-
tls:
9-
auto:
10-
enabled: true # enable automatic TLS certificate generation
11-
method: cronJob # auto generate certificates using cronJob method
12-
certValidityDuration: 60 # certificates validity duration in days (default 2 months)
13-
schedule: "0 0 1 * *" # schedule on the 1st day regeneration of each month
14-
relay:
15-
enabled: true
16-
tls:
17-
server:
18-
enabled: true
19-
mtls: true
20-
image:
21-
useDigest: false
22-
priorityClassName: system-cluster-critical
23-
image:
24-
useDigest: false
25-
operator:
26-
image:
27-
useDigest: false
28-
certgen:
29-
image:
30-
useDigest: false
31-
socketLB:
32-
hostNamespaceOnly: true
33-
envoy:
34-
image:
35-
useDigest: false
36-
kubeProxyReplacement: true
37-
k8sServiceHost: "{{ trimPrefix "https://" .Cluster.spec.controlPlaneEndpoint.host }}"
38-
k8sServicePort: "{{ .Cluster.spec.controlPlaneEndpoint.port }}"
39-
ipam:
40-
mode: eni
41-
enableIPv4Masquerade: false
42-
eni:
43-
enabled: true
44-
awsReleaseExcessIPs: true
45-
routingMode: native
46-
endpointRoutes:
47-
enabled: true
48-
kind: ConfigMap
49-
metadata:
50-
labels:
51-
cluster.x-k8s.io/provider: eks
52-
name: ${CLUSTER_NAME}-cilium-cni-helm-values-template
53-
---
541
apiVersion: cluster.x-k8s.io/v1beta1
552
kind: Cluster
563
metadata:
@@ -70,10 +17,6 @@ spec:
7017
clusterAutoscaler: {}
7118
cni:
7219
provider: Cilium
73-
values:
74-
sourceRef:
75-
kind: ConfigMap
76-
name: ${CLUSTER_NAME}-cilium-cni-helm-values-template
7720
csi:
7821
defaultStorage:
7922
provider: aws-ebs

hack/examples/additional-resources/eks/cilium-configmap.yaml

Lines changed: 0 additions & 55 deletions
This file was deleted.

hack/examples/overlays/clusters/eks/kustomization.yaml.tmpl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1
55
kind: Kustomization
66

77
resources:
8-
- ../../../additional-resources/eks/cilium-configmap.yaml
98
- ../../../bases/eks/cluster
109

1110
sortOptions:
1211
order: fifo
1312

1413
patches:
15-
# TODO: Replace with generic cilium patch and dynamically generate the correct EKS values
16-
- target:
17-
kind: Cluster
18-
path: ../../../patches/eks/cilium-with-custom-values.yaml
1914
- target:
2015
kind: Cluster
2116
path: ../../../patches/skip-kube-proxy.yaml

hack/examples/patches/eks/cilium-with-custom-values.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

hack/examples/patches/eks/initialize-variables.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,3 @@
1111
nfd: {}
1212
cni:
1313
provider: Cilium
14-
values:
15-
sourceRef:
16-
name: ${CLUSTER_NAME}-cilium-cni-helm-values-template
17-
kind: ConfigMap

0 commit comments

Comments
 (0)