diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1f2d6185..82ea8418 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2561,6 +2561,7 @@ - "rabbitmq-messaging-topology-operator" - "secrets-store-csi-driver" - "securecodebox" + - "spark-operator" - "spicedb-operator" - "strimzi" - "tektoncd" @@ -2686,6 +2687,46 @@ "SSH_KEY": "${{ secrets.DEPLOY_KEY }}" "if": "steps.filter.outputs.workflows == 'true'" "run": "make libs/securecodebox" + "spark-operator": + "name": "Generate spark-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/spark-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/spark-operator" "spicedb-operator": "name": "Generate spicedb-operator Jsonnet library and docs" "needs": diff --git a/libs/spark-operator/config.jsonnet b/libs/spark-operator/config.jsonnet new file mode 100644 index 00000000..2df96548 --- /dev/null +++ b/libs/spark-operator/config.jsonnet @@ -0,0 +1,21 @@ +local config = import 'jsonnet/config.jsonnet'; + +local versions = [ + '2.2.1', +]; + +config.new( + name='spark-operator', + specs=[ + { + crds: [ + 'https://raw.githubusercontent.com/kubeflow/spark-operator/v%s/charts/spark-operator-chart/crds/sparkoperator.k8s.io_scheduledsparkapplications.yaml' %v, + 'https://raw.githubusercontent.com/kubeflow/spark-operator/v%s/charts/spark-operator-chart/crds/sparkoperator.k8s.io_sparkapplications.yaml' %v, + ], + localName: 'spark-operator', + output: v, + prefix: '^io\\.k8s\\.sparkoperator', + } + for v in versions + ] +)