Skip to content

Commit

Permalink
desired_state StorageClass
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Jan 2, 2025
1 parent 3799f62 commit 0bec1fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-hostpath
name: openebs-hostpath
annotations:
openebs.io/cas-type: local
cas.openebs.io/config: |
- name: StorageType
value: hostpath
- name: BasePath
value: {{ base_path }}
value: /var/openebs/local
- name: NodeAffinityLabels
list:
- "openebs.io/custom-node-unique-id"
Expand Down
5 changes: 5 additions & 0 deletions roles/clusterlust.openebs/tasks/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
update_repo_cache: true
wait: true

- name: Manage StorageClass
kubernetes.core.k8s:
state: "{{ desired_state }}"
src: local-hostpath-sc.yaml

- name: Remove helm repository
when: desired_state == 'absent'
kubernetes.core.helm_repository:
Expand Down

0 comments on commit 0bec1fe

Please sign in to comment.