Skip to content

Commit f4634c3

Browse files
authored
docs: add service annotation patching to example kustomization (#3020)
1 parent 46ee233 commit f4634c3

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/workflows/build-multiarch.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- "docs/**"
1212
- "examples/**"
1313
- "notes/**"
14+
- "kustomize/**"
1415

1516
jobs:
1617
build:

.github/workflows/verify-pr.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- "docs/**"
99
- "examples/**"
1010
- "notes/**"
11+
- "kustomize/**"
1112
- "docker-compose*.yml"
1213
- "mkdocs.yml"
1314

kustomize/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,24 @@ configMapGenerator:
1313
- name: mc
1414
envs:
1515
- mc.env
16+
patches:
17+
# Example of using a patch to set external service name for mc-router to pick up
18+
- path: set-external-servername.yml
1619
```
1720
1821
### mc.env
1922
```
2023
EULA=true
2124
TYPE=FORGE
25+
```
26+
27+
###
28+
29+
```yaml
30+
apiVersion: v1
31+
kind: Service
32+
metadata:
33+
name: mc
34+
annotations:
35+
mc-router.itzg.me/externalServerName: forge.example.com
2236
```

0 commit comments

Comments
 (0)