mirror of https://github.com/k3s-io/k3s
Merge pull request #41799 from johscheuer/fix-quobyte-example
Automatic merge from submit-queue Remove unnecessary constants and add type to secret **What this PR does / why we need it**: Adds the type field to the secret for the `persistent-volume-provisioning` example of Quobyte. Also remove unnecessary constants in Quobyte Code base. FYI @rootfs @saad-ali @quolixpull/6/head
commit
e2924880df
|
@ -215,7 +215,7 @@ parameters:
|
|||
* **user** maps all access to this user. Default is `root`.
|
||||
* **group** maps all access to this group. Default is `nfsnobody`.
|
||||
* **quobyteConfig** use the specified configuration to create the volume. You can create a new configuration or modify an existing one with the Web console or the quobyte CLI. Default is `BASE`
|
||||
* **quobyteTenant** use the specified tenant ID to create/delete the volume. This Quobyte tenant has to be already present in Quobyte. Default is `DEFAULT`
|
||||
* **quobyteTenant** use the specified tenant ID to create/delete the volume. This Quobyte tenant has to be already present in Quobyte. For Quobyte < 1.4 use an empty string `""` as `DEFAULT` tenant. Default is `DEFAULT`
|
||||
|
||||
First create Quobyte admin's Secret in the system namespace. Here the Secret is created in `kube-system`:
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ apiVersion: v1
|
|||
kind: Secret
|
||||
metadata:
|
||||
name: quobyte-admin-secret
|
||||
type: "kubernetes.io/quobyte"
|
||||
data:
|
||||
password: cXVvYnl0ZQ==
|
||||
user: YWRtaW4=
|
||||
|
|
|
@ -61,10 +61,6 @@ var _ volume.Deleter = &quobyteVolumeDeleter{}
|
|||
|
||||
const (
|
||||
quobytePluginName = "kubernetes.io/quobyte"
|
||||
|
||||
annotationQuobyteAPIServer = "quobyte.kubernetes.io/api"
|
||||
annotationQuobyteAPISecret = "quobyte.kubernetes.io/apiuser"
|
||||
annotationQuobyteAPISecretNamespace = "quobyte.kubernetes.io/apipassword"
|
||||
)
|
||||
|
||||
func (plugin *quobytePlugin) Init(host volume.VolumeHost) error {
|
||||
|
|
Loading…
Reference in New Issue