BUILD-284 Use openshift/api and openshift/client-go for clientset, informers, and listers#57
BUILD-284 Use openshift/api and openshift/client-go for clientset, informers, and listers#57openshift-merge-robot merged 3 commits intoopenshift:masterfrom coreydaley:jira_build_284_use_openshift_api
Conversation
|
/assign @gabemontero |
|
realizing this is still WIP and the openshift/api PR has not been fully approved/merge, so changes with the API are not out of the question, but the relative simplicity of these changes so far make me smile :-) |
|
/hold |
|
so hopefully a useful heads up @coreydaley ... even with WIP and hold labels I believe we got "lucky" wrt not needing out of the gate the corrected csi driver name in openshift/api#1019 because we are using string vs. the constant as defined in csi-driver-shared-resource/cmd/main.go Line 83 in 7a51ab2 that said, if / hopefully when openshift/api#1019 merges relatively soon, after vendoring in that commit level hopefully as part of this PR, to also pick up SharedConfigMapReference, we should make a mental note to update those 3 spots with use of the constant in openshift/api |
Makefile disconnect ^^ |
|
/hold cancel |
|
/assign @adambkaplan |
|
/retest |
…ft/client-go/sharedresource
|
/approve |
|
/assign @otaviof |
gabemontero
left a comment
There was a problem hiding this comment.
some side / tangential comments but
/lgtm
|
|
||
| echo -e "\n---\n" >> release.yaml | ||
| cat deploy/${FILE} >> release.yaml | ||
| cat ${FILE} >> release.yaml |
There was a problem hiding this comment.
yeah this most likely will go away once we intergrate with the CSO, but better to keep it sensible in the interim
| func BuildKey(r sharev1alpha1.ResourceReference) string { | ||
| return r.Namespace + ":" + r.Name | ||
| func BuildKey(namespace, name string) string { | ||
| return namespace + ":" + name |
There was a problem hiding this comment.
feels like a "non-required" change but OK :-)
There was a problem hiding this comment.
We don't have a single resource reference type to use for this anymore.
There was a problem hiding this comment.
ah right .... that said, probably should have used the k8s interface that includes GetName and GetNamespace methods, but no biggie
| } | ||
|
|
||
| func ExecuteSAR(shareName, podNamespace, podName, podSA string, kind sharev1alpha1.ResourceReferenceType) (bool, error) { | ||
| func ExecuteSAR(shareName, podNamespace, podName, podSA string, kind consts.ResourceReferenceType) (bool, error) { |
There was a problem hiding this comment.
right this came up in the openshift/api review
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: coreydaley, gabemontero 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 |
This pull request vendors in the relocated API (openshift/api) and clientset/informers/listers (openshift/client-go).
I made ONLY the changes that had to be done for this to work, no further reorganization or refactorings were done, so as to make the review easier, as program logic has not changed.