Skip to content

Commit

Permalink
Attempt e2e fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Jun 6, 2024
1 parent 82aec7d commit 1306800
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 6 additions & 7 deletions hack/charts/cluster-api-operator/templates/infra.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Recursive printer function for use with additionalDeployments field
{{- define "recursivePrinter" }}
{{- range $key, $value := . }}
{{- if kindIs "map" $value }}
- {{ $key }}:
{{ $key }}:
{{- include "recursivePrinter" $value | indent 2 }}
{{- else }}
{{ $key }}: {{ $value }}
Expand Down Expand Up @@ -54,11 +53,6 @@ metadata:
{{- if or $infrastructureVersion $.Values.configSecret.name $.Values.manager $.Values.additionalDeployments }}
spec:
{{- end }}
{{- if $.Values.additionalDeployments }}
additionalDeployments:
{{- include "recursivePrinter" $.Values.additionalDeployments | indent 2 }}
{{- end }}
{{- end }}
{{- if $infrastructureVersion }}
version: {{ $infrastructureVersion }}
{{- end }}
Expand All @@ -82,4 +76,9 @@ spec:
namespace: {{ $.Values.configSecret.namespace }}
{{- end }}
{{- end }}
{{- if $.Values.additionalDeployments }}
additionalDeployments:
{{- include "recursivePrinter" $.Values.additionalDeployments | indent 2 }}
{{- end }}
{{- end }}
{{- end }}
1 change: 0 additions & 1 deletion test/e2e/resources/full-chart-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27709,7 +27709,6 @@ spec:
# Core provider
---
# Source: cluster-api-operator/templates/infra.yaml
# Recursive printer function for use with additionalDeployments field
# Infrastructure providers
---
# Source: cluster-api-operator/templates/operator-components.yaml
Expand Down

0 comments on commit 1306800

Please sign in to comment.