Skip to content

Commit e25a5c5

Browse files
author
Lucas de Farias Teixeira
committed
fix(chart): wrong condition in template
1 parent a986e3e commit e25a5c5

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

hack/charts/cluster-api-operator/templates/addon.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
{{- $addonNamespace := default ( printf "%s-%s" $name "addon-system" ) (get $addon "namespace") }}
44
{{- $addonName := $name }}
55
{{- $addonVersion := get $addon "version" }}
6-
{{- $addonCreateNamespace := default (true) (get $addon "createNamespace")}}
7-
{{- if $addonCreateNamespace }}
6+
{{- if ne $addon.createNamespace false }}
87
---
98
apiVersion: v1
109
kind: Namespace

hack/charts/cluster-api-operator/templates/bootstrap.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
{{- $bootstrapNamespace := default ( printf "%s-%s" $name "bootstrap-system" ) (get $bootstrap "namespace") }}
44
{{- $bootstrapName := $name }}
55
{{- $bootstrapVersion := get $bootstrap "version" }}
6-
{{- $bootstrapCreateNamespace := default (true) (get $bootstrap "createNamespace")}}
7-
{{- if $bootstrapCreateNamespace }}
6+
{{- if ne $bootstrap.createNamespace false }}
87
---
98
apiVersion: v1
109
kind: Namespace

hack/charts/cluster-api-operator/templates/control-plane.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
{{- $controlPlaneNamespace := default ( printf "%s-%s" $name "control-plane-system" ) (get $controlPlane "namespace") }}
44
{{- $controlPlaneName := $name }}
55
{{- $controlPlaneVersion := get $controlPlane "version" }}
6-
{{- $controlPlaneCreateNamespace := default (true) (get $controlPlane "createNamespace")}}
7-
{{- if $controlPlaneCreateNamespace }}
6+
{{- if ne $controlPlane.createNamespace false }}
87
---
98
apiVersion: v1
109
kind: Namespace

hack/charts/cluster-api-operator/templates/core.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
{{- $coreNamespace := default "capi-system" (get $core "namespace") }}
44
{{- $coreName := $name }}
55
{{- $coreVersion := get $core "version" }}
6-
{{- $coreCreateNamespace := default (true) (get $core "createNamespace")}}
7-
{{- if $coreCreateNamespace }}
6+
{{- if ne $core.createNamespace false }}
87
---
98
apiVersion: v1
109
kind: Namespace

hack/charts/cluster-api-operator/templates/infra.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
{{- $infrastructureNamespace := default ( printf "%s-%s" $name "infrastructure-system" ) (get $infra "namespace") }}
44
{{- $infrastructureName := $name }}
55
{{- $infrastructureVersion := get $infra "version" }}
6-
{{- $infraCreateNamespace := default (true) (get $infra "createNamespace")}}
7-
{{- if $infraCreateNamespace }}
6+
{{- if ne $infra.createNamespace false }}
87
---
98
apiVersion: v1
109
kind: Namespace

hack/charts/cluster-api-operator/templates/ipam.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
{{- $ipamNamespace := default ( printf "%s-%s" $name "ipam-system" ) (get $ipam "namespace") }}
44
{{- $ipamName := $name }}
55
{{- $ipamVersion := get $ipam "version" }}
6-
{{- $ipamCreateNamespace := default (true) (get $ipam "createNamespace")}}
7-
{{- if $ipamCreateNamespace }}
6+
{{- if ne $ipam.createNamespace false }}
87
---
98
apiVersion: v1
109
kind: Namespace

0 commit comments

Comments
 (0)