ibm-mas / cli

Maximo Application Suite command line interface
https://ibm-mas.github.io/cli/
Eclipse Public License 2.0
24 stars 18 forks source link

[minor] Add gitops-license-generator #1338

Closed tomklapiscak closed 4 days ago

tomklapiscak commented 5 days ago

This PR adds the gitops-license-generator alternative to the existing gitops-license Task. Instead of accepting a pre-generated license file, this task will generate a license based on provided parameters (expiry_date, app_points, customer_name, country and icn).

NOTE: The gitops-license-generator task depends on a proprietary docker image and is for IBM internal usage only.

https://jsw.ibm.com/browse/MASCORE-3409

Testing

Fyre

When

sls:
  entitlement_lic: <ref:gitops/fyre-dev/us-east-2/noble5/mascore3061/authorized_entitlement_saas.lic>

existing gitops-license task runs: image

When:

sls:
  license:
    expiry_date: "28-feb-2025"
    app_points: 1000
    customer_name: "customer_name"
    country: "US"
    icn: "0X1"

new gitops-license-generator task runs instead: image

License file uploaded to AWS SM: image

Picked up SLS, valid license file recognised by MAS and has expected parameter values: image

Updated app_points and expiry_date:

sls:
  channel: 3.x
  license:
    expiry_date: "28-feb-2026"
    app_points: 1500
    customer_name: "customer_name"
    country: "US"
    icn: "0X1"

Pipeline reruns. Hard refresh SLS ArgoCD Application to pickup updated license file. Updated parameters reflected in MAS: image

ROSA (fvtsaas)

sls:
  channel: 3.x
  license:
    expiry_date: "28-feb-2029"
    app_points: 1000
    customer_name: "Maximo Operation - Internal"
    country: "US"
    icn: "0X1"

image

image

image