Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate upstream encryption changes to Serving #702

Open
wants to merge 6 commits into
base: release-v1.14
Choose a base branch
from

Conversation

ReToCode
Copy link
Member

@ReToCode ReToCode commented May 2, 2024

Fixes JIRA https://issues.redhat.com/browse/SRVKS-1198

Changes

  • Rename ENABLE_INTERNAL_TLS -> ENABLE_TLS
  • Use the new flags cluster-local-domain-tls and system-internal-tls
  • Drop old, now unused configs/secrets
  • Run upstream tests clusterlocaldomaintls and systeminternaltls
  • Add patches to make these tests run on OCP

Patches will be ported to main on a separate PR.

Copy link

openshift-ci bot commented May 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ReToCode

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label May 2, 2024
@ReToCode
Copy link
Member Author

ReToCode commented May 8, 2024

/test 415-test-e2e-tls-aws-415

@ReToCode
Copy link
Member Author

error: error creating buildah builder: initializing source docker://image-registry.openshift-image-registry.svc:5000/ci-op-c2rfk5b1/pipeline@sha256:c359660be15f1f68f72aa16d5c55e0069562793b913b6a751172c3e26c880c01: pinging container registry image-registry.openshift-image-registry.svc:5000: Get "https://image-registry.openshift-image-registry.svc:5000/v2/": dial tcp: lookup image-registry.openshift-image-registry.svc on 172.30.0.10:53: no such host

/test 415-test-e2e-tls-aws-415

@ReToCode
Copy link
Member Author

  • could not run steps: step test-e2e-tls-aws-415 failed: failed to wait for the created cluster claim to become ready: timed out waiting for the condition

/test 415-test-e2e-tls-aws-415

export CA_CERT=ca-cert
# This needs to match $san from test/config/tls/generate.sh
export SERVER_NAME=knative.dev
fi
}

function run_e2e_tests(){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious if you want to enable tests from ./test/e2e/systeminternaltls or what's the plan for those tests? I want to add the test for certificate rotation there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I'll take a look.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see if that works out. We'll need patches for the tests, as OCP is a bit different. But we need to wait for knative#15217, otherwise we'll have to do it twice.

@@ -129,8 +129,9 @@ func TestClusterLocalDomainTLSClusterExternalVisibility(t *testing.T) {
t.Fatalf("Internal URL scheme of service %v was not https", names.Service)
}

if externalURL.Scheme != "http" {
t.Fatalf("External URL scheme of service %v was not http", names.Service)
// On OpenShift this is always https
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will need patches in main as well

@@ -93,7 +93,9 @@ func TestSystemInternalTLS(t *testing.T) {
}
activatorPod := pods.Items[0]

req := clients.KubeClient.CoreV1().Pods(activatorPod.Namespace).GetLogs(activatorPod.Name, &corev1.PodLogOptions{})
req := clients.KubeClient.CoreV1().Pods(activatorPod.Namespace).GetLogs(activatorPod.Name, &corev1.PodLogOptions{
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will need patches in main as well

@ReToCode ReToCode changed the title [test-only] Incorporate upstream encryption changes to Serving May 23, 2024
Copy link

openshift-ci bot commented May 23, 2024

@ReToCode: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/415-test-e2e-tls-aws-415 eebdb4a link true /test 415-test-e2e-tls-aws-415

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants