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

set protocol https for .Status.Address.URL #386

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

Jooho
Copy link

@Jooho Jooho commented Jul 18, 2024

What this PR does / why we need it:

For upstream, the protocol for inferenceservice endpoint is hardcoded tohttp but for ODH/RHOAI, it uses https everywhere. Therefore, it should be changed to https.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes # https://issues.redhat.com/browse/RHOAIENG-10064

Type of changes
Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Feature/Issue validation/testing:

Please describe the tests that you ran to verify your changes and relevant result summary. Provide instructions so it can be reproduced.
Please also list any relevant details for your test configuration.

Deploy OpenDataHub KServe with the following DSC

DSC:

spec:
  components:
    codeflare:
      managementState: Managed
    kserve:
      devFlags:
        manifests:
          - contextDir: config
            sourcePath: overlays/odh
            uri: 'https://github.com/jooho/kserve/tarball/https_manifests'
          - contextDir: config
            sourcePath: ''
            uri: 'https://github.com/opendatahub-io/odh-model-controller/tarball/main'
      managementState: Managed
      serving:
        ingressGateway:
          certificate:
            type: SelfSigned
        managementState: Managed
        name: knative-serving
    modelregistry:
      managementState: Removed
    trustyai:
      managementState: Removed
    ray:
      managementState: Removed
    kueue:
      managementState: Removed
    workbenches:
      managementState: Removed
    dashboard:
      managementState: Removed
    modelmeshserving:
      managementState: Removed
    datasciencepipelines:
      managementState: Removed
    trainingoperator:
      managementState: Removed

Deploy test isvc:
Loopy Setup
refer this doc

git clone   [email protected]:Jooho/loopy.git
cd loopy
make init
 
or

docker run -it quay.io/jooholee/loopy

cat cluster_info.sh
CLUSTER_CONSOLE_URL=https://console-openshift-console.XXXX
CLUSTER_API_URL=https://api.XXX:443
CLUSTER_ADMIN_ID=admin
CLUSTER_ADMIN_PW=password
CLUSTER_TOKEN=sha256~XXX
CLUSTER_TYPE=ROSA

Deploy sample sklearn model

loopy units run test-kserve-sklearn-v2-iris-role -vvv -i ./cluster_info.sh 

Check the isvc .Status.Address.URL has https

oc get isvc -n kserve-demo  sklearn-example-isvc-iris-v2-rest -ojsonpath='{.status.address.url}'

https://sklearn-example-isvc-iris-v2-rest.kserve-demo.svc.cluster.local

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Checklist:

  • Have you added unit/e2e tests that prove your fix is effective or that this feature works?
  • Has code been commented, particularly in hard-to-understand areas?
  • Have you made corresponding changes to the documentation?

Release note:


Re-running failed tests

  • /rerun-all - rerun all failed workflows.
  • /rerun-workflow <workflow name> - rerun a specific failed workflow. Only one workflow name can be specified. Multiple /rerun-workflow commands are allowed per comment.

@openshift-ci openshift-ci bot requested review from israel-hdez and spolti July 18, 2024 10:36
Copy link

openshift-ci bot commented Jul 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jooho

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

@Jooho Jooho mentioned this pull request Jul 18, 2024
9 tasks
Copy link

@danielezonca danielezonca left a comment

Choose a reason for hiding this comment

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

/lgtm

It should be nice to make this dynamic so that it works with both https and http

@Jooho Jooho added the lgtm label Jul 18, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 26f2eb1 into opendatahub-io:master Jul 18, 2024
26 checks passed
israel-hdez pushed a commit to israel-hdez/kserve that referenced this pull request Aug 28, 2024
…lux/component-updates/kserve-storage-initializer-210

Update kserve-storage-initializer-210 to eca4267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants