Skip to content

Commit

Permalink
Renovate default images
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan committed Jun 21, 2022
1 parent 719cfb1 commit be43d5b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
11 changes: 11 additions & 0 deletions images.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

// WARNING: Renovate updates the images in this file. If adding changes double check the
// renovate.json file and it's regexManagers.

const (
// DefaultArgoCDImage is the default image to use for the ArgoCD deployment.
// You should also update the CRDs in the manifests/ directory to match this version.
DefaultArgoCDImage = "quay.io/argoproj/argocd:v2.3.4"
DefaultRedisImage = "docker.io/redis:6.2.4"
)
7 changes: 0 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ import (
// Version is the steward version (set during build)
var Version = "unreleased"

const (
// DefaultArgoCDImage is the default image to use for the ArgoCD deployment.
// You should also update the CRDs in the manifests/ directory to match this version.
DefaultArgoCDImage = "quay.io/argoproj/argocd:v2.3.4"
DefaultRedisImage = "docker.io/redis:6.2.4@sha256:f631ff6c898339306ffdb8369add5c12303ec3946610ef8d6f1d05f575942f0c"
)

func main() {
klog.InitFlags(nil)
flag.Set("logtostderr", "true")
Expand Down
9 changes: 9 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,14 @@
"packagePatterns": ["^k8s.io", "^sigs.k8s.io"],
"enabled": false
}
],
"regexManagers": [
{
"fileMatch": ["^images.go$"],
"matchStrings": [
"^\tDefault.*?Image = \"(?<depName>.*?):(?<currentValue>.*?)\"$"
],
"datasourceTemplate": "docker"
}
]
}

0 comments on commit be43d5b

Please sign in to comment.