Skip to content

Commit 0737ea9

Browse files
committed
generate argocd template from versions
1 parent 1bc05d5 commit 0737ea9

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.github/workflows/mkdocs.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ jobs:
1111
steps:
1212
- name: Checkout main
1313
uses: actions/checkout@v2
14+
15+
- name: generate templates
16+
run: |-
17+
OPENUNISON_OPERATOR_VERSION=$(curl https://nexus.tremolo.io/repository/helm/charts.json 2>/dev/null | jq -r '.[] | select(.name == "openunison-operator") | .version')
18+
OPENUNISON_ORCHESTRA_VERSION=$(curl https://nexus.tremolo.io/repository/helm/charts.json 2>/dev/null | jq -r '.[] | select(.name == "orchestra") | .version')
19+
OPENUNISON_ORCHESTRA_LOGIN_PORTAL_VERSION=$(curl https://nexus.tremolo.io/repository/helm/charts.json 2>/dev/null | jq -r '.[] | select(.name == "orchestra-login-portal") | .version')
20+
21+
cat docs/assets/yaml/argocd-application-template.yaml | sed s/OPENUNISON_OPERATOR_VERSION/$OPENUNISON_OPERATOR_VERSION/g | sed s/OPENUNISON_ORCHESTRA_VERSION/$OPENUNISON_ORCHESTRA_VERSION/g | sed s/OPENUNISON_ORCHESTRA_LOGIN_PORTAL_VERSION/$OPENUNISON_ORCHESTRA_LOGIN_PORTAL_VERSION/g > docs/assets/yaml/argocd-application.yaml
22+
1423
1524
- name: Deploy docs
1625
uses: mhausenblas/mkdocs-deploy-gh-pages@master
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: openunison-login
5+
namespace: argocd
6+
spec:
7+
destination:
8+
namespace: openunison
9+
server: 'https://kubernetes.default.svc'
10+
ignoreDifferences:
11+
- group: admissionregistration.k8s.io
12+
jsonPointers:
13+
- /webhooks/0/clientConfig/caBundle
14+
- /webhooks/1/clientConfig/caBundle
15+
- /webhooks/2/clientConfig/caBundle
16+
- /webhooks/3/clientConfig/caBundle
17+
- /webhooks/4/clientConfig/caBundle
18+
kind: ValidatingWebhookConfiguration
19+
project: default
20+
sources:
21+
- chart: openunison-operator
22+
helm:
23+
releaseName: openunison
24+
valueFiles:
25+
- $values/userauth/values.yaml
26+
repoURL: https://nexus.tremolo.io/repository/helm
27+
targetRevision: OPENUNISON_OPERATOR_VERSION
28+
29+
- chart: orchestra
30+
helm:
31+
releaseName: orchestra
32+
valueFiles:
33+
- $values/userauth/values.yaml
34+
repoURL: https://nexus.tremolo.io/repository/helm
35+
targetRevision: OPENUNISON_ORCHESTRA_VERSION
36+
37+
- chart: orchestra-login-portal
38+
helm:
39+
releaseName: orchestra-login-portal
40+
valueFiles:
41+
- $values/userauth/values.yaml
42+
repoURL: https://nexus.tremolo.io/repository/helm
43+
targetRevision: OPENUNISON_ORCHESTRA_LOGIN_PORTAL_VERSION
44+
45+
- repoURL: https://github.com/TremoloSecurityDemos/openunison-argocd.git
46+
path: userauth
47+
- ref: values
48+
repoURL: https://github.com/TremoloSecurityDemos/openunison-argocd.git
49+
syncPolicy:
50+
syncOptions:
51+
- RespectIgnoreDifferences=true

0 commit comments

Comments
 (0)