From 81bd5100b9718cb475a61aa8e4e3237945756e4f Mon Sep 17 00:00:00 2001 From: Enrico Candino Date: Sat, 13 Jun 2026 00:18:52 +0200 Subject: [PATCH] isolate test --- .github/workflows/test-conformance-hcp.yaml | 10 +++++++--- pkg/controller/cluster/server/config.go | 10 ---------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test-conformance-hcp.yaml b/.github/workflows/test-conformance-hcp.yaml index 38378b0d..1c6dd6c2 100644 --- a/.github/workflows/test-conformance-hcp.yaml +++ b/.github/workflows/test-conformance-hcp.yaml @@ -327,14 +327,18 @@ jobs: done ' - ###################### - - name: Run conformance tests run: | - hydrophone --conformance --parallel 4 \ + hydrophone --focus 'should be able to change the type from (ClusterIP|NodePort) to ExternalName' \ --kubeconfig ${{ github.workspace }}/k3k-mycluster-mycluster-kubeconfig.yaml \ --output-dir /tmp + # - name: Run conformance tests + # run: | + # hydrophone --conformance --parallel 4 \ + # --kubeconfig ${{ github.workspace }}/k3k-mycluster-mycluster-kubeconfig.yaml \ + # --output-dir /tmp + - name: Collect logs if: always() env: diff --git a/pkg/controller/cluster/server/config.go b/pkg/controller/cluster/server/config.go index 428b808c..31a30549 100644 --- a/pkg/controller/cluster/server/config.go +++ b/pkg/controller/cluster/server/config.go @@ -93,16 +93,6 @@ func buildServerConfig(cluster *v1beta1.Cluster, initServer bool, serviceIP, tok // no extra config for virtual mode } - // In hcp mode the apiserver pod IP is unreachable from external worker - // nodes, so the kube-apiserver's default lease-based endpoint reconciler - // would publish a broken default/kubernetes Endpoints (advertise-address + - // secure-port). Disable it so K3k can own that Endpoints object and point - // it at the externally-reachable host:port (NodePort / LB / Ingress). - if cluster.Spec.Mode == v1beta1.HCPClusterMode { - serverConfig.KubeApiServerArg = append(serverConfig.KubeApiServerArg, "endpoint-reconciler-type=none") - serverConfig.EgressSelectorMode = "cluster" - } - // In shared mode workloads run on the host cluster, so the apiserver pod // can reach them directly via the host pod network and the egress // selector is unnecessary.