Skip to content

oc oadp is defaulting to openshift-oadp namespace :/ #45

@weshayutin

Description

@weshayutin

Hrm.. if the current project is set to a valid oadp namespace imho we should use that.
We also need a option to set the namespace to the velero instance we want to use.

whayutin@fedora:~$ oc project
Using project "oadpwes" on server "https://api.wdh419arm77e.migration.redhat.com:6443".

whayutin@fedora:~$ oc oadp backup get
NAME                                                  STATUS      ERRORS   WARNINGS   CREATED                         EXPIRES   STORAGE LOCATION                                                 SELECTOR
nacuser1-test2-0e376f79-e9a5-467b-85aa-6df80dd4dc9b   Completed   0        0          2025-07-24 14:20:27 -0600 MDT   17d       nacuser1-nacuser1-storage-f345f5f7-93ba-4ce4-8ce4-57f10ed0d90f   <none>
test1                                                 Completed   0        0          2025-07-24 06:57:04 -0600 MDT   16d       dpa-sample-1                                                     <none>
whayutin@fedora:~$ 
whayutin@fedora:~$ oc get backup -n oadpwes
NAME    AGE
test1   39m
whayutin@fedora:~$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions