diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 13c2ec11..ead95454 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -939,6 +939,46 @@ "SSH_KEY": "${{ secrets.DEPLOY_KEY }}" "if": "steps.filter.outputs.workflows == 'true'" "run": "make libs/gatekeeper" + "gateway-api": + "name": "Generate gateway-api Jsonnet library and docs" + "needs": + - "build" + - "repos" + "runs-on": "ubuntu-latest" + "steps": + - "uses": "actions/checkout@v2" + - "id": "filter" + "uses": "dorny/paths-filter@v2" + "with": + "filters": | + workflows: + - '.github/**' + - 'bin/**' + - 'Dockerfile' + - 'go.mod' + - 'go.sum' + - 'jsonnet/**' + - 'main.go' + - 'Makefile' + - 'pkg/**' + - 'scripts/**' + - 'tf/**' + - 'libs/gateway-api/**' + - "if": "steps.filter.outputs.workflows == 'true'" + "uses": "actions/download-artifact@v2" + "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/gateway-api" "google-cloud-sql-proxy-operator": "name": "Generate google-cloud-sql-proxy-operator Jsonnet library and docs" "needs": @@ -1721,6 +1761,7 @@ - "flagger" - "fluxcd" - "gatekeeper" + - "gateway-api" - "google-cloud-sql-proxy-operator" - "grafana-agent" - "grafana-operator" diff --git a/libs/gateway-api/config.jsonnet b/libs/gateway-api/config.jsonnet new file mode 100644 index 00000000..c1e5b4c6 --- /dev/null +++ b/libs/gateway-api/config.jsonnet @@ -0,0 +1,13 @@ +local config = import 'jsonnet/config.jsonnet'; + +config.new( + name='gateway-api', + specs=[ + { + output: 'v0.7.1', + prefix: '^io\\.k8s\\.networking\\.gateway\\..*', + crds: ['https://github.com/kubernetes-sigs/gateway-api/releases/download/v0.7.1/standard-install.yaml'], + localName: 'gateway-api', + }, + ] +)