Update code
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
3159c8412d
commit
1a4944c994
10 changed files with 182 additions and 118 deletions
|
|
@ -13,7 +13,7 @@
|
|||
volumeBindingMode: WaitForFirstConsumer
|
||||
allowVolumeExpansion: true
|
||||
when:
|
||||
- storage_manual.enabled
|
||||
- storage_manual_enabled
|
||||
tags:
|
||||
- manual
|
||||
- storage
|
||||
|
|
@ -38,6 +38,11 @@
|
|||
tags:
|
||||
- secrets-store
|
||||
- storage
|
||||
- name: include seaweedfs tasks
|
||||
ansible.builtin.include_tasks: "seaweedfs.yml"
|
||||
tags:
|
||||
- seaweedfs
|
||||
- storage
|
||||
|
||||
# https://medium.com/asl19-developers/create-readwritemany-persistentvolumeclaims-on-your-kubernetes-cluster-3a8db51f98e3
|
||||
# https://github.com/ctrox/csi-s3
|
||||
|
|
@ -56,16 +61,18 @@
|
|||
apiVersion: v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: "{{ storage.default_storageclass }}"
|
||||
name: "{{ storage_default_storageclass }}"
|
||||
annotations:
|
||||
storageclass.kubernetes.io/is-default-class: "true"
|
||||
when:
|
||||
- storage.default_storageclass is defined
|
||||
- storage_default_storageclass is defined
|
||||
tags:
|
||||
- manual
|
||||
- local-path
|
||||
- nfs
|
||||
- longhorn
|
||||
- secrets-store
|
||||
- seaweedfs
|
||||
- storage
|
||||
|
||||
- name: Select the default VolumeSnapshotClass
|
||||
|
|
@ -76,9 +83,9 @@
|
|||
apiVersion: v1
|
||||
kind: VolumeSnapshotClass
|
||||
metadata:
|
||||
name: "{{ storage.default_storageclass }}"
|
||||
name: "{{ storage_default_storageclass }}"
|
||||
annotations:
|
||||
snapshot.storage.kubernetes.io/is-default-class: "true"
|
||||
when:
|
||||
- storage.default_storageclass is defined
|
||||
- storage.default_storageclass == "do-block-storage"
|
||||
- storage_default_storageclass is defined
|
||||
- storage_default_storageclass == "do-block-storage"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue