[OADP-458] Bring back component: velero label - #638
Conversation
|
@kaovilai I am a little confused so bear with me, the label we are looking for is |
| ) | ||
| veleroDeployment.TypeMeta = installDeployment.TypeMeta | ||
| veleroDeployment.Spec = installDeployment.Spec | ||
| veleroDeployment.Labels = installDeployment.Labels |
There was a problem hiding this comment.
@JaydipGabani This adds component: velero to veleroDeployment
| } | ||
|
|
||
| func (r *DPAReconciler) customizeVeleroDeployment(dpa *oadpv1alpha1.DataProtectionApplication, veleroDeployment *appsv1.Deployment) error { | ||
| veleroDeployment.Labels = r.getAppLabels(dpa) |
There was a problem hiding this comment.
We don't override labels
| }, | ||
| //append dpa labels | ||
| for k, v := range r.getDpaAppLabels(dpa) { | ||
| if veleroDeployment.Labels[k] == "" { //saves component: velero labels |
There was a problem hiding this comment.
We set only if it's not set already
preserves label from https://github.com/openshift/oadp-operator/pull/638/files#r849903351
| ds.TypeMeta = installDs.TypeMeta | ||
| // Update Spec | ||
| ds.Spec = installDs.Spec | ||
| ds.Labels = installDs.Labels |
|
/retest |
|
/retest |
1 similar comment
|
/retest |
|
@kaovilai: all tests passed! Full PR test history. Your PR dashboard. 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. |
component: velero labelcomponent: velero label
* Bring back `component: velero` label, fix OADP-452 * fix component:server on deployment, unit test update
fix OADP-458