Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hostAliases to Helm values for Flow Aggregator #5386

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

yuntanghsu
Copy link
Contributor

@yuntanghsu yuntanghsu commented Aug 14, 2023

Add hostAliases to Helm values for Flow Aggregator
User might want to use hostAliases field when connecting Flow Aggregator to ClickHouse through Ingress/LoadBalancer.
It is also convenient for e2e test.

Signed-off-by: Yun-Tang Hsu hsuy@vmware.com

@yuntanghsu yuntanghsu changed the title Add hostAliases within the value option for convenience during e2e test Add hostAliases within the value option for Flow Aggregator Aug 15, 2023
@yuntanghsu yuntanghsu requested a review from antoninbas August 15, 2023 16:54
@yuntanghsu yuntanghsu force-pushed the host_aliases branch 2 times, most recently from de48fdd to 6fd6ce7 Compare August 15, 2023 21:41
Comment on lines 18 to 25
{{- if .Values.hostAliases }}
hostAliases:
{{- range $v := .Values.hostAliases }}
- ip: {{ $v.ip }}
hostnames:
- {{ $v.hostname }}
{{- end }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be:

      hostAliases:
      {{- range .Values.hostAliases }}
        - ip: {{ .ip }}
          hostnames:
          {{- range $hostname := .hostnames }}
            - {{ $hostname }}
          {{- end }}
      {{- end }}

I think we want to support the exact same format as the PodSpec (so multiple hostnames)

I also don't think you need conditionals

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The IDE will display a error message, stating "value is required", if I don't add the if condition. But it has no impact when applying the yaml file.
image

build/charts/flow-aggregator/values.yaml Outdated Show resolved Hide resolved
…sting.

Signed-off-by: Yun-Tang Hsu <hsuy@vmware.com>
@antoninbas antoninbas added area/flow-visibility/aggregator Issues or PRs related to Flow Aggregator action/release-note Indicates a PR that should be included in release notes. labels Aug 15, 2023
@antoninbas antoninbas changed the title Add hostAliases within the value option for Flow Aggregator Add hostAliases to Helm values for Flow Aggregator Aug 15, 2023
@antoninbas
Copy link
Contributor

/test-all

@antoninbas antoninbas merged commit d4fc6ae into antrea-io:main Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/release-note Indicates a PR that should be included in release notes. area/flow-visibility/aggregator Issues or PRs related to Flow Aggregator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants