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

OCM-7110 | fix: GitHub IDP validation #1895

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

mnecas
Copy link
Contributor

@mnecas mnecas commented Apr 2, 2024

Switch from URI validation to the DNS1123 validation. The openshift does not accept the URI format of domains. So when user specifies some address with prefix https:// it will fail.

@openshift-ci openshift-ci bot requested review from oriAdler and thomasmckay April 2, 2024 13:23
@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 2, 2024
Copy link
Contributor

openshift-ci bot commented Apr 2, 2024

Hi @mnecas. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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/test-infra repository.

@robpblake
Copy link
Contributor

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 2, 2024
@robpblake
Copy link
Contributor

@mnecas You need to update your commit message to: OCM-7110 | fix: GitHub IDP validation

cheers,
Rob

cmd/create/idp/github.go Outdated Show resolved Hide resolved
@gdbranco
Copy link
Contributor

gdbranco commented Apr 2, 2024

Will also require changes to the interactive validation

interactive.IsURL,

@mnecas mnecas force-pushed the fix_gh_idp_validation branch from 8396138 to 9b0da17 Compare April 2, 2024 14:55
@mnecas mnecas changed the title OCM-7110 | Fix GitHub IDP validation OCM-7110 | fix: GitHub IDP validation Apr 2, 2024
@gdbranco
Copy link
Contributor

gdbranco commented Apr 2, 2024

/test test

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 2, 2024
@mnecas mnecas force-pushed the fix_gh_idp_validation branch 2 times, most recently from 89c1c88 to 14b2dd3 Compare April 2, 2024 16:04
Switch from URI validation to the DNS1123 validation.
The openshift does not accept the URI format of domains. So when user specifies some address with prefix https:// it will fail.

Signed-off-by: Martin Necas <[email protected]>
@mnecas mnecas force-pushed the fix_gh_idp_validation branch from 14b2dd3 to fca6f45 Compare April 2, 2024 16:36
Copy link
Contributor

openshift-ci bot commented Apr 2, 2024

@mnecas: all tests passed!

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/test-infra repository. I understand the commands that are listed here.

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 21.88%. Comparing base (c9f520d) to head (fca6f45).
Report is 2 commits behind head on master.

Files Patch % Lines
pkg/interactive/validation.go 0.00% 6 Missing ⚠️
cmd/create/idp/github.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1895      +/-   ##
==========================================
+ Coverage   21.82%   21.88%   +0.05%     
==========================================
  Files         117      117              
  Lines       18929    18935       +6     
==========================================
+ Hits         4132     4144      +12     
+ Misses      14487    14477      -10     
- Partials      310      314       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gdbranco
Copy link
Contributor

gdbranco commented Apr 2, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 2, 2024
Copy link
Contributor

openshift-ci bot commented Apr 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gdbranco, mnecas

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-merge-bot openshift-merge-bot bot merged commit 80d0265 into openshift:master Apr 2, 2024
9 checks passed
gdbranco pushed a commit that referenced this pull request Apr 2, 2024
OCM-7110 | fix: GitHub IDP validation
gdbranco pushed a commit that referenced this pull request Apr 3, 2024
OCM-7110 | fix: GitHub IDP validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants