Skip to content

Commit 3edf674

Browse files
committed
chore: restores unwanted changes
Signed-off-by: falcorocks <[email protected]>
1 parent 9817add commit 3edf674

File tree

4 files changed

+57
-12
lines changed

4 files changed

+57
-12
lines changed

charts/policy-controller/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ helm uninstall [RELEASE_NAME]
162162
| leasescleanup.image.version | string | `"latest-dev"` | |
163163
| leasescleanup.podSecurityContext.enabled | bool | `false` | |
164164
| leasescleanup.priorityClass | string | `""` | |
165-
| leasescleanup.resources | object | `{}` | |
165+
| leasescleanup.resources.limits.cpu | string | `""` | |
166+
| leasescleanup.resources.limits.memory | string | `""` | |
167+
| leasescleanup.resources.requests.cpu | string | `""` | |
168+
| leasescleanup.resources.requests.memory | string | `""` | |
166169
| loglevel | string | `"info"` | |
167170
| serviceMonitor.enabled | bool | `false` | |
168171
| webhook.affinity | object | `{}` | |

charts/policy-controller/templates/webhook/deployment_webhook.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ spec:
3131
tolerations:
3232
{{- toYaml .Values.commonTolerations | nindent 8 }}
3333
serviceAccountName: {{ include "webhook.serviceAccountName" . }}
34-
# To avoid node becoming SPOF, spread our replicas to different nodes.
3534
{{- if .Values.webhook.priorityClass }}
3635
priorityClassName: {{ .Values.webhook.priorityClass }}
3736
{{- end }}
37+
# To avoid node becoming SPOF, spread our replicas to different nodes.
3838
affinity:
3939
{{- if .Values.webhook.affinity }}
4040
{{- toYaml .Values.webhook.affinity | nindent 8 }}

charts/policy-controller/values.schema.json

+45-3
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,49 @@
144144
"type": "string"
145145
},
146146
"resources": {
147-
"additionalProperties": true,
147+
"additionalProperties": false,
148+
"properties": {
149+
"limits": {
150+
"additionalProperties": false,
151+
"properties": {
152+
"cpu": {
153+
"default": "",
154+
"required": [],
155+
"title": "cpu",
156+
"type": "string"
157+
},
158+
"memory": {
159+
"default": "",
160+
"required": [],
161+
"title": "memory",
162+
"type": "string"
163+
}
164+
},
165+
"required": [],
166+
"title": "limits",
167+
"type": "object"
168+
},
169+
"requests": {
170+
"additionalProperties": false,
171+
"properties": {
172+
"cpu": {
173+
"default": "",
174+
"required": [],
175+
"title": "cpu",
176+
"type": "string"
177+
},
178+
"memory": {
179+
"default": "",
180+
"required": [],
181+
"title": "memory",
182+
"type": "string"
183+
}
184+
},
185+
"required": [],
186+
"title": "requests",
187+
"type": "object"
188+
}
189+
},
148190
"required": [],
149191
"title": "resources",
150192
"type": "object"
@@ -235,8 +277,8 @@
235277
"type": "string"
236278
},
237279
"version": {
238-
"default": "sha256:f3b57d4c906fcbd7229c3069c055ce2b2862e01106c2b85df1322f1e3a232829",
239-
"description": "crane digest ghcr.io/sigstore/policy-controller/policy-controller:v0.11.0",
280+
"default": "sha256:6b51f336dec9e9adff29606855dbd2c7910c5eb80d6579795a29cb3844428efc",
281+
"description": "crane digest ghcr.io/sigstore/policy-controller/policy-controller:v0.12.0",
240282
"required": [],
241283
"title": "version",
242284
"type": "string"

charts/policy-controller/values.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ leasescleanup:
8484
repository: cgr.dev/chainguard/kubectl
8585
version: latest-dev
8686
pullPolicy: IfNotPresent
87-
resources: {}
88-
# limits:
89-
# cpu: ""
90-
# memory: ""
91-
# requests:
92-
# cpu: ""
93-
# memory: ""
87+
resources:
88+
limits:
89+
cpu: ""
90+
memory: ""
91+
requests:
92+
cpu: ""
93+
memory: ""
9494
podSecurityContext:
9595
enabled: false
9696
# allowPrivilegeEscalation: false

0 commit comments

Comments
 (0)