Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ spec:
ls -la /workspace
- name: push-artifacts
onError: continue
ref:
ref:
resolver: git
params:
- name: url
Expand All @@ -347,6 +347,37 @@ spec:
value: "quay.io/openshift-lightspeed/ols-operator-artifacts:416$(params.commit)"
- name: credentials-volume-name
value: ols-konflux-artifacts-bot-creds
- name: cleanup-resources
onError: continue
volumeMounts:
- name: credentials
mountPath: /credentials
env:
- name: KUBECONFIG
value: "/credentials/$(steps.get-kubeconfig.results.kubeconfig)"
image: registry.redhat.io/openshift4/ose-cli:latest
script: |
#!/bin/bash
set -x
echo "=========================================="
echo "Cleaning up OLS resources after artifact push"
echo "=========================================="

# Delete all OLSConfig CRs in openshift-lightspeed namespace
echo "Deleting OLSConfig CRs..."
oc delete olsconfig --all -n openshift-lightspeed --wait=true

# Check if namespace still exists and show status
if oc get namespace openshift-lightspeed 2>/dev/null; then
echo "Namespace still exists, showing remaining resources:"
oc get all -n openshift-lightspeed || true
else
echo "Namespace has been cleaned up"
fi

echo "=========================================="
echo "Cleanup completed"
echo "=========================================="
- name: fail-if-any-step-failed
ref:
resolver: git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,38 @@ spec:
value: "quay.io/openshift-lightspeed/ols-operator-artifacts:$(params.commit)"
- name: credentials-volume-name
value: ols-konflux-artifacts-bot-creds
- name: cleanup-resources
onError: continue
volumeMounts:
- name: credentials
mountPath: /credentials
env:
- name: KUBECONFIG
value: "/credentials/$(steps.get-kubeconfig.results.kubeconfig)"
image: registry.redhat.io/openshift4/ose-cli:latest
script: |
#!/bin/bash
set -x
echo "=========================================="
echo "Cleaning up OLS resources after artifact push"
echo "=========================================="

# Delete all OLSConfig CRs in openshift-lightspeed namespace
echo "Deleting OLSConfig CRs..."
oc delete olsconfig --all -n openshift-lightspeed --wait=true

# Check if namespace still exists and show status
if oc get namespace openshift-lightspeed 2>/dev/null; then
echo "Namespace still exists, showing remaining resources:"
oc get all -n openshift-lightspeed || true
else
echo "Namespace has been cleaned up"
fi

echo "=========================================="
echo "Cleanup completed"
echo "=========================================="

- name: fail-if-any-step-failed
ref:
resolver: git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,38 @@ spec:
value: "quay.io/openshift-lightspeed/ols-operator-artifacts:$(params.commit)"
- name: credentials-volume-name
value: ols-konflux-artifacts-bot-creds
- name: cleanup-resources
onError: continue
volumeMounts:
- name: credentials
mountPath: /credentials
env:
- name: KUBECONFIG
value: "/credentials/$(steps.get-kubeconfig.results.kubeconfig)"
image: registry.redhat.io/openshift4/ose-cli:latest
script: |
#!/bin/bash
set -x
echo "=========================================="
echo "Cleaning up OLS resources after artifact push"
echo "=========================================="

# Delete all OLSConfig CRs in openshift-lightspeed namespace
echo "Deleting OLSConfig CRs..."
oc delete olsconfig --all -n openshift-lightspeed --wait=true

# Check if namespace still exists and show status
if oc get namespace openshift-lightspeed 2>/dev/null; then
echo "Namespace still exists, showing remaining resources:"
oc get all -n openshift-lightspeed || true
else
echo "Namespace has been cleaned up"
fi

echo "=========================================="
echo "Cleanup completed"
echo "=========================================="

- name: fail-if-any-step-failed
ref:
resolver: git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,38 @@ spec:
value: "quay.io/openshift-lightspeed/ols-operator-artifacts:$(params.commit)"
- name: credentials-volume-name
value: ols-konflux-artifacts-bot-creds
- name: cleanup-resources
onError: continue
volumeMounts:
- name: credentials
mountPath: /credentials
env:
- name: KUBECONFIG
value: "/credentials/$(steps.get-kubeconfig.results.kubeconfig)"
image: registry.redhat.io/openshift4/ose-cli:latest
script: |
#!/bin/bash
set -x
echo "=========================================="
echo "Cleaning up OLS resources after artifact push"
echo "=========================================="

# Delete all OLSConfig CRs in openshift-lightspeed namespace
echo "Deleting OLSConfig CRs..."
oc delete olsconfig --all -n openshift-lightspeed --wait=true

# Check if namespace still exists and show status
if oc get namespace openshift-lightspeed 2>/dev/null; then
echo "Namespace still exists, showing remaining resources:"
oc get all -n openshift-lightspeed || true
else
echo "Namespace has been cleaned up"
fi

echo "=========================================="
echo "Cleanup completed"
echo "=========================================="

