Skip to content

Commit

Permalink
add restart policy for user creation job
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Mar 26, 2024
1 parent bb17a36 commit bf60c77
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/netmaker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.11.0
version: 0.11.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 2 additions & 1 deletion charts/netmaker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netmaker

![Version: 0.11.0](https://img.shields.io/badge/Version-0.11.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.23.0](https://img.shields.io/badge/AppVersion-v0.23.0-informational?style=flat-square)
![Version: 0.11.1](https://img.shields.io/badge/Version-0.11.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.23.0](https://img.shields.io/badge/AppVersion-v0.23.0-informational?style=flat-square)

A Helm chart to run HA Netmaker on Kubernetes

Expand Down Expand Up @@ -62,6 +62,7 @@ A Helm chart to run HA Netmaker on Kubernetes
| mq.username | string | `"netmaker"` | |
| nameOverride | string | `""` | override the name for netmaker objects |
| netmaker.admin.existingSecret | string | `""` | set admin user/password via an existing k8s secret. Must have keys: ADMIN_USER, ADMIN_PASSWORD If set, disables registration via UI, and ignores netmaker.admin.user, netmaker.admin.password |
| netmaker.admin.jobRestartPolicy | string | `"Never"` | restart policy for the admin user creation job |
| netmaker.admin.password | string | `""` | initial admin user's password, ignored if netmaker.admin.existingSecret set |
| netmaker.admin.user | string | `""` | initial admin user to create. if set, disables registration via UI. Ignored if netmaker.admin.existingSecret set |
| netmaker.enterprise | object | `{"licenseKey":"","tenantId":""}` | if using enterprise edition fill out this section |
Expand Down
1 change: 1 addition & 0 deletions charts/netmaker/templates/netmaker-admin-user-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
metadata:
name: setup-initial-user-pod
spec:
restartPolicy: {{ .Values.netmaker.admin.jobRestartPolicy }}
containers:
- name: setup-initial-user
image: curlimages/curl:latest
Expand Down
2 changes: 2 additions & 0 deletions charts/netmaker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ netmaker:
# ADMIN_USER, ADMIN_PASSWORD
# If set, disables registration via UI, and ignores netmaker.admin.user, netmaker.admin.password
existingSecret: ""
# -- restart policy for the admin user creation job
jobRestartPolicy: "Never"

# -- if using enterprise edition fill out this section
enterprise:
Expand Down

0 comments on commit bf60c77

Please sign in to comment.