-
Notifications
You must be signed in to change notification settings - Fork 43
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
refactor: add simillar labels to the each components #148
Conversation
controllers/topolvm_controller.go
Outdated
}, | ||
Spec: appsv1.DeploymentSpec{ | ||
Replicas: &replicas, | ||
Selector: &metav1.LabelSelector{ | ||
MatchLabels: map[string]string{ | ||
AppAttr: TopolvmControllerDeploymentName, | ||
AppAttr: TopolvmControllerDeploymentName, |
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.
Are we using this existing label anywhere? If not I would like to remove it.
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.
can be removed
controllers/topolvm_node.go
Outdated
@@ -177,6 +177,8 @@ func getNodeDaemonSet(lvmCluster *lvmv1alpha1.LVMCluster, namespace string, init | |||
} | |||
labels := map[string]string{ | |||
"app": topolvmNodeName, |
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.
Are we using this existing label anywhere? If not I would like to remove it.
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.
can be removed
controllers/vgmanager_daemonset.go
Outdated
@@ -172,6 +172,7 @@ func newVGManagerDaemonset(lvmCluster *lvmv1alpha1.LVMCluster, namespace string, | |||
} | |||
labels := map[string]string{ | |||
"app": VGManagerUnit, |
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.
Are we using this existing label anywhere? If not I would like to remove it.
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.
can be removed
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.
- pardon, forgot to mention earlier, we might also need a label on manager itself.
- in addition to this label if we can have
app.kubernetes.io/part-of: lvmo
as well then we can get all possible resources under lvmo using a single label.
/hold Require discussion before merging the PR, As this will break the upgrades.
|
That is a topic of discussion and should be taken care of separately as that is a CSV change and will break upgrades very badly.
We can even list all of them without adding the above labels using only key I added in the PR for example
|
d5f04a3
to
7c16ae8
Compare
/hold cancel |
|
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.
Please add a label to the main controller-manager as well.
Add labels to the topolvm-controller, topolvm-node, vg-manager for example: app.lvm.topolvm.io: topolvm-controller app.lvm.topolvm.io: topolvm-node app.lvm.topolvm.io: vg-manager Signed-off-by: Nitin Goyal <[email protected]>
I would like to take it as separate PR as the changes are in the kustomize and related files and not in the controller. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iamniting, nbalacha 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 |
Add labels to the topolvm-controller, topolvm-node, vg-manager
for example:
app.lvm.openshift.io: topolvm-controller
app.lvm.openshift.io: topolvm-node
app.lvm.openshift.io: vg-manager
Signed-off-by: Nitin Goyal [email protected]