- name: fail-if-any-step-failed
ref:
resolver: git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,38 @@ spec:
value: "quay.io/openshift-lightspeed/ols-operator-artifacts:$(params.commit)"
- name: credentials-volume-name
value: ols-konflux-artifacts-bot-creds
- name: cleanup-resources
onError: continue
volumeMounts:
- name: credentials
mountPath: /credentials
env:
- name: KUBECONFIG
value: "/credentials/$(steps.get-kubeconfig.results.kubeconfig)"
image: registry.redhat.io/openshift4/ose-cli:latest
script: |
#!/bin/bash
set -x
echo "=========================================="
echo "Cleaning up OLS resources after artifact push"
echo "=========================================="

# Delete all OLSConfig CRs in openshift-lightspeed namespace
echo "Deleting OLSConfig CRs..."
oc delete olsconfig --all -n openshift-lightspeed --wait=true

# Check if namespace still exists and show status
if oc get namespace openshift-lightspeed 2>/dev/null; then
echo "Namespace still exists, showing remaining resources:"
oc get all -n openshift-lightspeed || true
else
echo "Namespace has been cleaned up"
fi

echo "=========================================="
echo "Cleanup completed"
echo "=========================================="

- name: fail-if-any-step-failed
ref:
resolver: git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,38 @@ spec:
value: "quay.io/openshift-lightspeed/ols-operator-artifacts:$(params.commit)"
- name: credentials-volume-name
value: ols-konflux-artifacts-bot-creds
- name: cleanup-resources
onError: continue
volumeMounts:
- name: credentials
mountPath: /credentials
env:
- name: KUBECONFIG
value: "/credentials/$(steps.get-kubeconfig.results.kubeconfig)"
image: registry.redhat.io/openshift4/ose-cli:latest
script: |
#!/bin/bash
set -x
echo "=========================================="
echo "Cleaning up OLS resources after artifact push"
echo "=========================================="

# Delete all OLSConfig CRs in openshift-lightspeed namespace
echo "Deleting OLSConfig CRs..."
oc delete olsconfig --all -n openshift-lightspeed --wait=true

# Check if namespace still exists and show status
if oc get namespace openshift-lightspeed 2>/dev/null; then
echo "Namespace still exists, showing remaining resources:"
oc get all -n openshift-lightspeed || true
else
echo "Namespace has been cleaned up"
fi

echo "=========================================="
echo "Cleanup completed"
echo "=========================================="

- name: fail-if-any-step-failed
ref:
resolver: git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,38 @@ spec:
value: "quay.io/openshift-lightspeed/ols-operator-artifacts:$(params.commit)"
- name: credentials-volume-name
value: ols-konflux-artifacts-bot-creds
- name: cleanup-resources
onError: continue
volumeMounts:
- name: credentials
mountPath: /credentials
env:
- name: KUBECONFIG
value: "/credentials/$(steps.get-kubeconfig.results.kubeconfig)"
image: registry.redhat.io/openshift4/ose-cli:latest
script: |
#!/bin/bash
set -x
echo "=========================================="
echo "Cleaning up OLS resources after artifact push"
echo "=========================================="

# Delete all OLSConfig CRs in openshift-lightspeed namespace
echo "Deleting OLSConfig CRs..."
oc delete olsconfig --all -n openshift-lightspeed --wait=true

# Check if namespace still exists and show status
if oc get namespace openshift-lightspeed 2>/dev/null; then
echo "Namespace still exists, showing remaining resources:"
oc get all -n openshift-lightspeed || true
else
echo "Namespace has been cleaned up"
fi

echo "=========================================="
echo "Cleanup completed"
echo "=========================================="

- name: fail-if-any-step-failed
ref:
resolver: git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,38 @@ spec:
value: "quay.io/openshift-lightspeed/ols-operator-artifacts:$(params.commit)"
- name: credentials-volume-name
value: ols-konflux-artifacts-bot-creds
- name: cleanup-resources
onError: continue
volumeMounts:
- name: credentials
mountPath: /credentials
env:
- name: KUBECONFIG
value: "/credentials/$(steps.get-kubeconfig.results.kubeconfig)"
image: registry.redhat.io/openshift4/ose-cli:latest
script: |
#!/bin/bash
set -x
echo "=========================================="
echo "Cleaning up OLS resources after artifact push"
echo "=========================================="

# Delete all OLSConfig CRs in openshift-lightspeed namespace
echo "Deleting OLSConfig CRs..."
oc delete olsconfig --all -n openshift-lightspeed --wait=true

# Check if namespace still exists and show status
if oc get namespace openshift-lightspeed 2>/dev/null; then
echo "Namespace still exists, showing remaining resources:"
oc get all -n openshift-lightspeed || true
else
echo "Namespace has been cleaned up"
fi

echo "=========================================="
echo "Cleanup completed"
echo "=========================================="

- name: fail-if-any-step-failed
ref:
resolver: git
Expand Down