Skip to content

Commit

Permalink
certificate-authority param is added (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckavili authored Jul 15, 2020
1 parent 6570233 commit 025962a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/cronjob-prune-images/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ spec:
- command:
- /bin/bash
- -c
- oc adm prune images --keep-tag-revisions=$IMAGE_PRUNE_KEEP_TAG_REVISIONS
--keep-younger-than=$IMAGE_PRUNE_KEEP_YOUNGER_THAN --confirm
- oc adm prune images --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt
--keep-tag-revisions=$IMAGE_PRUNE_KEEP_TAG_REVISIONS --keep-younger-than=$IMAGE_PRUNE_KEEP_YOUNGER_THAN --confirm
env:
- name: IMAGE_PRUNE_KEEP_TAG_REVISIONS
value: {{ .Values.image_prune_keep_tag_revisions }}
Expand Down
4 changes: 2 additions & 2 deletions charts/cronjob-prune-images/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
failed_jobs_history_limit: "5"
image: registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7
image: quay.io/openshift/origin-cli
image_prune_keep_tag_revisions: "3"
image_prune_keep_younger_than: 1h0m0s
image_tag: v3.11
image_tag: 4.4
job_name: cronjob-prune-images
job_service_account: pruner
namespace: cluster-ops
Expand Down
4 changes: 2 additions & 2 deletions jobs/cronjob-prune-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ objects:
command:
- "/bin/bash"
- "-c"
- oc adm prune images --keep-tag-revisions=$IMAGE_PRUNE_KEEP_TAG_REVISIONS
--keep-younger-than=$IMAGE_PRUNE_KEEP_YOUNGER_THAN --confirm
- oc adm prune images --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt
--keep-tag-revisions=$IMAGE_PRUNE_KEEP_TAG_REVISIONS --keep-younger-than=$IMAGE_PRUNE_KEEP_YOUNGER_THAN --confirm
env:
- name: IMAGE_PRUNE_KEEP_TAG_REVISIONS
value: "${IMAGE_PRUNE_KEEP_TAG_REVISIONS}"
Expand Down

0 comments on commit 025962a

Please sign in to comment.