-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhances the longhorn integration test (#7)
The integration test now also waits for the "driver.longhorn.io" annotation to be added to the node. If this is added, it means that the Longhorn CSI plugin successfully registered. The integration now spawns an NGINX pod with a PVC, which should be satisfied by Longhorn.
- Loading branch information
1 parent
4fc4872
commit 0a94beb
Showing
2 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: longhorn-pvc | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: longhorn | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: nginx-longhorn-example | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx | ||
volumeMounts: | ||
- name: longhorn-pvc | ||
mountPath: /var/www | ||
readOnly: false | ||
volumes: | ||
- name: longhorn-pvc | ||
persistentVolumeClaim: | ||
claimName: longhorn-pvc |