Skip to content

Commit 6ea98ca

Browse files
author
Robin Scherrer
committed
Enable renovate for SUC image tag
1 parent 99263cf commit 6ea98ca

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

class/defaults.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
parameters:
22
system_upgrade_controller:
3+
images:
4+
system_upgrade_controller:
5+
registry: docker.io
6+
repository: rancher/system-upgrade-controller
7+
tag: v0.6.2
38
plans_only: false
49
controller_threads: "2"
510
affinity: {}
@@ -13,6 +18,5 @@ parameters:
1318
namespace: syn-system-upgrade-controller
1419
service_account: system-upgrade
1520
plan_polling_interval: "15m"
16-
suc_image: docker.io/rancher/system-upgrade-controller:v0.6.2
1721
floodgate_url: https://floodgate.syn.vshn.net
1822
disable_grafana_dashboard: false

component/main.jsonnet

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ local inv = kap.inventory();
99
// The hiera parameters for the component
1010
local params = inv.parameters.system_upgrade_controller;
1111

12+
local sucImage = '%(registry)s/%(repository)s:%(tag)s' % params.images.system_upgrade_controller;
13+
1214
local namespace = kube.Namespace(params.namespace);
1315

1416
local serviceaccount = kube.ServiceAccount(params.service_account) {
@@ -110,7 +112,7 @@ local deployment = kube.Deployment('system-upgrade-controller') {
110112
},
111113
},
112114
],
113-
image: params.suc_image,
115+
image: sucImage,
114116
imagePullPolicy: 'IfNotPresent',
115117
resources+: {
116118
requests: {

renovate.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
23
"extends": [
34
"config:base",
45
":gitSignOff",

0 commit comments

Comments
 (0)