From e1057b08f54ce8181a4a3bbcb13506a812531460 Mon Sep 17 00:00:00 2001 From: pnlx <194115626+pnlx@users.noreply.github.com> Date: Thu, 10 Jul 2025 20:34:05 +0200 Subject: [PATCH] feat: add argocd-operator --- .github/workflows/main.yml | 41 +++++++++++++++++++++++++++++ libs/argocd-operator/config.jsonnet | 25 ++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 libs/argocd-operator/config.jsonnet diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1f2d6185..07936fb8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -240,6 +240,46 @@ "SSH_KEY": "${{ secrets.DEPLOY_KEY }}" "if": "steps.filter.outputs.workflows == 'true'" "run": "make libs/argo-workflows" + "argocd-operator": + "name": "Generate argocd-operator Jsonnet library and docs" + "needs": + - "build" + - "repos" + "runs-on": "ubuntu-latest" + "steps": + - "uses": "actions/checkout@v4" + - "id": "filter" + "uses": "dorny/paths-filter@v3" + "with": + "filters": | + workflows: + - '.github/**' + - 'bin/**' + - 'Dockerfile' + - 'go.mod' + - 'go.sum' + - 'jsonnet/**' + - 'main.go' + - 'Makefile' + - 'pkg/**' + - 'scripts/**' + - 'tf/**' + - 'libs/argocd-operator/**' + - "if": "steps.filter.outputs.workflows == 'true'" + "uses": "actions/download-artifact@v4" + "with": + "name": "docker-artifact" + "path": "artifacts" + - "if": "steps.filter.outputs.workflows == 'true'" + "run": "make load" + - "env": + "DIFF": "true" + "GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}" + "GIT_COMMITTER_EMAIL": "86770550+jsonnet-libs-bot@users.noreply.github.com" + "GIT_COMMITTER_NAME": "jsonnet-libs-bot" + "SSH_KEY": "${{ secrets.DEPLOY_KEY }}" + "if": "steps.filter.outputs.workflows == 'true'" + "run": "make libs/argocd-operator" "aws-load-balancer-controller": "name": "Generate aws-load-balancer-controller Jsonnet library and docs" "needs": @@ -2504,6 +2544,7 @@ - "argo-cd" - "argo-rollouts" - "argo-workflows" + - "argocd-operator" - "aws-load-balancer-controller" - "aws-rds-controller" - "banzai-logging" diff --git a/libs/argocd-operator/config.jsonnet b/libs/argocd-operator/config.jsonnet new file mode 100644 index 00000000..af2eb3d5 --- /dev/null +++ b/libs/argocd-operator/config.jsonnet @@ -0,0 +1,25 @@ +local config = import 'jsonnet/config.jsonnet'; +local versions = + [ + '0.12.2', + '0.13.1', + '0.14.1', + ]; +local manifests = ['argoproj.io_applicationsets.yaml', 'argoproj.io_applications.yaml', 'argoproj.io_appprojects.yaml', 'argoproj.io_argocdexports.yaml', 'argoproj.io_argocds.yaml', 'argoproj.io_notificationsconfigurations.yaml']; + +config.new( + name='argocd-operator', + specs=[ + { + output: version, + prefix: '^io\\.argoproj\\..*', + localName: 'argocd_operator', + crds: [ + 'https://raw.githubusercontent.com/argoproj-labs/argocd-operator/v%s/bundle/manifests/%s' % + [version, manifest] + for manifest in manifests + ], + } + for version in versions + ] +)