Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit b88f662

Browse files
author
Caitlyn Yu
authored
Merge pull request #65 from cloudfoundry/image-refs
Refactor config values to follow standard format
2 parents d6ff356 + 220a71c commit b88f662

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

config/00-values.yml renamed to config/values/_defaults.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,4 @@ fluentd:
99
path: '/metrics'
1010
port: '24231'
1111

12-
images:
13-
log_cache: ""
14-
syslog_server: ""
15-
log_cache_gateway: ""
16-
fluent: ""
17-
cf_auth_proxy: ""
18-
1912
debug: false

config/values/images.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
#@ load("@ytt:overlay", "overlay")
3+
#@data/values
4+
---
5+
#@overlay/match missing_ok=True
6+
images:
7+
log_cache: ""
8+
syslog_server: ""
9+
log_cache_gateway: ""
10+
fluent: ""
11+
cf_auth_proxy: ""

scripts/build-images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function buildAndReplaceImage {
1616
docker push $REPOSITORY/$image:latest
1717

1818
imageRef="$(docker image inspect $REPOSITORY/$image:latest --format '{{index .RepoDigests 0}}')"
19-
sed -i'' -e "s| $yttValuesRef:.*| $yttValuesRef: \"$imageRef\"|" config/00-values.yml
19+
sed -i'' -e "s| $yttValuesRef:.*| $yttValuesRef: \"$imageRef\"|" config/values/images.yml
2020
}
2121
buildAndReplaceImage log-cache vendor/log-cache/src cmd/log-cache/Dockerfile log_cache > /tmp/logcache.txt &
2222
buildAndReplaceImage log-cache-gateway vendor/log-cache/src cmd/gateway/Dockerfile log_cache_gateway > /tmp/log-cache-gateway.txt &

scripts/bump-cf-for-k8s.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ BASE_DIR="${SCRIPT_DIR}/.."
88

99
pushd "${CF_FOR_K8s_DIR}"
1010
vendir sync -d config/logging/_ytt_lib/cf-k8s-logging="${BASE_DIR}/config"
11-
cp -r "${BASE_DIR}"/tests/assets/* config/logging/_ytt_lib/cf-k8s-logging/
11+
cp -r "${BASE_DIR}"/tests/assets/aggregate-drain.yml config/logging/_ytt_lib/cf-k8s-logging/values/
12+
cp -r "${BASE_DIR}"/tests/assets/ncat-deploy.yml config/logging/_ytt_lib/cf-k8s-logging/
1213
popd
1314

0 commit comments

Comments
 (0)