Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-6433

Check kubectl connection on RegisterKubernetesCluster

    XMLWordPrintable

    Details

    • Story Points:
      2
    • Sprint:
      Platform Sprint 23, Platform Sprint 25, Platform Sprint 26, Platform Sprint 27
    • Needs Review:
      Yes
    • Needs QA:
      Yes
    • Needs Doc:
      No

      Description

      Why:  We need functionality in API to allow do check for K8s config file so it can be used later for  connection to k8s  

       

      1. Implement a separate dbaas-controller API for validating kubectl configuration.
      2. Use that API in pmm-managed's RegisterKubernetesCluster method implementation.

      How to test:

      1. Invalid kube config
        1. Run PMM-server with PERCONA_TEST_DBAAS=1
        2. Open DBaaS page in UI
        3. Try to add new kubernetes cluster with invalid config
        4. Check that error message is shown and kubernetes cluster is not registered.
      2. Valid kube config
        1. Run PMM-server with PERCONA_TEST_DBAAS=1
        2. Open DBaaS page in UI
        3. Try to add new kubernetes cluster with valid config
        4. Check that there no error message and kubernetes cluster is registered

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrii.skomorokhov Andrii Skomorokhov
              Reporter:
              alexey.palazhchenko Alexey Palazhchenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m

                    Smart Checklist