hostNetwork missing in barman plugin deployment template

Open Beginner friendly
#875 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
helm, kubernetes

Research direction

Start in the plugin-barman-cloud chart's deployment pod template and compare its handling of hostNetwork with the cloudnative-pg Helm chart. Confirm how the value is rendered in the pod template spec; done means deployments can use the configured hostNetwork setting and the existing chart checks pass.

Written by the indexing model from the issue text.

Description

bug chart( plugin-barman-cloud )

In plugin-barman-cloud chart the hostNetwork parameter from values has no reference in deployment template. As we use custom CNI in our kubernetes cluster we had to deploy cnpg-operator in hostNetwork for webhooks to work. Now we can't communicate operator with plugin and postgres clusters creation is failing. I believe there should be:

{{- if .Values.hostNetwork }}
hostNetwork: {{ .Values.hostNetwork }}
{{- end }}

in deployment pod template spec, same as in cloudnative-pg helm chart.

Dominant language
Go Template
Stars
622
Forks
264
Avg merge
6d 16h
Merged PRs (30d)
8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudnative-pg/charts

All issues in cloudnative-pg/charts

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.