Skip to content

Commit

Permalink
automated commit
Browse files Browse the repository at this point in the history
Signed-off-by: Public copy <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Aug 4, 2024
1 parent 9395e61 commit c497a8d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
15 changes: 11 additions & 4 deletions images/kyverno/tests/helm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,20 @@ variable "values" {
}
}

variable "chart_version" {
type = string
description = "If set, override the chart version to install for older versions of kyverno to test version-streamed images."
default = ""
}

module "helm" {
source = "../../../../tflib/imagetest/helm"

name = "kyverno"
namespace = "kyverno"
repo = "https://kyverno.github.io/kyverno"
chart = "kyverno"
name = "kyverno"
namespace = "kyverno"
repo = "https://kyverno.github.io/kyverno"
chart = "kyverno"
chart_version = length(var.chart_version) > 0 ? var.chart_version : ""

values = var.values
}
Expand Down
9 changes: 8 additions & 1 deletion images/kyverno/tests/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ variable "digests" {
# see https://github.com/docker-library/busybox/issues/134#issuecomment-1122717673
variable "target_repository" {}

variable "chart_version" {
type = string
description = "If set, override the chart version to install for older versions of kyverno to test version-streamed images."
default = ""
}

locals { parsed = { for k, v in var.digests : k => provider::oci::parse(v) } }

data "imagetest_inventory" "this" {}
Expand Down Expand Up @@ -51,7 +57,8 @@ locals { testing_wget_parsed = provider::oci::parse(apko_build.testing-wget.imag
module "helm" {
# Use a separate module because this chart is re-used by
# the kyverno-policy-reporter tests
source = "./helm"
source = "./helm"
chart_version = var.chart_version
values = {
test = {
image = {
Expand Down

0 comments on commit c497a8d

Please sign in to comment.