Skip to content

Commit

Permalink
Adding tags for manged entities
Browse files Browse the repository at this point in the history
  • Loading branch information
rspurgeon committed Jul 27, 2023
1 parent ed14be3 commit 80bff07
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-kong-PRD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:

- name: deck sync
run: |
deck sync -s PRD/kong/kong.yaml \
deck sync --select-tags platform-repo-managed \
-s PRD/kong/kong.yaml \
--konnect-runtime-group-name KongAir-PRD \
--konnect-token ${{ secrets.KONNECT_PAT }}
5 changes: 4 additions & 1 deletion .github/workflows/stage-kong-for-PRD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ jobs:
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "DIFF<<$EOF" >> $GITHUB_ENV
deck diff -s PRD/kong/kong.yaml --konnect-runtime-group-name KongAir-PRD --konnect-token ${{ secrets.KONNECT_PAT }} >> $GITHUB_ENV
deck diff --select-tag platform-repo-managed \
-s PRD/kong/kong.yaml \
--konnect-runtime-group-name KongAir-PRD \
--konnect-token ${{ secrets.KONNECT_PAT }} >> $GITHUB_ENV
echo "$EOF" >> $GITHUB_ENV
- name: Create PR to stage changes for the Kong Gateway in production
Expand Down
12 changes: 12 additions & 0 deletions platform/kong/patches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ patches:
key_claim_name: "iss"
secret_is_base64: false
maximum_expiration: 86400

# Tag all entities that are managed by the platform
# team process so we can isolate entities that may be
# created using other means on the system. For example,
# consumer credentials may be defined elsewhere and we
# don't want deck to sync or diff off them in this process
- selectors:
- $
values:
tags:
- platform-repo-managed

0 comments on commit 80bff07

Please sign in to comment.