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 80bff07 commit 44ab2a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/stage-changes-for-kong.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,28 @@ jobs:
- name: Platform Team Kong Additions
# The platform team has their own things to add to the final Kong configuration.
# The platform-kong-base.yaml is a base file for any platform defaults. It will "win" over
# any settings in the domain teams Kong configurations.
# The platform/kong/.generated/kong.yaml is the final product and is stored in the repository
# Storing the generated file in the repo is intentional, it should help with PR reviews, transparency, and debugging.
# any settings in the domain teams Kong configurations.
# Then the platform adds in some objects like plugins, consumers, vaults, etc..
# Also the platform/kong/patches.yaml is used to patch anything from the upstream
# team configurations
# And finally a tag is added to everything managed in this process to allow
# the deck tool to isolate what is managed here from entities that may be managed
# elsewhere or by other tools
# The platform/kong/.generated/kong.yaml is the final product and is stored in the repository.
# Storing the generated file in the repo is intentional,
# it should help with PR reviews, transparency, and debugging.
run: |
deck file merge \
.github/artifacts/kong/kong-combined.yaml \
platform/kong/platform-kong-base.yaml \
platform/kong/consumers/* \
platform/kong/plugins/* \
platform/kong/vaults/* | \
deck file patch -o platform/kong/.generated/kong.yaml platform/kong/patches.yaml
deck file patch \
platform/kong/patches.yaml |
deck file add-tags \
-o platform/kong/.generated/kong.yaml \
"platform-repo-managed"
- name: Upload Artifacts
# Artifacts are the files that are built along the way of the pipeline but are not committed to the repo
Expand Down
11 changes: 0 additions & 11 deletions platform/kong/patches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,3 @@ patches:
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 44ab2a8

Please sign in to comment.