diff --git a/charts/wiremock/Chart.yaml b/charts/wiremock/Chart.yaml index bbd1cea..0309729 100644 --- a/charts/wiremock/Chart.yaml +++ b/charts/wiremock/Chart.yaml @@ -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: 1.8.0 +version: 1.9.0 # 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 diff --git a/charts/wiremock/templates/deployment.yaml b/charts/wiremock/templates/deployment.yaml index 4e7be66..ceb5e2d 100644 --- a/charts/wiremock/templates/deployment.yaml +++ b/charts/wiremock/templates/deployment.yaml @@ -83,6 +83,8 @@ spec: image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}" imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }} command: ["bash", "-c", "cp -rfv /data/mappings /home/wiremock/storage/mappings"] + resources: + {{- toYaml .Values.initContainer.resources | nindent 12 }} volumeMounts: - mountPath: /data/mappings name: mappings-volume @@ -99,6 +101,8 @@ spec: image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}" imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }} command: ["bash", "-c", "cp -rfv /data/responses /home/wiremock/storage/__files"] + resources: + {{- toYaml .Values.initContainer.resources | nindent 12 }} volumeMounts: - mountPath: /data/responses name: responses-volume diff --git a/charts/wiremock/values.yaml b/charts/wiremock/values.yaml index 3f1435e..09979c3 100644 --- a/charts/wiremock/values.yaml +++ b/charts/wiremock/values.yaml @@ -39,6 +39,17 @@ initContainer: repository: bash tag: 5 pullPolicy: Always + resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi extraVolumeMounts: {} extraInitContainers: []