Update ephemeral-properties/create tenant for edge (update-ephemeral-properties job)

https://jenkins-aws.indexdata.com/job/Rancher/job/Update/job/update-ephemeral-properties/

This job used for updating ephemeral-properties ConfigMap in Rancher environment and creating tenants if it is needed.


The result of this job (if create_tenant set to true):

  1. Creating a new tenant
  2. Creating user in a new tenant (with the set permissions need for selected edge module)
  3. Updating ConfigMap for selected edge module (set up tenants and institutional user password)
  4. Rollout deployment for selected edge module 

The result of this job (if create_tenant set to false):

  1. Updating ConfigMap for selected edge module (set up tenants and institutional user password)
  2. Rollout deployment for selected edge module 

Parameters:

rancher_cluster_name - choose the right cluster name

rancher_project_name - choose the environment name

edge_module - choose edge module, which we need to change

reference_tenant_id - tenant ID that used like reference (by default diku)

tenant_id - ID for creating

tenant_name - tenant name for creating 

admin_username - user name for creating this tenant

admin_password - user password for creating in this tenant

create_tenant - set true, if you want to create a tenant

Example:

For example, we need to create patrontenant3 tenant with a user patronuser and update data in the config map for edge-patron module.

Parameters for the run:

ConfigMap before the run:

ConfigMap after run:

For applying changes deployment edge-patron will be restarted. A new service started with a new settings of tenant.