Seagate / cortx-k8s

CORTX Kubernetes Orchestration Repository
https://github.com/Seagate/cortx
Apache License 2.0
6 stars 47 forks source link

CORTX-32157: Refactor some Chart values #318

Closed keithpine closed 2 years ago

keithpine commented 2 years ago

Description

Refactor the values to be more consistent with Helm conventions, reduce duplication, etc. (general cleanup).

Type of change

Applicable issues

How was this tested?

Deployment, ran util scripts, S3 I/O, CSM request, etc.

Since existingSecret is required, and is empty by default, a custom "ci" values file was added for chart linting (ct).

Additional information

Checklist

If this change requires newer CORTX or third party image versions:

If this change addresses a CORTX Jira issue:

keithpine commented 2 years ago

@tanujashinde0405 I'm not aware of any documentation in regards to the allowed values for the cluster.yaml file's cluster.name and cluster.id fields. Could you confirm whether there are any character or length restrictions? As far as I can tell, there isn't. The Chart Release fullname is limited to 63 characters, with no trailing -.

https://github.com/Seagate/cortx-k8s/blob/153fa5700cace4e7ab0f74c4bcc11c415f086143/charts/cortx/templates/_helpers.tpl#L8-L24

tanujashinde0405 commented 2 years ago

@tanujashinde0405 I'm not aware of any documentation in regards to the allowed values for the cluster.yaml file's cluster.name and cluster.id fields. Could you confirm whether there are any character or length restrictions? As far as I can tell, there isn't. The Chart Release fullname is limited to 63 characters, with no trailing -.

https://github.com/Seagate/cortx-k8s/blob/153fa5700cace4e7ab0f74c4bcc11c415f086143/charts/cortx/templates/_helpers.tpl#L8-L24

@nitin-seagate Can you please confirm this?

nitin-seagate commented 2 years ago

onfirm whether there are any character or length restrictions? As far as I can tell, there isn't. The Chart Release fullname is limited to 63 characters, with no trailing

Yes there is no specification for allowed values wrt CLUSTER-NAME, we can assume default character-set (alphanumeric with limited special characters)... The CLUSTER-ID should be generic uuid (we can govern and define format for the same in-line with what we followed in LR) @tanujashinde0405 Please confirm CLUSTER-ID format for LR?

tanujashinde0405 commented 2 years ago

IN LR also Cluster-id was a uuid we used to generate during deployment : https://github.com/Seagate/cortx-prvsnr/blob/legacy-main/api/python/provisioner/commands/cluster_id.py#L87

keithpine commented 2 years ago

Reverted the change to the default cluster ID values. However, previously the dashes (-) were removed from the generated UUID, but now those are kept so it is a real UUIDv4, in the same way the LR Provisioner generated it.

I'm not sure it makes sense from a Core perspective that the ID should be required to be a UUID, especially since the software is already allowing regular strings. But that's a discussion for another time and place.