Skip to content

Commit ac21e5d

Browse files
14rcoledavidmogar
andauthored
feat(stoneintg-1111): begin archiving snapshots with kubearchive (#5479)
* feat(stoneintg-1111): begin archiving snapshots with kubearchive Set up the global configuration for archiving snapshots with kubearchive. This will automatically archive all snapshots upon deletion. Signed-off-by: Ryan Cole <[email protected]> * feat(RELEASE-1286): archive releases This change enable Releases archival on the stage cluster. Signed-off-by: David Moreno García <[email protected]> --------- Signed-off-by: Ryan Cole <[email protected]> Signed-off-by: David Moreno García <[email protected]> Co-authored-by: David Moreno García <[email protected]>
1 parent 9870b19 commit ac21e5d

File tree

6 files changed

+47
-0
lines changed

6 files changed

+47
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- op: add
3+
path: /spec/resources
4+
value:
5+
- selector:
6+
apiVersion: appstudio.redhat.com/v1alpha1
7+
kind: Snapshot
8+
archiveOnDelete: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- ../base
5+
patches:
6+
- path: kubearchive-config-patch.yaml
7+
target:
8+
name: kubearchive
9+
group: kubearchive.kubearchive.org
10+
version: v1alpha1
11+
kind: KubeArchiveConfig
12+
components:
13+
- ../../rh-certs
14+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
apiVersion: kubearchive.kubearchive.org/v1alpha1
3+
kind: KubeArchiveConfig
4+
metadata:
5+
name: kubearchive
6+
namespace: product-kubearchive
7+
spec:
8+
resources:

components/kubearchive/base/kustomization.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ kind: Kustomization
44
resources:
55
- https://github.com/kubearchive/kubearchive/releases/download/v0.9.0/kubearchive.yaml?timeout=90
66
- rbac.yaml
7+
- kubearchive-config.yaml
78

89
# ROSA does not support namespaces starting with `kube`
910
namespace: product-kubearchive
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- op: add
3+
path: /spec/resources
4+
value:
5+
- selector:
6+
apiVersion: appstudio.redhat.com/v1alpha1
7+
kind: Release
8+
archiveWhen: has(status.completionTime)

components/release/staging/kustomization.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ resources:
66
- external-secrets/release-monitor-secret.yaml
77
- https://github.com/konflux-ci/release-service/config/default?ref=6edf44528b6f2918b7625080d2cf888c6a040376
88

9+
patches:
10+
- path: kubearchive-config-patch.yaml
11+
target:
12+
name: kubearchive
13+
group: kubearchive.kubearchive.org
14+
version: v1alpha1
15+
kind: KubeArchiveConfig
16+
917
components:
1018
- ../k-components/manager-resources-patch
1119

0 commit comments

Comments
 (0)