Skip to content

Commit

Permalink
Add Kubernetes Gateway API (jsonnet-libs#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
bison authored Jun 21, 2023
1 parent 602280a commit 190e0a6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]"
"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":
Expand Down Expand Up @@ -1721,6 +1761,7 @@
- "flagger"
- "fluxcd"
- "gatekeeper"
- "gateway-api"
- "google-cloud-sql-proxy-operator"
- "grafana-agent"
- "grafana-operator"
Expand Down
13 changes: 13 additions & 0 deletions libs/gateway-api/config.jsonnet
Original file line number Diff line number Diff line change
@@ -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',
},
]
)

0 comments on commit 190e0a6

Please sign in to comment.