Update template and update script
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c0ceae535e
commit
beff055784
21 changed files with 643 additions and 71 deletions
|
|
@ -12,7 +12,7 @@
|
|||
when:
|
||||
- not storage_digitalocean|bool
|
||||
|
||||
- name: Add secret for DigitalOcean Access Key
|
||||
- name: Secret for DigitalOcean Access Key need to be {{ storage_digitalocean_state }}
|
||||
k8s:
|
||||
state: "{{ storage_digitalocean_state }}"
|
||||
context: "{{ my_context }}"
|
||||
|
|
@ -24,19 +24,19 @@
|
|||
namespace: kube-system
|
||||
type: Opaque
|
||||
stringData:
|
||||
access-token: "{{ digitalocean_token }}"
|
||||
access-token: "{{ digitalocean_token | default('token_missing') }}"
|
||||
|
||||
- name: digitalocean-storage need to be {{ storage_linode_state }}
|
||||
- name: digitalocean-storage need to be {{ storage_digitalocean_state }}
|
||||
k8s:
|
||||
state: "{{ storage_digitalocean_state }}"
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
resource_definition: "{{ lookup('file', item) | from_yaml }}"
|
||||
with_items:
|
||||
- "digitalocean/dobs.csi.digitalocean.com-CSIDriver.yaml"
|
||||
- "digitalocean/volumesnapshotclasses.snapshot.storage.k8s.io-CustomResourceDefinition.yaml"
|
||||
- "digitalocean/volumesnapshotcontents.snapshot.storage.k8s.io-CustomResourceDefinition.yaml"
|
||||
- "digitalocean/volumesnapshots.snapshot.storage.k8s.io-CustomResourceDefinition.yaml"
|
||||
- "digitalocean/dobs.csi.digitalocean.com-CSIDriver.yaml"
|
||||
- "digitalocean/do-block-storage-VolumeSnapshotClass.yaml"
|
||||
- "digitalocean/do-block-storage-StorageClass.yaml"
|
||||
- "digitalocean/csi-do-controller-StatefulSet.yaml"
|
||||
|
|
@ -53,3 +53,7 @@
|
|||
- "digitalocean/csi-do-node-sa-ServiceAccount.yaml"
|
||||
- "digitalocean/csi-do-node-driver-registrar-role-ClusterRole.yaml"
|
||||
- "digitalocean/csi-do-node-driver-registrar-binding-ClusterRoleBinding.yaml"
|
||||
- "digitalocean/snapshot-controller-StatefulSet.yaml"
|
||||
- "digitalocean/snapshot-controller-ServiceAccount.yaml"
|
||||
- "digitalocean/snapshot-controller-role-ClusterRole.yaml"
|
||||
- "digitalocean/snapshot-controller-binding-ClusterRoleBinding.yaml"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue