Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-4358

Set the LifeTime field when creating cluster claims using OpesnShift Hive

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • QA
    • 5
    • False
    • None
    • False
    • Pipelines Sprint Release 7

      Story (Required)

      We need to define in cluster claim specification the lifetime field. This provides us with the flexibility to choose the cluster lifetime.

      Background (Required)

      Now there are two approaches how to uninstall clusters: manual or using cronjob.

      Using the OpenShift Hive as a cluster installer brings us option to automate uninstallation process of Hive clusters. 

      Approach (Required)

      This can be achieved by using the new the parameter  "CLUSTER_LIFETIME"  in acceptance-tests task. 

      1. Add liftetime spec to the cluster claim template , where the value will be the value of  the "CLUSTER_LIFTETIME" parameter.
      2. Change the existing approach of creating cluster secrets. Set the label "keep-cluster=true"  when the parameter "CLUSTER_LIFETIME"  is not empty and OpenShift Hive is used as the installer of  cluster.
      3. Modify the install-cluster and acceptance-tests pipelines.
      4. Modify pipeline runs that might be using Hive as a cluster installer.

       

              rh-ee-amisskii Anton Misskii (Inactive)
              rh-ee-amisskii Anton Misskii (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: