Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Dec 21, 2023
1 parent 615d774 commit 87ccea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packaging/flavorgen/flavors/kubevip/topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TopologyPatch() clusterv1.ClusterClassPatch {
if f.Path == "/etc/kubernetes/manifests/kube-vip.yaml" {
lines := []string{
fmt.Sprintf("owner: %q", f.Owner),
fmt.Sprintf("path: %q", f.Owner),
fmt.Sprintf("path: %q", f.Path),
`content: {{ printf "%q" (regexReplaceAll "(name: address\n +value:).*" .kubeVipPodManifest (printf "$1 %s" .controlPlaneIpAddr)) }}`,
fmt.Sprintf("permissions: %q", f.Permissions),
}
Expand Down
2 changes: 1 addition & 1 deletion templates/clusterclass-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ spec:
valueFrom:
template: |-
owner: "root:root"
path: "root:root"
path: "/etc/kubernetes/manifests/kube-vip.yaml"
content: {{ printf "%q" (regexReplaceAll "(name: address\n +value:).*" .kubeVipPodManifest (printf "$1 %s" .controlPlaneIpAddr)) }}
permissions: "0644"
- op: add
Expand Down

0 comments on commit 87ccea7

Please sign in to comment.