Skip to content

Commit 539175a

Browse files
committed
refactor(secrets): add kustomize components tree
Move vault-secrets-operator and external-secrets-operator manifests under components/secrets/. Keep resources/ paths as thin wrappers. Pin Argo CD remote kustomize component URLs with ?ref=feature/rhoso-apps-helm-chart. Add ESO Application CRs and extend docs for remote consumption. AI-Assist: Cursor; model=Composer; mode=agent; origin=cursor Made-with: Cursor
1 parent b550fa7 commit 539175a

19 files changed

Lines changed: 130 additions & 24 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
apiVersion: argoproj.io/v1alpha1
3+
kind: Application
4+
metadata:
5+
annotations:
6+
argocd.argoproj.io/sync-wave: "-10"
7+
finalizers:
8+
- resources-finalizer.argocd.argoproj.io/foreground
9+
name: subscribe-external-secrets-operator-redhat
10+
namespace: openshift-gitops
11+
spec:
12+
destination:
13+
server: https://kubernetes.default.svc
14+
project: default
15+
source:
16+
kustomize:
17+
components:
18+
- https://github.com/openstack-k8s-operators/gitops/components/argocd/annotations?ref=feature/rhoso-apps-helm-chart
19+
path: resources/external-secrets-operator/redhat
20+
repoURL: https://github.com/openstack-k8s-operators/gitops.git
21+
targetRevision: feature/rhoso-apps-helm-chart
22+
syncPolicy:
23+
automated: {}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
apiVersion: argoproj.io/v1alpha1
3+
kind: Application
4+
metadata:
5+
annotations:
6+
argocd.argoproj.io/sync-wave: "-10"
7+
finalizers:
8+
- resources-finalizer.argocd.argoproj.io/foreground
9+
name: subscribe-external-secrets-operator
10+
namespace: openshift-gitops
11+
spec:
12+
destination:
13+
server: https://kubernetes.default.svc
14+
project: default
15+
source:
16+
kustomize:
17+
components:
18+
- https://github.com/openstack-k8s-operators/gitops/components/argocd/annotations?ref=feature/rhoso-apps-helm-chart
19+
path: resources/external-secrets-operator
20+
repoURL: https://github.com/openstack-k8s-operators/gitops.git
21+
targetRevision: feature/rhoso-apps-helm-chart
22+
syncPolicy:
23+
automated: {}

applications/vault-secrets-operator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ spec:
1515
source:
1616
kustomize:
1717
components:
18-
- https://github.com/openstack-k8s-operators/gitops/components/argocd/annotations
18+
- https://github.com/openstack-k8s-operators/gitops/components/argocd/annotations?ref=feature/rhoso-apps-helm-chart
1919
path: resources/vault-secrets-operator
2020
repoURL: https://github.com/openstack-k8s-operators/gitops.git
21-
targetRevision: HEAD
21+
targetRevision: feature/rhoso-apps-helm-chart
2222
syncPolicy:
2323
automated: {}

charts/rhoso-apps/tests/application_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tests:
3838
value: https://github.com/openstack-k8s-operators/gitops
3939
- equal:
4040
path: spec.source.path
41-
value: examples/controlplane
41+
value: example/controlplane
4242
- equal:
4343
path: spec.source.targetRevision
4444
value: v0.1.0

components/secrets/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Secrets operator components
2+
3+
Kustomize `Component` and overlay bases for Vault Secrets Operator (VSO) and External Secrets Operator (ESO). The matching [`resources/`](../../resources/) paths are thin wrappers so you can install from this repo with `oc apply -k resources/...` or compose only the component from another repository.
4+
5+
Pin a Git revision on remote URLs (replace `BRANCH` with your branch or tag):
6+
7+
- VSO: `https://github.com/openstack-k8s-operators/gitops/components/secrets/vault-secrets-operator?ref=BRANCH`
8+
- ESO (community catalog): `https://github.com/openstack-k8s-operators/gitops/components/secrets/external-secrets-operator/community?ref=BRANCH`
9+
- ESO (Red Hat overlay): use as a **base** (not `kind: Component`): `https://github.com/openstack-k8s-operators/gitops/components/secrets/external-secrets-operator/redhat?ref=BRANCH`
10+
11+
Example overlay `kustomization.yaml` (VSO):
12+
13+
```yaml
14+
apiVersion: kustomize.config.k8s.io/v1beta1
15+
kind: Kustomization
16+
resources: []
17+
components:
18+
- https://github.com/openstack-k8s-operators/gitops/components/secrets/vault-secrets-operator?ref=feature/rhoso-apps-helm-chart
19+
```
20+
21+
Example including the Red Hat ESO overlay as a resource:
22+
23+
```yaml
24+
apiVersion: kustomize.config.k8s.io/v1beta1
25+
kind: Kustomization
26+
resources:
27+
- https://github.com/openstack-k8s-operators/gitops/components/secrets/external-secrets-operator/redhat?ref=feature/rhoso-apps-helm-chart
28+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1alpha1
3+
kind: Component
4+
resources:
5+
- subscription.yaml

resources/external-secrets-operator/community/subscription.yaml renamed to components/secrets/external-secrets-operator/community/subscription.yaml

File renamed without changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
resources:
5+
- namespace.yaml
6+
- operatorgroup.yaml
7+
components:
8+
- ../community
9+
patches:
10+
- path: patch-subscription-redhat.json
11+
target:
12+
kind: Subscription
13+
name: external-secrets-operator
14+
namespace: openshift-operators

resources/external-secrets-operator/redhat/namespace.yaml renamed to components/secrets/external-secrets-operator/redhat/namespace.yaml

File renamed without changes.

resources/external-secrets-operator/redhat/operatorgroup.yaml renamed to components/secrets/external-secrets-operator/redhat/operatorgroup.yaml

File renamed without changes.

0 commit comments

Comments
 (0)