Skip to content

Conversation

@gaima8
Copy link

@gaima8 gaima8 commented Apr 8, 2021

Same as purestorage/helm-charts#258 but for the newer release.

My aim is to have the flux helm-controller install the chart, and it's impractical to pass the API tokens securely for the chart to create the secret.
A sealed-secret solves the problem of getting the values in but the chart will at best overwrite the unsealed secret.

I am very much open to ideas on how to handle the validation of arrays better.

Copy link
Contributor

@Pure-AdamuKaapan Pure-AdamuKaapan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sdodsley this request seems reasonable to me, we already function fine with the secret missing (we just kinda sit there until it appears). Can you think of any issues this might cause?

@gaima8 I left a few comments if you'd be so kind as to address them, they're mostly just small doc changes. Thanks for your contribution!

| `flashblade.snapshotDirectoryEnabled` | Enable/Disable FlashBlade snapshots | `false` |
| `orchestrator.name` | Orchestrator type, such as openshift, k8s | `k8s` |
| *`arrays` | Array list of all the backend FlashArrays and FlashBlades | must be set by user, see an example below |
| *`arrays` | Array list of all the backend FlashArrays and FlashBlades | may be set by user, see two examples below |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] I'd just change it to "may be set by user, see examples below" (remove "two")

*Examples:

1. Helm values
To have helm create and manage the secret holding the API tokens use the following in your values file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] capitalize Helm, and end the sentence in a colon instead of period

2. Manual secret
If you wish to manage the secret holding the API tokens yourself do the following;
Create a kubernetes secret called `pure-provisioner-secret` with a single key `pure.json` containing json formatted like so
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Create a kubernetes secret called `pure-provisioner-secret` with a single key `pure.json` containing json formatted like so
Create a Kubernetes secret called `pure-provisioner-secret` in the same namespace as your PSO installation with a single key `pure.json` containing json formatted like so:

@sdodsley
Copy link
Contributor

@Pure-AdamuKaapan Is this change going to mess up the helm schema?

@Pure-AdamuKaapan
Copy link
Contributor

@sdodsley I think this would make it so that arrays is no longer required (obviously). I think this would still validate that the array structs are well formed if they're there but we should confirm that locally to be sure

@gaima8
Copy link
Author

gaima8 commented Apr 20, 2021

Hi, requested changes to the README made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants