From 3d68a5c5abefdd1b791c1c837f362b82a0744dbf Mon Sep 17 00:00:00 2001 From: Rob White Date: Tue, 5 Mar 2024 20:47:44 +1100 Subject: [PATCH] chore: Add envoy-gateway (#402) * chore: Add envoy-gateway * Jsonnetfmt the new file * GitHub workflows change --- .github/workflows/main.yml | 41 +++++++++++++++++++++++++++++++ libs/envoy-gateway/config.jsonnet | 15 +++++++++++ 2 files changed, 56 insertions(+) create mode 100644 libs/envoy-gateway/config.jsonnet diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7d9d448..07a9b68 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -899,6 +899,46 @@ "SSH_KEY": "${{ secrets.DEPLOY_KEY }}" "if": "steps.filter.outputs.workflows == 'true'" "run": "make libs/emissary" + "envoy-gateway": + "name": "Generate envoy-gateway Jsonnet library and docs" + "needs": + - "build" + - "repos" + "runs-on": "ubuntu-latest" + "steps": + - "uses": "actions/checkout@v3" + - "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/envoy-gateway/**' + - "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/envoy-gateway" "external-dns": "name": "Generate external-dns Jsonnet library and docs" "needs": @@ -1960,6 +2000,7 @@ - "eck-operator" - "edp-keycloak-operator" - "emissary" + - "envoy-gateway" - "external-dns" - "external-secrets" - "flagger" diff --git a/libs/envoy-gateway/config.jsonnet b/libs/envoy-gateway/config.jsonnet new file mode 100644 index 0000000..f5a886a --- /dev/null +++ b/libs/envoy-gateway/config.jsonnet @@ -0,0 +1,15 @@ +local config = import 'jsonnet/config.jsonnet'; +local versions = ['v0.6.0']; + +config.new( + name='envoy-gateway', + specs=[ + { + output: version, + prefix: '^io\\.envoyproxy\\.gateway\\..*', + crds: ['https://github.com/envoyproxy/gateway/releases/download/%s/install.yaml' % version], + localName: 'envoy-gateway', + } + for version in versions + ] +)