Skip to content
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
3 changes: 1 addition & 2 deletions components/release/base/argocd-permissions.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down Expand Up @@ -26,4 +25,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: openshift-gitops-argocd-application-controller
namespace: openshift-gitops
namespace: openshift-gitops
4 changes: 2 additions & 2 deletions components/release/base/cronjobs/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions components/release/base/cronjobs/remove-expired-releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions components/release/base/cronjobs/remove-internal-requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ spec:
secretKeyRef:
name: release-monitor-secret
key: github_token

2 changes: 1 addition & 1 deletion components/release/development/sealights-token-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ spec:
name: sealights-token
key: token
- name: SEALIGHTS_LOG_LEVEL
value: "debug"
value: "debug"