Uploaded image for project: 'OpenShift Migration Toolkit for Containers'
  1. OpenShift Migration Toolkit for Containers
  2. MIG-1250

Primer export should allow the export of applications (filter by label)

    XMLWordPrintable

Details

    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo

    Description

      Users want to export applications* from the OCP console UI. The first version allows the user currently only to export the complete project (=namespace), but a more fine granular export would be nice.

      The topology shows workload and other resources grouped as application based on the app.kubernetes.io/part-of label.

      To export all related resources to an application, the user should select one (maybe more later?) application names in the UI, that should create then an export resource with this label filter.

      For example (just to get an idea, must not look exactly like this):

      A matchLabels selector would only one app per export for now.

      apiVersion: primer.gitops.io/v1alpha1
      kind: Export
      metadata:
        name: primer
      spec:
        method: download
        user: kubeadmin
        selector:
          matchLabels:
            app.kubernetes.io/part-of: my-app
      

      With a matchExpressions this might support also multiple apps, right?

      apiVersion: primer.gitops.io/v1alpha1
      kind: Export
      metadata:
        name: primer
      spec:
        method: download
        user: kubeadmin
        selector:
          matchExpressions:
            - {key: app.kubernetes.io/part-of, operator: In, values: [my-app1, my-app2]}
      

      Attachments

        Issue Links

          Activity

            People

              jgabani@redhat.com Jaydipkumar Gabani (Inactive)
              cjerolim Christoph Jerolimov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: