You've already forked prometheus-postgres-exporter
							
							fix(deployment): restartPolicy
This commit is contained in:
		| @@ -174,6 +174,7 @@ replaced: | |||||||
| | `deployment.nodeSelector`                          | NodeSelector of the postgres-exporter deployment.                                                          | `{}`                                    | | | `deployment.nodeSelector`                          | NodeSelector of the postgres-exporter deployment.                                                          | `{}`                                    | | ||||||
| | `deployment.priorityClassName`                     | PriorityClassName of the postgres-exporter deployment.                                                     | `""`                                    | | | `deployment.priorityClassName`                     | PriorityClassName of the postgres-exporter deployment.                                                     | `""`                                    | | ||||||
| | `deployment.replicaCount`                          | Number of replicas for the postgres-exporter deployment.                                                   | `1`                                     | | | `deployment.replicaCount`                          | Number of replicas for the postgres-exporter deployment.                                                   | `1`                                     | | ||||||
|  | | `deployment.restartPolicy`                         | Restart policy of the postgres-exporter deployment.                                                        | `""`                                    | | ||||||
| | `deployment.securityContext`                       | Security context of the postgres-exporter deployment.                                                      | `{}`                                    | | | `deployment.securityContext`                       | Security context of the postgres-exporter deployment.                                                      | `{}`                                    | | ||||||
| | `deployment.strategy.type`                         | Strategy type - `Recreate` or `Rollingupdate`.                                                             | `Recreate`                              | | | `deployment.strategy.type`                         | Strategy type - `Recreate` or `Rollingupdate`.                                                             | `Recreate`                              | | ||||||
| | `deployment.strategy.rollingUpdate.maxSurge`       | The maximum number of pods that can be scheduled above the desired number of pods during a rolling update. | `1`                                     | | | `deployment.strategy.rollingUpdate.maxSurge`       | The maximum number of pods that can be scheduled above the desired number of pods during a rolling update. | `1`                                     | | ||||||
|   | |||||||
| @@ -95,7 +95,9 @@ spec: | |||||||
|       {{- if .Values.deployment.priorityClassName }} |       {{- if .Values.deployment.priorityClassName }} | ||||||
|       priorityClassName: {{ .Values.deployment.priorityClassName }} |       priorityClassName: {{ .Values.deployment.priorityClassName }} | ||||||
|       {{- end }} |       {{- end }} | ||||||
|  |       {{- if .Values.deployment.restartPolicy }} | ||||||
|       restartPolicy: {{ .Values.deployment.restartPolicy }} |       restartPolicy: {{ .Values.deployment.restartPolicy }} | ||||||
|  |       {{- end }} | ||||||
|       {{- with .Values.deployment.securityContext }} |       {{- with .Values.deployment.securityContext }} | ||||||
|       securityContext: |       securityContext: | ||||||
|         {{- toYaml . | nindent 8 }} |         {{- toYaml . | nindent 8 }} | ||||||
|   | |||||||
| @@ -79,6 +79,8 @@ tests: | |||||||
|       path: spec.template.spec.nodeSelector |       path: spec.template.spec.nodeSelector | ||||||
|   - notExists: |   - notExists: | ||||||
|       path: spec.template.spec.priorityClassName |       path: spec.template.spec.priorityClassName | ||||||
|  |   - notExists: | ||||||
|  |       path: spec.template.spec.restartPolicy | ||||||
|   - notExists: |   - notExists: | ||||||
|       path: spec.template.spec.subdomain |       path: spec.template.spec.subdomain | ||||||
|  |  | ||||||
| @@ -283,6 +285,14 @@ tests: | |||||||
|       path: spec.template.spec.priorityClassName |       path: spec.template.spec.priorityClassName | ||||||
|       value: my-priority |       value: my-priority | ||||||
|  |  | ||||||
|  | - it: Test restartPolicy | ||||||
|  |   set: | ||||||
|  |     deployment.restartPolicy: Always | ||||||
|  |   asserts: | ||||||
|  |   - equal: | ||||||
|  |       path: spec.template.spec.restartPolicy | ||||||
|  |       value: Always | ||||||
|  |  | ||||||
| - it: Test additional volumeMounts and volumes | - it: Test additional volumeMounts and volumes | ||||||
|   set: |   set: | ||||||
|     deployment.postgresExporter.volumeMounts: |     deployment.postgresExporter.volumeMounts: | ||||||
|   | |||||||
| @@ -204,6 +204,9 @@ deployment: | |||||||
|   ## @param deployment.replicaCount Number of replicas for the postgres-exporter deployment. |   ## @param deployment.replicaCount Number of replicas for the postgres-exporter deployment. | ||||||
|   replicaCount: 1 |   replicaCount: 1 | ||||||
|  |  | ||||||
|  |   ## @param deployment.restartPolicy Restart policy of the postgres-exporter deployment. | ||||||
|  |   restartPolicy: "" | ||||||
|  |  | ||||||
|   ## @param deployment.securityContext Security context of the postgres-exporter deployment. |   ## @param deployment.securityContext Security context of the postgres-exporter deployment. | ||||||
|   securityContext: {} |   securityContext: {} | ||||||
|     # fsGroup: 2000 |     # fsGroup: 2000 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user