Skip to content

Commit a846b3d

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

File tree

4 files changed

+61
-13
lines changed

4 files changed

+61
-13
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

+49-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
"type": "integer"
5656
}
5757
},
58-
"required": [],
58+
"required": [
59+
"mutating",
60+
"validating"
61+
],
5962
"title": "webhookTimeoutSeconds",
6063
"type": "object"
6164
}
@@ -144,7 +147,49 @@
144147
"type": "string"
145148
},
146149
"resources": {
147-
"additionalProperties": true,
150+
"additionalProperties": false,
151+
"properties": {
152+
"limits": {
153+
"additionalProperties": false,
154+
"properties": {
155+
"cpu": {
156+
"default": "",
157+
"required": [],
158+
"title": "cpu",
159+
"type": "string"
160+
},
161+
"memory": {
162+
"default": "",
163+
"required": [],
164+
"title": "memory",
165+
"type": "string"
166+
}
167+
},
168+
"required": [],
169+
"title": "limits",
170+
"type": "object"
171+
},
172+
"requests": {
173+
"additionalProperties": false,
174+
"properties": {
175+
"cpu": {
176+
"default": "",
177+
"required": [],
178+
"title": "cpu",
179+
"type": "string"
180+
},
181+
"memory": {
182+
"default": "",
183+
"required": [],
184+
"title": "memory",
185+
"type": "string"
186+
}
187+
},
188+
"required": [],
189+
"title": "requests",
190+
"type": "object"
191+
}
192+
},
148193
"required": [],
149194
"title": "resources",
150195
"type": "object"
@@ -235,8 +280,8 @@
235280
"type": "string"
236281
},
237282
"version": {
238-
"default": "sha256:f3b57d4c906fcbd7229c3069c055ce2b2862e01106c2b85df1322f1e3a232829",
239-
"description": "crane digest ghcr.io/sigstore/policy-controller/policy-controller:v0.11.0",
283+
"default": "sha256:6b51f336dec9e9adff29606855dbd2c7910c5eb80d6579795a29cb3844428efc",
284+
"description": "crane digest ghcr.io/sigstore/policy-controller/policy-controller:v0.12.0",
240285
"required": [],
241286
"title": "version",
242287
"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)