Add YAML sample CRD extension#2889
Conversation
3becc78 to
db3ca6a
Compare
There was a problem hiding this comment.
@sg00dwin: note these buttons have been migrated (they've been moved here from frontend/public/components/sidebars/resource-sidebar.jsx)
There was a problem hiding this comment.
@sg00dwin: no need to migrate these buttons (note they've been moved to frontend/public/components/sidebars/resource-sidebar-samples.tsx)
There was a problem hiding this comment.
I don't have a great suggestion here, but I worry that having apiVersion repeated will be confusing. Maybe we want something like this to make it more clear.
spec:
targetResource:
apiVersion: batch/v1
kind: Job
yaml: ...There was a problem hiding this comment.
So do we want to go with @spadgett's proposal for targetResource?
There was a problem hiding this comment.
Added in 4efb01f2814fd1ce08d3f1062e517d6c18231cc7. Will drop the commit if we decide against.
There was a problem hiding this comment.
Yeah, this was added in the openshift/api pr: https://github.com/openshift/api/pull/465/files#diff-8581d44cd64acbd596e8f8d3ffb43608R23
There was a problem hiding this comment.
| const existingSamples = !_.isEmpty(defaultSamples.get(referenceForModel(kindObj))) | |
| const existingSamples = defaultSamples.get(referenceForModel(kindObj)) || []; |
0522827 to
274df8b
Compare
274df8b to
7857bdf
Compare
4efb01f to
572d738
Compare
572d738 to
3a562b1
Compare
|
Removing WIP as the CRD is now available |
c325382 to
e2d3920
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1 similar comment
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest |
|
/refresh |
|
/test e2e-gcp-console |
|
/retest |
|
@rhamilto: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions 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. |
|
/retest |
Resolves https://jira.coreos.com/browse/CONSOLE-1800
Note: I refactored the styles for the samples a bit to better maintain the visual hierarchy and align the samples with the schema contents. As a bonus, now more samples are visible.
WIP ConsoleYAMLSample CRD: