Skip to content

Commit

Permalink
Updates:
Browse files Browse the repository at this point in the history
* added "defaultImagePullPolicy"
* docs minor fix
  • Loading branch information
Roman Andreev committed Jun 9, 2022
1 parent 58c64d1 commit b5be5e9
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 36 deletions.
57 changes: 29 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,28 @@ The command removes all the Kubernetes components associated with the chart and

### Common parameters

| Name | Description | Value |
|-----------------------------|---------------------------------------------------------------------------------------------------------------|----------------|
| `kubeVersion` | Override Kubernetes version | `""` |
| `nameOverride` | String to override release name | `""` |
| `envs` | Map of environment variables which will be deplyed as ConfigMap with name `RELEASE_NAME-envs` | `{}` |
| `envsString` | String with map of environment variables which will be deplyed as ConfigMap with name `RELEASE_NAME-envs` | `""` |
| `secretEnvs` | Map of environment variables which will be deplyed as Secret with name `RELEASE_NAME-secret-envs` | `{}` |
| `secretEnvsString` | String with map of environment variables which will be deplyed as Secret with name `RELEASE_NAME-secret-envs` | `""` |
| `imagePullSecrets` | Map of registry secrets in `.dockerconfigjson` format | `{}` |
| `defaultImage` | Docker image that will be used by default | `[]` |
| `defaultImageTag` | Docker image tag that will be used by default | `[]` |
| `podAffinityPreset` | Pod affinity preset. Ignored if workload `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if workload `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `nodeAffinityPreset.type` | Node affinity preset type. Ignored if workload `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `nodeAffinityPreset.key` | Node label key to match. Ignored if workload `affinity` is set | `""` |
| `nodeAffinityPreset.values` | Node label values to match. Ignored if workload `affinity` is set | `[]` |
| `extraDeploy` | Map of extra objects (k8s manifests or Helm templates) to deploy with the release. [Example](#example-3) | `[]` |
| `diagnosticMode.enabled` | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | `false` |
| `diagnosticMode.command` | Command to override all containers in the deployment | `["sleep"]` |
| `diagnosticMode.args` | Args to override all containers in the deployment | `["infinity"]` |
| `releasePrefix` | Override prefix for all manifests names. Release name used by default. You should use `"-"` to make it empty. | `""` |
| Name | Description | Value |
|-----------------------------|---------------------------------------------------------------------------------------------------------------|------------------|
| `kubeVersion` | Override Kubernetes version | `""` |
| `nameOverride` | String to override release name | `""` |
| `envs` | Map of environment variables which will be deplyed as ConfigMap with name `RELEASE_NAME-envs` | `{}` |
| `envsString` | String with map of environment variables which will be deplyed as ConfigMap with name `RELEASE_NAME-envs` | `""` |
| `secretEnvs` | Map of environment variables which will be deplyed as Secret with name `RELEASE_NAME-secret-envs` | `{}` |
| `secretEnvsString` | String with map of environment variables which will be deplyed as Secret with name `RELEASE_NAME-secret-envs` | `""` |
| `imagePullSecrets` | Map of registry secrets in `.dockerconfigjson` format | `{}` |
| `defaultImage` | Docker image that will be used by default | `[]` |
| `defaultImageTag` | Docker image tag that will be used by default | `[]` |
| `defaultImagePullPolicy` | Docker image pull policy that will be used by default | `"IfNotPresent"` |
| `podAffinityPreset` | Pod affinity preset. Ignored if workload `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if workload `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `nodeAffinityPreset.type` | Node affinity preset type. Ignored if workload `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `nodeAffinityPreset.key` | Node label key to match. Ignored if workload `affinity` is set | `""` |
| `nodeAffinityPreset.values` | Node label values to match. Ignored if workload `affinity` is set | `[]` |
| `extraDeploy` | Map of extra objects (k8s manifests or Helm templates) to deploy with the release. [Example](#example-3) | `[]` |
| `diagnosticMode.enabled` | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | `false` |
| `diagnosticMode.command` | Command to override all containers in the deployment | `["sleep"]` |
| `diagnosticMode.args` | Args to override all containers in the deployment | `["infinity"]` |
| `releasePrefix` | Override prefix for all manifests names. Release name used by default. You should use `"-"` to make it empty. | `""` |

### Deployments parameters

Expand Down Expand Up @@ -193,12 +194,12 @@ The command removes all the Kubernetes components associated with the chart and

#### Ingress `paths` object parameters

| Name | Description | Value |
|---------------|-------------------------------------------------------------------------------------------------------------------------|-------|
| `path` | URL path | `"/"` |
| `pathType` | Type of the ingress path [see for details](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types) | `[]` |
| `serviceName` | Name of the service to route requests | `""` |
| `servicePort` | Name or number of the service port to route requests | `""` |
| Name | Description | Value |
|---------------|-------------------------------------------------------------------------------------------------------------------------|------------|
| `path` | URL path | `"/"` |
| `pathType` | Type of the ingress path [see for details](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types) | `"Prefix"` |
| `serviceName` | Name of the service to route requests | `""` |
| `servicePort` | Name or number of the service port to route requests | `""` |

### Secrets parameters

Expand Down Expand Up @@ -431,7 +432,7 @@ Secret `data` object is a map where value can be a string, json or base64 encode
| `scaleTargetRef` | Required [scaleTargetRef](#hpa-scaletargetref-object-parameters) object | |
| `targetCPU` | target CPU utilization percentage | `""` |
| `targetMemory` | target memory utilization percentage | `""` |
| `metrics` | list of custom metrics | `[]` |
| `metrics` | list of custom metrics | `[]` |

### HPA `scaleTargetRef` object parameters

Expand Down
4 changes: 2 additions & 2 deletions templates/cronjob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ spec:
{{- $image := $.Values.defaultImage }}{{ with .image }}{{ $image = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
{{- $imageTag := $.Values.defaultImageTag }}{{ with .imageTag }}{{ $imageTag = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
image: {{ $image }}:{{ $imageTag }}
imagePullPolicy: {{ .imagePullPolicy | default "IfNotPresent" }}
imagePullPolicy: {{ .imagePullPolicy | default $.Values.defaultImagePullPolicy }}
{{- with .securityContext }}
securityContext: {{- include "helpers.tplvalues.render" ( dict "value" . "context" $) | nindent 14 }}
{{- end }}
Expand Down Expand Up @@ -174,7 +174,7 @@ spec:
{{- $image := $.Values.defaultImage }}{{ with .image }}{{ $image = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
{{- $imageTag := $.Values.defaultImageTag }}{{ with .imageTag }}{{ $imageTag = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
image: {{ $image }}:{{ $imageTag }}
imagePullPolicy: {{ .imagePullPolicy | default "IfNotPresent" }}
imagePullPolicy: {{ .imagePullPolicy | default $.Values.defaultImagePullPolicy }}
{{- with .securityContext }}
securityContext: {{- include "helpers.tplvalues.render" ( dict "value" . "context" $) | nindent 14 }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
{{- $image := $.Values.defaultImage }}{{ with .image }}{{ $image = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
{{- $imageTag := $.Values.defaultImageTag }}{{ with .imageTag }}{{ $imageTag = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
image: {{ $image }}:{{ $imageTag }}
imagePullPolicy: {{ .imagePullPolicy | default "IfNotPresent" }}
imagePullPolicy: {{ .imagePullPolicy | default $.Values.defaultImagePullPolicy }}
{{- with .securityContext }}
securityContext: {{- include "helpers.tplvalues.render" ( dict "value" . "context" $) | nindent 10 }}
{{- end }}
Expand Down Expand Up @@ -126,7 +126,7 @@ spec:
{{- $image := $.Values.defaultImage }}{{ with .image }}{{ $image = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
{{- $imageTag := $.Values.defaultImageTag }}{{ with .imageTag }}{{ $imageTag = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
image: {{ $image }}:{{ $imageTag }}
imagePullPolicy: {{ .imagePullPolicy | default "IfNotPresent" }}
imagePullPolicy: {{ .imagePullPolicy | default $.Values.defaultImagePullPolicy }}
{{- with .securityContext }}
securityContext: {{- include "helpers.tplvalues.render" ( dict "value" . "context" $) | nindent 10 }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/helm-hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ spec:
{{- $image := $.Values.defaultImage }}{{ with .image }}{{ $image = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
{{- $imageTag := $.Values.defaultImageTag }}{{ with .imageTag }}{{ $imageTag = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
image: {{ $image }}:{{ $imageTag }}
imagePullPolicy: {{ .imagePullPolicy | default "IfNotPresent" }}
imagePullPolicy: {{ .imagePullPolicy | default $.Values.defaultImagePullPolicy }}
{{- with .securityContext }}
securityContext: {{- include "helpers.tplvalues.render" ( dict "value" . "context" $) | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -153,7 +153,7 @@ spec:
{{- $image := $.Values.defaultImage }}{{ with .image }}{{ $image = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
{{- $imageTag := $.Values.defaultImageTag }}{{ with .imageTag }}{{ $imageTag = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
image: {{ $image }}:{{ $imageTag }}
imagePullPolicy: {{ .imagePullPolicy | default "IfNotPresent" }}
imagePullPolicy: {{ .imagePullPolicy | default $.Values.defaultImagePullPolicy }}
{{- with .securityContext }}
securityContext: {{- include "helpers.tplvalues.render" ( dict "value" . "context" $) | nindent 8 }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ spec:
{{- $image := $.Values.defaultImage }}{{ with .image }}{{ $image = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
{{- $imageTag := $.Values.defaultImageTag }}{{ with .imageTag }}{{ $imageTag = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
image: {{ $image }}:{{ $imageTag }}
imagePullPolicy: {{ .imagePullPolicy | default "IfNotPresent" }}
imagePullPolicy: {{ .imagePullPolicy | default $.Values.defaultImagePullPolicy }}
{{- with .securityContext }}
securityContext: {{- include "helpers.tplvalues.render" ( dict "value" . "context" $) | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -151,7 +151,7 @@ spec:
{{- $image := $.Values.defaultImage }}{{ with .image }}{{ $image = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
{{- $imageTag := $.Values.defaultImageTag }}{{ with .imageTag }}{{ $imageTag = include "helpers.tplvalues.render" ( dict "value" . "context" $) }}{{ end }}
image: {{ $image }}:{{ $imageTag }}
imagePullPolicy: {{ .imagePullPolicy | default "IfNotPresent" }}
imagePullPolicy: {{ .imagePullPolicy | default $.Values.defaultImagePullPolicy }}
{{- with .securityContext }}
securityContext: {{- include "helpers.tplvalues.render" ( dict "value" . "context" $) | nindent 8 }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ imagePullSecrets: {}

defaultImage: nginx
defaultImageTag: latest
defaultImagePullPolicy: "IfNotPresent"

deployments: {}
# nginx:
Expand Down

0 comments on commit b5be5e9

Please sign in to comment.