-
Notifications
You must be signed in to change notification settings - Fork 32
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
Operator sdkv1.4.2 #47
Operator sdkv1.4.2 #47
Conversation
/assign marquiz |
dfe43f3
to
5aabd28
Compare
We (@marquiz implemented it) introduced the master/worker split because we wanted to increase security so that workers cannot label the node. This patch introduces one common SA
Please keep the RBAC for master and worker separate. A worker does not need |
Got it, working on it |
Yes. The worker does not currently need any privileges/access to the k8s control plane so no rbac configuration should be present for it. |
0d3a15d
to
3b09467
Compare
/honk |
In response to this:
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. |
/woof |
In response to this:
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. |
/joke |
@zvonkok: Why is no one friends with Dracula? Because he's a pain in the neck. In response to this:
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. |
Ok looks good, but there are some files without 'newline' at EOF and some empty lines. Please check, after that, I will lgtm. |
Otherwise most of the diff is based on the new operator-sdk layout and introduction of |
3b09467
to
4cf8044
Compare
|
now rebase giving trouble again.....fixing |
46946f6
to
94afbe8
Compare
8d84744
to
6bab5fc
Compare
Fixed the issue preventing the |
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.
Still a few comments and open questions.
Please also drop the manager
binary that appeared in the latest version of the PR
5727db9
to
7664023
Compare
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.
Looks good, now!
One more nit: could you remove the trailing whitespace from the ends of lines, introduced by this patch. I spotted these files (but there might be others, too):
- Makefile
- build/assets/master/0100_service_account.yaml
- build/assets/master/0200_clusterrole.yaml
- config/certmanager/kustomizeconfig.yaml
- config/rbac/nodefeaturediscovery_editor_role.yaml
- config/samples/nfd.kubernetes.io_v1_nodefeaturediscovery.yaml
listKind: NodeFeatureDiscoveryList | ||
plural: nodefeaturediscoveries | ||
singular: nodefeaturediscovery | ||
scope: Namespaced |
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.
just a thought but I was wondering should the CRD be cluster scoped instead of Namespaced
.
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.
this is the same CRD , this patch intention is about the operator framework layout, changes to the CRD will come in a following PR
"k8s.io/apimachinery/pkg/runtime" | ||
"k8s.io/client-go/tools/record" | ||
"k8s.io/cri-api/pkg/errors" | ||
"k8s.io/klog" |
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.
time for k8s.io/klog/v2
?
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 comment as the CRD, this patch is big enough like to introduce more changes, I am planning on enhancing logging and adding changes to the CRD but not in this patch that is big enough.
Thanks for the reviews Mythi :)
7664023
to
b50b07f
Compare
@marquiz requestes files have been trimmed RFR |
Are they? Didn't see any change on the trailing whitespace 🤔 I was referring to the trailing whitespace on the non-empty lines. I did see that now the empty lines from the end of those files were removed, though. |
f7804f0
to
24103e8
Compare
Upgrade the operator-framework version we use for the NFD-Operator, currently uses a very old and deprecated one. this patchs bumps it to 1.4.2 version, adding kustomize as the way to handle the manifests as part of the new features of the framwork Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
24103e8
to
5132e9f
Compare
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.
Thanks @ArangoGutierrez, looks good! 🎉 I think we're done with this megalomanian PR 😉
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ArangoGutierrez, marquiz 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 |
Update the Operator SDK version used for the operator
currently NFD is under V0.18 this Patch moves it to V1.4.2
Note: this is the first of many patches, but taking into account the amount of change of this patch, other planned things like bug fixes, even typos, will be fixed in a following PR