Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Fix a bug in ACT_main json patch for Azure Cluster Class #4622

Open
wants to merge 1 commit into
base: release-0.29
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion providers/infrastructure-azure/v1.6.3/cconly/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ spec:
name: {{ if .network.vnet.name }} {{- .network.vnet.name }} {{- else }} {{- .builtin.cluster.name -}} -vnet {{- end }}
resourceGroup: {{ if .network.vnet.resourceGroup }} {{- .network.vnet.resourceGroup }} {{- else if .resourceGroup }} {{- .resourceGroup }} {{- else }} {{- .builtin.cluster.name }} {{- end }}
cidrBlocks:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems there will be an empty line, we usually write iteration like this

            cidrBlocks:
            {{- range .network.vnet.cidrBlocks }}
            - {{ . }}
            {{- end }}

{{ range .network.vnet.cidrBlocks -}}
{{ range .network.vnet.cidrBlocks }}
- {{ . }}
{{- end }}
- op: add
Expand Down