You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2026/06/04 00:40:43 UTC

(superset-kubernetes-operator) branch main updated: chore(deps): update dependency kubernetes-sigs/kind to v0.32.0 (#114)

This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/superset-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 45a2ba5  chore(deps): update dependency kubernetes-sigs/kind to v0.32.0 (#114)
45a2ba5 is described below

commit 45a2ba533e4ac97fae70186d370647d2a7a4864b
Author: Mend Renovate <bo...@renovateapp.com>
AuthorDate: Thu Jun 4 01:40:38 2026 +0100

    chore(deps): update dependency kubernetes-sigs/kind to v0.32.0 (#114)
    
    * chore(deps): update dependency kubernetes-sigs/kind to v0.32.0
    
    * chore(deps): sync supported-k8s versions for kind v0.32.0
    
    * more fixes
    
    ---------
    
    Co-authored-by: Ville Brofeldt <vi...@gmail.com>
---
 .github/supported-k8s.json           | 17 ++++++--------
 README.md                            |  3 +--
 docs/index.md                        |  3 +--
 docs/user-guide/installation.md      |  3 +--
 renovate.json                        |  9 ++++++++
 test/e2e/e2e_suite_test.go           | 12 +++++++---
 test/e2e/e2e_test.go                 |  6 ++++-
 test/e2e/helpers_test.go             | 44 ++++++++++++++++++++++++++++++++----
 test/e2e/superset_journey_test.go    | 12 +++++-----
 test/e2e/superset_lifecycle_test.go  |  4 ++--
 test/e2e/superset_validation_test.go |  4 ++--
 11 files changed, 82 insertions(+), 35 deletions(-)

diff --git a/.github/supported-k8s.json b/.github/supported-k8s.json
index bb727a1..d721cd7 100644
--- a/.github/supported-k8s.json
+++ b/.github/supported-k8s.json
@@ -1,18 +1,15 @@
 {
-  "kind_version": "v0.31.0",
-  "kind_checksum": "eb244cbafcc157dff60cf68693c14c9a75c4e6e6fedaf9cd71c58117cb93e3fa",
+  "kind_version": "v0.32.0",
+  "kind_checksum": "50030de23cf40a18505f20426f6a8506bedf13c6e509244bd1fa9463721b0f54",
   "supported": [
     {
-      "minor": "1.35",
-      "node_image": "kindest/node:v1.35.0@sha256:452d707d4862f52530247495d180205e029056831160e22870e37e3f6c1ac31f"
+      "minor": "1.36",
+      "node_image": "kindest/node:v1.36.1@sha256:3489c7674813ba5d8b1a9977baea8a6e553784dab7b84759d1014dbd78f7ebd5"
     },
     {
-      "minor": "1.34",
-      "node_image": "kindest/node:v1.34.3@sha256:08497ee19eace7b4b5348db5c6a1591d7752b164530a36f855cb0f2bdcbadd48"
+      "minor": "1.35",
+      "node_image": "kindest/node:v1.35.5@sha256:ce977ae6d65918d0b58a5f8b5e940429c2ce42fa3a5619ec2bbc60b949c0ac95"
     }
   ],
-  "next": {
-    "minor": "1.36",
-    "version": "v1.36.1"
-  }
+  "next": null
 }
diff --git a/README.md b/README.md
index 73771cf..e59db7c 100644
--- a/README.md
+++ b/README.md
@@ -50,8 +50,7 @@ to get started, or jump straight to the [quick start](#quick-start).
 
 <!-- BEGIN SUPPORTED-K8S -->
 <!-- generated by `make supported-versions`; do not edit -->
-- **Officially tested:** Kubernetes 1.35, 1.34
-- **Experimental (best-effort):** Kubernetes 1.36
+- **Officially tested:** Kubernetes 1.36, 1.35
 <!-- END SUPPORTED-K8S -->
 
 Official support covers the two most recent Kubernetes minor versions with a
diff --git a/docs/index.md b/docs/index.md
index c2f2927..23cfd57 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -42,8 +42,7 @@ The operator manages the full Superset lifecycle: database migrations, configura
 
 <!-- BEGIN SUPPORTED-K8S -->
 <!-- generated by `make supported-versions`; do not edit -->
-- **Officially tested:** Kubernetes 1.35, 1.34
-- **Experimental (best-effort):** Kubernetes 1.36
+- **Officially tested:** Kubernetes 1.36, 1.35
 <!-- END SUPPORTED-K8S -->
 
 Official support covers the two most recent Kubernetes minor versions with a
diff --git a/docs/user-guide/installation.md b/docs/user-guide/installation.md
index f7cf2b4..f8dda1c 100644
--- a/docs/user-guide/installation.md
+++ b/docs/user-guide/installation.md
@@ -36,8 +36,7 @@ For development setup, see [Development Setup](../contributing/development-setup
 
 <!-- BEGIN SUPPORTED-K8S -->
 <!-- generated by `make supported-versions`; do not edit -->
-- **Officially tested:** Kubernetes 1.35, 1.34
-- **Experimental (best-effort):** Kubernetes 1.36
+- **Officially tested:** Kubernetes 1.36, 1.35
 <!-- END SUPPORTED-K8S -->
 
 Official support covers the two most recent Kubernetes minor versions with a
diff --git a/renovate.json b/renovate.json
index 912e692..11fede9 100644
--- a/renovate.json
+++ b/renovate.json
@@ -31,6 +31,15 @@
       ],
       "datasourceTemplate": "github-releases",
       "depNameTemplate": "kubernetes-sigs/kind"
+    },
+    {
+      "customType": "regex",
+      "description": "Track the e2e curl helper image",
+      "managerFilePatterns": ["/^test\\/e2e\\/e2e_suite_test\\.go$/"],
+      "matchStrings": [
+        "// renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+curlImage = getEnvOrDefault\\(\\s+\"E2E_CURL_IMAGE\",\\s+\"\\S+:(?<currentValue>[^@\\\"]+)@(?<currentDigest>sha256:[a-f0-9]+)\""
+      ],
+      "versioningTemplate": "docker"
     }
   ]
 }
diff --git a/test/e2e/e2e_suite_test.go b/test/e2e/e2e_suite_test.go
index 9fa6f96..1ebdd6e 100644
--- a/test/e2e/e2e_suite_test.go
+++ b/test/e2e/e2e_suite_test.go
@@ -35,9 +35,15 @@ var (
 	// Override via E2E_PROJECT_IMAGE env var for environments with custom registries.
 	projectImage = getEnvOrDefault("E2E_PROJECT_IMAGE", "example.com/superset-kubernetes-operator:v0.0.1")
 
-	// curlImage is the container image used for metrics curl probes in e2e tests.
-	// Override via E2E_CURL_IMAGE env var (e.g., for environments that require a mirror registry).
-	curlImage = getEnvOrDefault("E2E_CURL_IMAGE", "curlimages/curl:latest")
+	// curlImage is the container image used for metrics and lifecycle helper probes
+	// in e2e tests. Keep the default explicitly tagged and off Docker Hub: the
+	// matrix runs multiple Kind clusters in parallel, and anonymous Docker Hub
+	// limits can make version lanes fail for unrelated helper image pulls.
+	// renovate: datasource=docker depName=quay.io/curl/curl
+	curlImage = getEnvOrDefault(
+		"E2E_CURL_IMAGE",
+		"quay.io/curl/curl:8.20.0@sha256:b3f1fb2a51d923260350d21b8654bbc607164a987e2f7c84a0ac199a67df812a",
+	)
 )
 
 // TestE2E runs the end-to-end (e2e) test suite for the project. These tests execute in an isolated,
diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go
index 4968e7e..cb290e2 100644
--- a/test/e2e/e2e_test.go
+++ b/test/e2e/e2e_test.go
@@ -24,6 +24,7 @@ import (
 	"os"
 	"os/exec"
 	"path/filepath"
+	"strings"
 	"time"
 
 	. "github.com/onsi/ginkgo/v2"
@@ -126,12 +127,14 @@ var _ = Describe("Manager", Ordered, func() {
 			cmd = exec.Command("kubectl", "run", "curl-metrics", "--restart=Never",
 				"--namespace", namespace,
 				"--image="+curlImage,
+				"--image-pull-policy=IfNotPresent",
 				"--overrides",
 				fmt.Sprintf(`{
 					"spec": {
 						"containers": [{
 							"name": "curl",
 							"image": "%s",
+							"imagePullPolicy": "IfNotPresent",
 							"command": ["/bin/sh", "-c"],
 							"args": ["curl -v -k -H 'Authorization: Bearer %s' https://%s.%s.svc.cluster.local:8443/metrics"],
 							"securityContext": {
@@ -159,7 +162,8 @@ var _ = Describe("Manager", Ordered, func() {
 					"-n", namespace)
 				output, err := utils.Run(cmd)
 				g.Expect(err).NotTo(HaveOccurred())
-				g.Expect(output).To(Equal("Succeeded"), "curl pod in wrong status")
+				g.Expect(strings.TrimSpace(output)).To(Equal("Succeeded"),
+					"curl pod in wrong status: %s", describePodStatus("curl-metrics"))
 			}
 			Eventually(verifyCurlUp, 5*time.Minute).Should(Succeed())
 
diff --git a/test/e2e/helpers_test.go b/test/e2e/helpers_test.go
index e70c45f..7f16134 100644
--- a/test/e2e/helpers_test.go
+++ b/test/e2e/helpers_test.go
@@ -37,6 +37,11 @@ var (
 	optionalCRDPaths  []string
 )
 
+const podContainerStatusJSONPath = "{range .status.containerStatuses[*]}" +
+	"{.name}:{.state.waiting.reason}:{.state.waiting.message}" +
+	"{.state.terminated.reason}:{.state.terminated.exitCode}:{.state.terminated.message}" +
+	"{end}"
+
 func setupManager() {
 	By("creating manager namespace")
 	if _, err := utils.Run(exec.Command("kubectl", "get", "ns", namespace)); err != nil {
@@ -151,6 +156,15 @@ func collectDiagnostics() {
 	} else {
 		_, _ = fmt.Fprintf(GinkgoWriter, "Failed to get curl-metrics logs: %s\n", err)
 	}
+
+	By("describing the curl-metrics pod")
+	cmd = exec.Command("kubectl", "describe", "pod", "curl-metrics", "-n", namespace)
+	metricsPodDescription, err := utils.Run(cmd)
+	if err == nil {
+		_, _ = fmt.Fprintf(GinkgoWriter, "curl-metrics pod description:\n%s", metricsPodDescription)
+	} else {
+		_, _ = fmt.Fprintf(GinkgoWriter, "Failed to describe curl-metrics pod: %s\n", err)
+	}
 }
 
 func lookupControllerPodName() string {
@@ -249,16 +263,36 @@ func deleteSecret(name string) {
 
 func lifecycleImageYAML(indent string) string {
 	repo, tag := splitImageRef(curlImage)
-	return fmt.Sprintf("%simage:\n%s  repository: %s\n%s  tag: %s\n", indent, indent, repo, indent, tag)
+	return fmt.Sprintf("%simage:\n%s  repository: %s\n%s  tag: %s\n%s  pullPolicy: IfNotPresent\n",
+		indent, indent, repo, indent, tag, indent)
+}
+
+func describePodStatus(name string) string {
+	output, err := runKubectl("get", "pod", name, "-n", namespace,
+		"-o", "jsonpath="+podContainerStatusJSONPath)
+	if err != nil {
+		return err.Error()
+	}
+	return strings.TrimSpace(output)
 }
 
 func splitImageRef(image string) (string, string) {
-	lastSlash := strings.LastIndex(image, "/")
-	lastColon := strings.LastIndex(image, ":")
+	taggedImage := image
+	if before, digest, ok := strings.Cut(image, "@sha256:"); ok {
+		if digest == "" {
+			Fail(fmt.Sprintf("image %q must include a non-empty sha256 digest", image))
+		}
+		taggedImage = before
+	}
+
+	lastSlash := strings.LastIndex(taggedImage, "/")
+	lastColon := strings.LastIndex(taggedImage, ":")
 	if lastColon > lastSlash {
-		return image[:lastColon], image[lastColon+1:]
+		return taggedImage[:lastColon], image[lastColon+1:]
 	}
-	return image, "latest"
+
+	Fail(fmt.Sprintf("image %q must include an explicit tag, optionally with a sha256 digest", image))
+	return "", ""
 }
 
 func restrictedLifecyclePodTemplateYAML(indent string) string {
diff --git a/test/e2e/superset_journey_test.go b/test/e2e/superset_journey_test.go
index d133aec..2eef8d7 100644
--- a/test/e2e/superset_journey_test.go
+++ b/test/e2e/superset_journey_test.go
@@ -73,7 +73,7 @@ metadata:
 spec:
   image:
     repository: apache/superset
-    tag: "1.0.0"
+    tag: "6.0.0"
   environment: Development
   secretKeyFrom:
     name: %[2]s
@@ -130,7 +130,7 @@ spec:
 
 		By("waiting for the initial install to settle (supervised, no enabled tasks)")
 		expectJSONPath("superset", crName, "{.status.lifecycle.phase}", "Complete", 2*time.Minute)
-		expectJSONPath("superset", crName, "{.status.lastLifecycleImage}", "apache/superset:1.0.0", time.Minute)
+		expectJSONPath("superset", crName, "{.status.lastLifecycleImage}", "apache/superset:6.0.0", time.Minute)
 	})
 
 	It("reconciles every component into a Deployment", func() {
@@ -264,12 +264,12 @@ spec:
 
 	It("detects an image change and gates the supervised upgrade", func() {
 		By("patching the image tag")
-		patchSuperset(crName, "merge", `{"spec":{"image":{"tag":"1.1.0"}}}`)
+		patchSuperset(crName, "merge", `{"spec":{"image":{"tag":"6.1.0"}}}`)
 
 		By("verifying the upgrade is awaiting approval")
 		expectJSONPath("superset", crName, "{.status.lifecycle.phase}", "AwaitingApproval", time.Minute)
-		expectJSONPath("superset", crName, "{.status.lifecycle.upgrade.fromVersion}", "1.0.0", time.Minute)
-		expectJSONPath("superset", crName, "{.status.lifecycle.upgrade.toVersion}", "1.1.0", time.Minute)
+		expectJSONPath("superset", crName, "{.status.lifecycle.upgrade.fromVersion}", "6.0.0", time.Minute)
+		expectJSONPath("superset", crName, "{.status.lifecycle.upgrade.toVersion}", "6.1.0", time.Minute)
 		expectJSONPath("superset", crName, "{.status.lifecycle.upgrade.direction}", "Upgrade", time.Minute)
 
 		By("approving the supervised upgrade with the recorded token")
@@ -281,7 +281,7 @@ spec:
 		Expect(err).NotTo(HaveOccurred())
 
 		By("verifying the upgrade settles and the consumed annotation is removed")
-		expectJSONPath("superset", crName, "{.status.lastLifecycleImage}", "apache/superset:1.1.0", time.Minute)
+		expectJSONPath("superset", crName, "{.status.lastLifecycleImage}", "apache/superset:6.1.0", time.Minute)
 		expectJSONPath("superset", crName, "{.status.lifecycle.phase}", "Complete", time.Minute)
 		Eventually(func(g Gomega) {
 			output, err := jsonPath("superset", crName, "{.metadata.annotations}")
diff --git a/test/e2e/superset_lifecycle_test.go b/test/e2e/superset_lifecycle_test.go
index 25c4ca4..e9b91d2 100644
--- a/test/e2e/superset_lifecycle_test.go
+++ b/test/e2e/superset_lifecycle_test.go
@@ -38,7 +38,7 @@ metadata:
 spec:
   image:
     repository: apache/superset
-    tag: "5.0.0"
+    tag: "6.1.0"
   environment: Development
   secretKey: test-secret-key-not-for-production
   metastore:
@@ -125,7 +125,7 @@ metadata:
 spec:
   image:
     repository: apache/superset
-    tag: "5.0.0"
+    tag: "6.1.0"
   environment: Production
   secretKeyFrom:
     name: %[1]s-current
diff --git a/test/e2e/superset_validation_test.go b/test/e2e/superset_validation_test.go
index 1f4b639..8dfd3e6 100644
--- a/test/e2e/superset_validation_test.go
+++ b/test/e2e/superset_validation_test.go
@@ -39,7 +39,7 @@ metadata:
   namespace: %s
 spec:
   image:
-    tag: "latest"
+    tag: "6.1.0"
   environment: Production
   secretKey: plain-text-key
   metastore:
@@ -63,7 +63,7 @@ metadata:
   namespace: %s
 spec:
   image:
-    tag: "latest"
+    tag: "6.1.0"
   environment: Production
   secretKeyFrom:
     name: app-secret