-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update secrets documentation with new keys and template variables #168
Update secrets documentation with new keys and template variables #168
Conversation
/assign @msau42 |
The value of `csi.storage.k8s.io/provisioner-secret-name` also supports the following template variables which are automatically replaced by the `external-provisioner` at provision time: | ||
|
||
* `${pvc.name}` | ||
* Automatically replaced with the name of the `PersistentVolumeClaim` object being provisioned. | ||
|
||
If specified, the CSI `external-provisioner` will attempt to fetch the secret before provisioning and deletion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a note here that for deletion, if the entire namespace was deleted (including the secret needed for deletion), then no secret will be passed to the delete call. If the driver requires a deletion secret and this happens, then the volume and the PV may need to be manually cleaned up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a note for this 👍
3bb1056
to
da7492c
Compare
book/src/secrets-and-credentials.md
Outdated
If the entire namespace was deleted, including the secret needed for deletion, then no secret will be passed to the | ||
delete call. If this happens when the driver requires a secret for deletion, then the volume and PV may need to be | ||
manually cleaned up. | ||
|
||
If no such secret exists in the Kubernetes API, or the provisioner is unable to fetch it, the provision or delete operation fails. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence also has to be updated :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated this and moved the sentence about manually cleaning up to be after this.
da7492c
to
c1606c6
Compare
- there was a typo for NodePublish and NodeStage docs - added a new example with secret provided for multiple operations. - updated the provisioner secrets based on recent changes allowing pvc.name and pvc.namespace.
c1606c6
to
6ea8817
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ggriffiths, msau42 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #150
${pvc.name}
or${pvc.annotations}
, not the namespace:https://github.com/kubernetes-csi/external-provisioner/blob/967b7a310b197d3294b52af84a195b45b9a0e1d2/pkg/controller/controller.go#L830-L839
Release notes: