Uploaded image for project: 'Multicloud'
  1. Multicloud
  2. MULTICLOUD-557

kubernetes kind plugins should implement an interface

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • El Alto Release
    • None
    • None
    • None

      Instead of implementing functions that match a particular signature. The plugins should implement an interface that is defined in the main application.

      The structure that implements the interface should be the exported variable from the plugin.

      The following

      symCreateResourceFunc.(func(*utils.ResourceData, kubernetes.Interface) (string, error))(genericKubeData, kubeclient)

      will become

      kind.Create(genericKubeData, kubeclient)

       

            kirankamineni kirankamineni
            kirankamineni kirankamineni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: