Skip to content

Commit

Permalink
chore: restores unwanted changes
Browse files Browse the repository at this point in the history
Signed-off-by: falcorocks <[email protected]>
  • Loading branch information
falcorocks committed Jan 21, 2025
1 parent 9817add commit 3edf674
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 12 deletions.
5 changes: 4 additions & 1 deletion charts/policy-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ helm uninstall [RELEASE_NAME]
| leasescleanup.image.version | string | `"latest-dev"` | |
| leasescleanup.podSecurityContext.enabled | bool | `false` | |
| leasescleanup.priorityClass | string | `""` | |
| leasescleanup.resources | object | `{}` | |
| leasescleanup.resources.limits.cpu | string | `""` | |
| leasescleanup.resources.limits.memory | string | `""` | |
| leasescleanup.resources.requests.cpu | string | `""` | |
| leasescleanup.resources.requests.memory | string | `""` | |
| loglevel | string | `"info"` | |
| serviceMonitor.enabled | bool | `false` | |
| webhook.affinity | object | `{}` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ spec:
tolerations:
{{- toYaml .Values.commonTolerations | nindent 8 }}
serviceAccountName: {{ include "webhook.serviceAccountName" . }}
# To avoid node becoming SPOF, spread our replicas to different nodes.
{{- if .Values.webhook.priorityClass }}
priorityClassName: {{ .Values.webhook.priorityClass }}
{{- end }}
# To avoid node becoming SPOF, spread our replicas to different nodes.
affinity:
{{- if .Values.webhook.affinity }}
{{- toYaml .Values.webhook.affinity | nindent 8 }}
Expand Down
48 changes: 45 additions & 3 deletions charts/policy-controller/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,49 @@
"type": "string"
},
"resources": {
"additionalProperties": true,
"additionalProperties": false,
"properties": {
"limits": {
"additionalProperties": false,
"properties": {
"cpu": {
"default": "",
"required": [],
"title": "cpu",
"type": "string"
},
"memory": {
"default": "",
"required": [],
"title": "memory",
"type": "string"
}
},
"required": [],
"title": "limits",
"type": "object"
},
"requests": {
"additionalProperties": false,
"properties": {
"cpu": {
"default": "",
"required": [],
"title": "cpu",
"type": "string"
},
"memory": {
"default": "",
"required": [],
"title": "memory",
"type": "string"
}
},
"required": [],
"title": "requests",
"type": "object"
}
},
"required": [],
"title": "resources",
"type": "object"
Expand Down Expand Up @@ -235,8 +277,8 @@
"type": "string"
},
"version": {
"default": "sha256:f3b57d4c906fcbd7229c3069c055ce2b2862e01106c2b85df1322f1e3a232829",
"description": "crane digest ghcr.io/sigstore/policy-controller/policy-controller:v0.11.0",
"default": "sha256:6b51f336dec9e9adff29606855dbd2c7910c5eb80d6579795a29cb3844428efc",
"description": "crane digest ghcr.io/sigstore/policy-controller/policy-controller:v0.12.0",
"required": [],
"title": "version",
"type": "string"
Expand Down
14 changes: 7 additions & 7 deletions charts/policy-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ leasescleanup:
repository: cgr.dev/chainguard/kubectl
version: latest-dev
pullPolicy: IfNotPresent
resources: {}
# limits:
# cpu: ""
# memory: ""
# requests:
# cpu: ""
# memory: ""
resources:
limits:
cpu: ""
memory: ""
requests:
cpu: ""
memory: ""
podSecurityContext:
enabled: false
# allowPrivilegeEscalation: false
Expand Down

0 comments on commit 3edf674

Please sign in to comment.