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

Commit 960b041

Browse files
author
Caitlyn Yu
authored
Merge pull request #76 from cloudfoundry/image-refs
Refactored config values to standard layout
2 parents a94c195 + 479aaab commit 960b041

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Set up Go
1111
uses: actions/setup-go@v1
1212
with:
13-
go-version: 1.13
13+
go-version: 1.16
1414
- name: Check out code
1515
uses: actions/checkout@v1
1616
- name: Run tests

ci/scaling.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resources:
1919
private_key: ((github_private_key.private_key))
2020
branch: develop
2121
ignore_paths:
22-
- config/values.yaml # Do not want resource to trigger on image digest updates
22+
- config/values/images.yml # Do not want resource to trigger on image digest updates
2323

2424
- name: cf-k8s-networking-ci
2525
type: git

config/routecontroller/routecontroller.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
spec:
3232
containers:
3333
- name: routecontroller
34-
image: #@ data.values.routecontroller.image
34+
image: #@ data.values.images.routecontroller
3535
args: ["--enable-leader-election=true"]
3636
resources:
3737
limits:

config/values.yaml config/values/_defaults.yml

-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@
55
systemNamespace: cf-system
66
workloadsNamespace: cf-workloads
77

8-
routecontroller:
9-
image: cloudfoundry/routecontroller@sha256:547a0939ab61bcac7a24f371f7eba0ba5ee287a88d2d45478fcc88be1f524e73
10-
118
service:
129
externalPort: 80

config/values/images.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#@ load("@ytt:overlay", "overlay")
2+
#@data/values
3+
---
4+
#@overlay/match missing_ok=True
5+
images:
6+
routecontroller: cloudfoundry/routecontroller@sha256:547a0939ab61bcac7a24f371f7eba0ba5ee287a88d2d45478fcc88be1f524e73

routecontroller/stress/stress_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func stressRouteController(numberOfRoutes int, results Results) Results {
7979

8080
yttSession, err := ytt.Run(
8181
"-f", filepath.Join("..", "..", "config", "routecontroller"),
82-
"-f", filepath.Join("..", "..", "config", "values.yaml"),
82+
"-f", filepath.Join("..", "..", "config", "values", "_defaults.yml"),
8383
"-v", "systemNamespace=default",
8484
)
8585
Expect(err).NotTo(HaveOccurred())

0 commit comments

Comments
 (0)