Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump policy-controller version to v0.10.0-github7 #58

Merged
merged 5 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/policy-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ sources:
type: application

name: policy-controller
version: "v0.10.0-github5"
appVersion: "v0.10.0-github5"
version: "v0.10.0-github7"
appVersion: "v0.10.0-github7"

maintainers:
- name: codysoyland
Expand Down
2 changes: 1 addition & 1 deletion charts/policy-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The Helm chart for Policy Controller
| installCRDs | bool | `true` | |
| leasescleanup.image.pullPolicy | string | `"IfNotPresent"` | |
| leasescleanup.image.repository | string | `"cgr.dev/chainguard/kubectl"` | |
| leasescleanup.image.version | string | `"latest-dev"` | |
| leasescleanup.image.version | string | `"sha256:dfa420c3fe94a8365b274fd714fb829b466cd762d6870d579db8744e6f27450a"` | |
| loglevel | string | `"info"` | |
| serviceMonitor.enabled | bool | `false` | |
| webhook.configData | object | `{}` | |
Expand Down
4 changes: 4 additions & 0 deletions charts/policy-controller/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ Create the image path for the passed in image field
Create the image path for the passed in leases-cleanup image field
*/}}
{{- define "leases-cleanup.image" -}}
{{- if eq (substr 0 7 .version) "sha256:" -}}
{{- printf "%s@%s" .repository .version -}}
{{- else -}}
{{- printf "%s:%s" .repository .version -}}
{{- end -}}
{{- end -}}

{{/*
*/}}
Expand Down
8 changes: 7 additions & 1 deletion charts/policy-controller/templates/crds/trustroots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ spec:
type: object
properties:
mirror:
description: 'Mirror is the remote mirror, for example: https://sigstore-tuf-root.storage.googleapis.com'
description: 'Mirror is the remote mirror, for example: https://tuf-repo-cdn.sigstore.dev'
type: string
root:
description: Root is the base64 encoded, json trusted initial root.
type: string
targets:
description: Targets is where the targets live off of the root of the Remote If not specified 'targets' is defaulted.
type: string
trustedRootTarget:
description: TrustedRootTarget is the name of the target containing the JSON trusted root. If not specified, `trusted_root.json` is used.
type: string
repository:
description: Repository contains the serialized TUF remote repository.
type: object
Expand All @@ -67,6 +70,9 @@ spec:
targets:
description: Targets is where the targets live off of the root of the Repository above. If not specified 'targets' is defaulted.
type: string
trustedRootTarget:
description: TrustedRootTarget is the name of the target containing the JSON trusted root. If not specified, `trusted_root.json` is used.
type: string
sigstoreKeys:
description: SigstoreKeys contains the serialized keys.
type: object
Expand Down
7 changes: 4 additions & 3 deletions charts/policy-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ webhook:
name: webhook
image:
repository: ghcr.io/github/policy-controller-webhook
# crane digest ghcr.io/github/policy-controller-webhook:v0.10.0-github5
version: sha256:048a124b6f287a742956006730844ff5553d00bc12ec99ed1793480d7fbec814
# crane digest ghcr.io/github/policy-controller-webhook:v0.10.0-github7
version: sha256:0bc1630678ffb1623c139d6f0cfdb512a2041033ec94c83a3820f7eddd6b0aab
pullPolicy: IfNotPresent
env: {}
extraArgs: {}
Expand Down Expand Up @@ -70,7 +70,8 @@ webhook:
leasescleanup:
image:
repository: cgr.dev/chainguard/kubectl
version: latest-dev
# crane digest cgr.dev/chainguard/kubectl:latest
version: sha256:dfa420c3fe94a8365b274fd714fb829b466cd762d6870d579db8744e6f27450a
pullPolicy: IfNotPresent

## common node selector for all the pods
Expand Down