-
Notifications
You must be signed in to change notification settings - Fork 150
Validate URLs from the CR file and additional unit tests for ocp tag #152
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| apiVersion: operator.openshift.io/v1 | ||
| kind: Console | ||
| metadata: | ||
| name: cluster | ||
| spec: | ||
| managementState: Managed | ||
| authentication: | ||
| # the logout redirect must be a valid URI that starts with http(s) | ||
| # valid examples: http://localhost:8080/logout.html, https://www.redhat.com/log/out/ | ||
| logoutRedirect: "https://www.redhat.com/i/should/logout" | ||
| customization: | ||
| brand: okd | ||
| # the documentation base must be a valid URI that starts with http(s) AND it must have a trailing slash | ||
| # the trailing slash is required because additional values will be appended | ||
| # valid examples: https://localhost:9999/docs/, http://192.168.1.5:3000/doc/location/ | ||
| documentationBaseURL: "https://www.redhat.com/someplace/for/docs/" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,32 @@ spec: | |
| subresources: | ||
| status: {} | ||
| versions: | ||
| - name: v1 | ||
| served: true | ||
| storage: true | ||
| - name: v1 | ||
zherman0 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| served: true | ||
| storage: true | ||
| validation: | ||
| openAPIV3Schema: | ||
| properties: | ||
| spec: | ||
| properties: | ||
| managementState: | ||
| pattern: ^(Managed|Unmanaged|Removed|Forced)$ | ||
| type: string | ||
| description: managementState indicates whether and how the operator | ||
| should manage the component | ||
| authentication: | ||
| properties: | ||
| logoutRedirect: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Late comment, but just realized,
|
||
| pattern: ^((https):\/\/?)[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))$ | ||
| type: string | ||
| description: Logout Redirect must be a valid URL | ||
| customization: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also,
|
||
| properties: | ||
| documentationBaseURL: | ||
zherman0 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| pattern: ^((https):\/\/?)[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))\/$ | ||
| type: string | ||
| description: Document base URL must be a valid URL that ends in a trailing slash | ||
| brand: | ||
| pattern: ^(ocp|origin|okd|dedicated|online|azure)$ | ||
| type: string | ||
| description: Brand must be be one of six values - azure|dedicated|ocp|okd|online|origin | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, @zherman0,
authenticationbelongs on the other config, should remove from this example file.