Skip to content

Commit

Permalink
[DO NOT MERGE] Temp code for test
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer committed Oct 30, 2023
1 parent 6674d90 commit 0fdc542
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/actions/kamel-config-cluster-kind/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ runs:
version: v0.19.0
node_image: kindest/node:v1.26.4@sha256:f4c0d87be03d6bea69f5e5dc0adb678bb498a190ee5c38422bf751541cebe92e
cpu: 3
document: true

- id: info
name: Info
Expand All @@ -49,6 +48,17 @@ runs:
shell: bash
run: ./.github/actions/kamel-config-cluster-kind/extract-config.sh

- id: tempdebug
name: TmpDebug
shell: bash
if: ${{ env.CLUSTER_KIND_CONFIGURED != 'true' }}
run: |
#
# TMP- TO REMOVE
#
kubectl get configmap local-registry-hosting -n kube-public -o yaml
outputs:
cluster-image-registry-push-host:
description: "The image registry to which to push images"
Expand Down
6 changes: 6 additions & 0 deletions e2e/install/kustomize/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"testing"

corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

. "github.com/apache/camel-k/v2/e2e/support"
testutil "github.com/apache/camel-k/v2/e2e/support/util"
Expand Down Expand Up @@ -71,6 +72,11 @@ func TestOperatorBasic(t *testing.T) {
Eventually(Platform(ns)).ShouldNot(BeNil())
registry := os.Getenv("KIND_REGISTRY")
if registry != "" {
// TMP - TO REMOVE
cm, err := TestClient().CoreV1().ConfigMaps("kube-public").Get(TestContext, "local-registry-hosting", metav1.GetOptions{})
Expect(err).Should(BeNil())
Expect(cm).ShouldNot(BeNil())
// TMP - TO REMOVE
platform := Platform(ns)()
Expect(platform.Spec.Build.Registry).ShouldNot(BeNil())
Expect(platform.Spec.Build.Registry.Address).To(Equal(registry))
Expand Down

0 comments on commit 0fdc542

Please sign in to comment.