Skip to content

Commit

Permalink
Add FluxCD v2 templates (jsonnet-libs#77)
Browse files Browse the repository at this point in the history
* Add FluxCD v2 templates

Defines library for version 0.17.2 of https://github.com/fluxcd/flux2

* Add FluxCD release 0.21.1 templates

Co-authored-by: Marko Mušnjak <[email protected]>
  • Loading branch information
mmusnjak and Marko Mušnjak authored Nov 10, 2021
1 parent 8e57539 commit b03222f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"run": "make build libs/flagger"
"fluxcd":
"name": "Generate fluxcd Jsonnet library and docs"
"needs": "repos"
"runs-on": "ubuntu-latest"
"steps":
- "uses": "actions/checkout@v2"
- "env":
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
"GIT_COMMITTER_EMAIL": "[email protected]"
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"run": "make build libs/fluxcd"
"istio":
"name": "Generate istio Jsonnet library and docs"
"needs": "repos"
Expand Down Expand Up @@ -197,6 +209,7 @@
- "crossplane"
- "eck-operator"
- "flagger"
- "fluxcd"
- "istio"
- "k8s"
- "kube-prometheus"
Expand Down
35 changes: 35 additions & 0 deletions libs/fluxcd/config.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
local config = import 'jsonnet/config.jsonnet';

config.new(
name='fluxcd',
specs=[
{
// CRDs retrieved from https://github.com/fluxcd/flux2/blob/v0.17.2/manifests/crds/kustomization.yaml
output: '0.17.2',
prefix: '^io\\.fluxcd\\.toolkit\\..*',
crds: [
'https://github.com/fluxcd/source-controller/releases/download/v0.15.4/source-controller.crds.yaml',
'https://github.com/fluxcd/kustomize-controller/releases/download/v0.14.1/kustomize-controller.crds.yaml',
'https://github.com/fluxcd/helm-controller/releases/download/v0.11.2/helm-controller.crds.yaml',
'https://github.com/fluxcd/notification-controller/releases/download/v0.16.0/notification-controller.crds.yaml',
'https://github.com/fluxcd/image-reflector-controller/releases/download/v0.11.1/image-reflector-controller.crds.yaml',
'https://github.com/fluxcd/image-automation-controller/releases/download/v0.14.1/image-automation-controller.crds.yaml',
],
localName: 'fluxcd',
},
{
// CRDs retrieved from https://github.com/fluxcd/flux2/blob/v0.21.1/manifests/crds/kustomization.yaml
output: '0.21.1',
prefix: '^io\\.fluxcd\\.toolkit\\..*',
crds: [
'https://github.com/fluxcd/source-controller/releases/download/v0.17.2/source-controller.crds.yaml',
'https://github.com/fluxcd/kustomize-controller/releases/download/v0.16.0/kustomize-controller.crds.yaml',
'https://github.com/fluxcd/helm-controller/releases/download/v0.12.1/helm-controller.crds.yaml',
'https://github.com/fluxcd/notification-controller/releases/download/v0.18.1/notification-controller.crds.yaml',
'https://github.com/fluxcd/image-reflector-controller/releases/download/v0.13.0/image-reflector-controller.crds.yaml',
'https://github.com/fluxcd/image-automation-controller/releases/download/v0.16.1/image-automation-controller.crds.yaml ',
],
localName: 'fluxcd',
},
]
)

0 comments on commit b03222f

Please sign in to comment.