Skip to content

Commit

Permalink
fix vault job template (#1200)
Browse files Browse the repository at this point in the history
<!--
### Contribution Checklist

- Name the pull request in the form "[charts/<chart-name>] Title of the
pull request".
Skip *[charts/<chart-name>]* if the PR doesn't change a specific chart.
E.g. `[docs] Fix typo in README`.

- Fill out the template below to describe the changes contributed by the
pull request. That will give reviewers the context they need to do the
review.

- Each pull request should address only one issue, not mix up code from
multiple issues.

  - Each commit in the pull request has a meaningful commit message

- Once all items of the checklist are addressed, remove the above text
and this checklist, leaving only the filled out template below.

**(The sections below can be removed for hotfixes of typos)**
-->

*(If this PR fixes a github issue, please add `Fixes #<xyz>`.)*

Fixes #<xyz>

*(or if this PR is one task of a github issue, please add `Master Issue:
#<xyz>` to link to the master issue.)*

Master Issue: #<xyz>

### Motivation

*Explain here the context, and why you're making that change. What is
the problem you're trying to solve.*

### Modifications

*Describe the modifications you've done.*

### Verifying this change

- [x] Make sure that the change passes the CI checks.

*(Please pick either of the following options)*

This change is a trivial rework / code cleanup without any test
coverage.

*(or)*

This change is already covered by existing tests, such as *(please
describe tests)*.

*(or)*

This change added tests and can be verified as follows:

*(example:)*
- *Added integration tests for end-to-end deployment with large payloads
(10MB)*
  - *Extended integration test for recovery after broker failure*

### Documentation

Check the box below.

Need to update docs?

- [ ] `doc-required`

  (If you need help on updating docs, create a doc issue)

- [x] `no-need-doc`

  (Please explain why)

- [ ] `doc`

  (If this PR contains doc changes)

---------

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
(cherry picked from commit aeda6c0)
  • Loading branch information
ericsyh committed Jan 14, 2025
1 parent 7e0ad77 commit 44b4f38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ spec:
imagePullSecrets: {{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.vault.tolerations }}
tolerations:
{{ toYaml .Values.vault.tolerations | indent 8 }}
tolerations: {{ toYaml .Values.vault.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.vault.nodeSelector }}
nodeSelector:
{{ toYaml .Values.vault.nodeSelector | indent 8 }}
nodeSelector: {{ toYaml .Values.vault.nodeSelector | nindent 8 }}
{{- end }}
affinity:
{{- include "pulsar.antiAffinityRules" (dict "Values" .Values "thisAffinity" .Values.vault.affinity "Component" .Values.vault.component "Release" .Release "Chart" .Chart) | indent 8 }}
Expand Down
6 changes: 2 additions & 4 deletions charts/sn-platform/templates/vault/vault-initialize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ spec:
imagePullSecrets: {{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.vault.tolerations }}
tolerations:
{{ toYaml .Values.vault.tolerations | indent 8 }}
tolerations: {{ toYaml .Values.vault.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.vault.nodeSelector }}
nodeSelector:
{{ toYaml .Values.vault.nodeSelector | indent 8 }}
nodeSelector: {{ toYaml .Values.vault.nodeSelector | nindent 8 }}
{{- end }}
affinity:
{{- include "pulsar.antiAffinityRules" (dict "Values" .Values "thisAffinity" .Values.vault.affinity "Component" .Values.vault.component "Release" .Release "Chart" .Chart) | indent 8 }}
Expand Down
6 changes: 2 additions & 4 deletions charts/sn-platform/templates/vault/vault-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ spec:
{{- end }}
{{- include "pulsar.istio.pod.annotations" . | nindent 4 }}
{{- if .Values.vault.tolerations }}
tolerations:
{{ toYaml .Values.vault.tolerations | indent 4 }}
tolerations: {{ toYaml .Values.vault.tolerations | nindent 4 }}
{{- end }}
{{- if .Values.vault.nodeSelector }}
nodeSelector:
{{ toYaml .Values.vault.nodeSelector | indent 4 }}
nodeSelector: {{ toYaml .Values.vault.nodeSelector | nindent 4 }}
{{- end }}
affinity:
{{- include "pulsar.antiAffinityRules" (dict "Values" .Values "thisAffinity" .Values.vault.affinity "Component" .Values.vault.component "Release" .Release "Chart" .Chart) | indent 4 }}
Expand Down

0 comments on commit 44b4f38

Please # to comment.