diff --git a/components/release/base/argocd-permissions.yaml b/components/release/base/argocd-permissions.yaml index d9889702402..69df9c60970 100644 --- a/components/release/base/argocd-permissions.yaml +++ b/components/release/base/argocd-permissions.yaml @@ -1,4 +1,3 @@ - kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: @@ -26,4 +25,4 @@ roleRef: subjects: - kind: ServiceAccount name: openshift-gitops-argocd-application-controller - namespace: openshift-gitops + namespace: openshift-gitops diff --git a/components/release/base/cronjobs/kustomization.yaml b/components/release/base/cronjobs/kustomization.yaml index 351d7c267c2..77bb161e36e 100644 --- a/components/release/base/cronjobs/kustomization.yaml +++ b/components/release/base/cronjobs/kustomization.yaml @@ -1,5 +1,5 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization resources: - remove-expired-releases.yaml diff --git a/components/release/base/cronjobs/remove-expired-releases.yaml b/components/release/base/cronjobs/remove-expired-releases.yaml index 9cdfecfff9c..300b830bdfa 100644 --- a/components/release/base/cronjobs/remove-expired-releases.yaml +++ b/components/release/base/cronjobs/remove-expired-releases.yaml @@ -44,17 +44,17 @@ spec: if(now > expirationTime) { args="%s:%s\n" printf(args, $1, $2) - } + } }' $KUBECTL_OUTPUT > $EXPIRED_RELEASES_FILE - # The deleteAndLog will run the Release deletion and save the operation in a structured way that - # can be read easily by kubectl or journalctl + # The deleteAndLog will run the Release deletion and save the operation in a structured way that + # can be read easily by kubectl or journalctl function deleteAndLog() { release=${1%:*} namespace=${1#*:} kubectl delete release $release -n $namespace |while read logLine; do echo "INFO: namespace=${namespace} log=${logLine}" - done - } + done + } export -f deleteAndLog xargs -a ${EXPIRED_RELEASES_FILE} -i -P ${MAX_PROCS} bash -c 'deleteAndLog "{}"' imagePullPolicy: IfNotPresent diff --git a/components/release/base/cronjobs/remove-internal-requests.yaml b/components/release/base/cronjobs/remove-internal-requests.yaml index b4adcc1e155..753a0767b3b 100644 --- a/components/release/base/cronjobs/remove-internal-requests.yaml +++ b/components/release/base/cronjobs/remove-internal-requests.yaml @@ -44,18 +44,18 @@ spec: if(yesterday > completionTime) { args="%s:%s\n" printf(args, $1, $2) - } + } }' $KUBECTL_OUTPUT > $INTERNAL_REQUESTS_FILE - # The deleteAndLog will run the CR deletion and save the operation in a structured way that - # can be read easily by kubectl or journalctl + # The deleteAndLog will run the CR deletion and save the operation in a structured way that + # can be read easily by kubectl or journalctl function deleteAndLog() { ir=${1%:*} namespace=${1#*:} kubectl delete internalrequest $ir -n $namespace |while read logLine; do echo "INFO: namespace=${namespace} log=${logLine}" - done - } + done + } export -f deleteAndLog xargs -a ${INTERNAL_REQUESTS_FILE} -i -P ${MAX_PROCS} bash -c 'deleteAndLog "{}"' imagePullPolicy: IfNotPresent diff --git a/components/release/base/monitor/development/kustomization.yaml b/components/release/base/monitor/development/kustomization.yaml index d215ab96e9b..19223782dff 100644 --- a/components/release/base/monitor/development/kustomization.yaml +++ b/components/release/base/monitor/development/kustomization.yaml @@ -7,7 +7,6 @@ resources: images: - name: quay.io/konflux-ci/release-service-monitor newName: quay.io/konflux-ci/release-service-monitor - newTag: 73e63a3db71ab5084150b31277710aabff613b03 + newTag: 73e63a3db71ab5084150b31277710aabff613b03 namespace: release-service - diff --git a/components/release/base/monitor/staging/patches/env-secrets-patch.yaml b/components/release/base/monitor/staging/patches/env-secrets-patch.yaml index be56b7661dd..0efa0537caf 100644 --- a/components/release/base/monitor/staging/patches/env-secrets-patch.yaml +++ b/components/release/base/monitor/staging/patches/env-secrets-patch.yaml @@ -24,4 +24,3 @@ spec: secretKeyRef: name: release-monitor-secret key: github_token - diff --git a/components/release/development/sealights-token-patch.yaml b/components/release/development/sealights-token-patch.yaml index 3edc2deca5d..0b5c9f8fa17 100644 --- a/components/release/development/sealights-token-patch.yaml +++ b/components/release/development/sealights-token-patch.yaml @@ -14,4 +14,4 @@ spec: name: sealights-token key: token - name: SEALIGHTS_LOG_LEVEL - value: "debug" \ No newline at end of file + value: "debug"