Skip to content

Commit

Permalink
Remove CAPI kube-vip hostPath patch
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna committed Jan 29, 2024
1 parent 913cecb commit 8f0ebce
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Remove userdata logging for bottlerocket
...strap.cluster.x-k8s.io_kubeadmconfigs.yaml | 174 ++++++++++++++++
...uster.x-k8s.io_kubeadmconfigtemplates.yaml | 186 ++++++++++++++++++
.../internal/bottlerocket/bootstrap.go | 45 +++++
.../internal/bottlerocket/bottlerocket.go | 177 +++++++++++++++++
.../internal/bottlerocket/bottlerocket.go | 176 +++++++++++++++++
.../bottlerocket/bottlerocket_test.go | 141 +++++++++++++
.../bottlerocket/controlplane_init.go | 47 +++++
.../bottlerocket/controlplane_join.go | 30 +++
Expand All @@ -46,7 +46,7 @@ Remove userdata logging for bottlerocket
.../controllers/kubeadmconfig_controller.go | 73 +++++++
...cluster.x-k8s.io_kubeadmcontrolplanes.yaml | 186 ++++++++++++++++++
...x-k8s.io_kubeadmcontrolplanetemplates.yaml | 99 ++++++++++
17 files changed, 1296 insertions(+), 2 deletions(-)
17 files changed, 1295 insertions(+), 2 deletions(-)
create mode 100644 bootstrap/kubeadm/internal/bottlerocket/bootstrap.go
create mode 100644 bootstrap/kubeadm/internal/bottlerocket/bottlerocket.go
create mode 100644 bootstrap/kubeadm/internal/bottlerocket/bottlerocket_test.go
Expand Down Expand Up @@ -722,7 +722,7 @@ new file mode 100644
index 000000000..350965204
--- /dev/null
+++ b/bootstrap/kubeadm/internal/bottlerocket/bottlerocket.go
@@ -0,0 +1,177 @@
@@ -0,0 +1,176 @@
+package bottlerocket
+
+import (
Expand Down Expand Up @@ -887,7 +887,6 @@ index 000000000..350965204
+ // Patch the spec.Volume mount path
+ f := corev1.HostPathFile
+ pod.Spec.Volumes[0].HostPath.Type = &f
+ pod.Spec.Volumes[0].HostPath.Path = "/var/lib/kubeadm/admin.conf"
+
+ // Marshall back into yaml and override
+ patchedYaml, err := yaml.Marshal(pod)
Expand Down

0 comments on commit 8f0ebce

Please sign in to comment.