Skip to content

Commit

Permalink
copy labels from source namespaces (#1319) (#1320)
Browse files Browse the repository at this point in the history
Co-authored-by: Pranav Gaikwad <pgaikwad@redhat.com>
  • Loading branch information
rayfordj and pranavgaikwad committed Oct 19, 2022
1 parent 4086c48 commit 384e618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/directimagemigration/namespace.go
Expand Up @@ -63,6 +63,7 @@ func (t *Task) ensureDestinationNamespaces() error {
ObjectMeta: metav1.ObjectMeta{
Name: destNsName,
Annotations: srcNS.Annotations,
Labels: srcNS.Labels,
},
}
existingNamespace := &corev1.Namespace{}
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/directvolumemigration/namespace.go
Expand Up @@ -42,6 +42,7 @@ func (t *Task) ensureDestinationNamespaces() error {
ObjectMeta: metav1.ObjectMeta{
Name: destNsName,
Annotations: srcNS.Annotations,
Labels: srcNS.Labels,
},
}
existingNamespace := &corev1.Namespace{}
Expand Down

0 comments on commit 384e618

Please sign in to comment.