Skip to content

Commit

Permalink
fix: various cleanup (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbontempi authored Feb 15, 2024
1 parent b820f8c commit 2827b75
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ resource "kubernetes_namespace" "helm_release_operator_namespace" {
}

locals {
ibm_operator_catalog_version = "v1.25-20240202.161709-9DAF3E648@sha256:92e28be4af60f68c656f52b2445aafcc052fcd0390479b868c5b0ba2d465a25a" # datasource: icr.io/cpopen/ibm-operator-catalog
ibm_operator_catalog_path = "icr.io/cpopen/ibm-operator-catalog"
ibm_operator_catalog_image_tag_digest = "v1.25-20240202.161709-9DAF3E648@sha256:92e28be4af60f68c656f52b2445aafcc052fcd0390479b868c5b0ba2d465a25a" # datasource: icr.io/cpopen/ibm-operator-catalog
ibm_operator_catalog_path = "icr.io/cpopen/ibm-operator-catalog"
}

# if add_ibm_operator_catalog is true going on with adding the IBM Operator Catalog source
Expand Down Expand Up @@ -72,7 +72,7 @@ resource "helm_release" "ibm_operator_catalog" {
set {
name = "image.version"
type = "string"
value = local.ibm_operator_catalog_version
value = local.ibm_operator_catalog_image_tag_digest
}
}

Expand Down Expand Up @@ -208,8 +208,8 @@ resource "kubernetes_namespace" "websphere_liberty_sampleapp_namespace" {
}

locals {
websphere_liberty_operator_sampleapp_image_path = "icr.io/appcafe/open-liberty/samples/getting-started"
websphere_liberty_operator_sampleapp_image_version = "latest@sha256:d735c2ceae5945a0f20adcbcb04e55472d2520b6d1abb6d3049c8521234d3b7a" # datasource: icr.io/appcafe/open-liberty/samples/getting-started
websphere_liberty_operator_sampleapp_image_path = "icr.io/appcafe/open-liberty/samples/getting-started"
websphere_liberty_operator_sampleapp_image_tag_digest = "latest@sha256:d735c2ceae5945a0f20adcbcb04e55472d2520b6d1abb6d3049c8521234d3b7a" # datasource: icr.io/appcafe/open-liberty/samples/getting-started
}

resource "helm_release" "websphere_liberty_operator_sampleapp" {
Expand All @@ -236,7 +236,7 @@ resource "helm_release" "websphere_liberty_operator_sampleapp" {
set {
name = "application.image.version"
type = "string"
value = local.websphere_liberty_operator_sampleapp_image_version
value = local.websphere_liberty_operator_sampleapp_image_tag_digest
}

set {
Expand Down
9 changes: 9 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>terraform-ibm-modules/common-dev-assets:commonRenovateConfig"],
"regexManagers": [
{
"fileMatch": ["\\.tf$"],
"matchStrings": [
"[\\w-]+_image_tag_digest\\s*=\\s*\"(?<currentValue>[\\w.-]+)@(?<currentDigest>sha256:[a-f0-9]+)\"\\s*# datasource: (?<depName>[^\\s]+)"
],
"datasourceTemplate": "docker"
}
],
"packageRules": [
{
"description": "Do not allow SLZ version to be updated as we need to lock into version v5.1.1-rc",
Expand Down

0 comments on commit 2827b75

Please sign in to comment.