Skip to content
Snippets Groups Projects
Commit 7f717388 authored by Jeremy Scott's avatar Jeremy Scott Committed by Derek Su
Browse files

Add test case for default volume type set in storage class

parent f6bb3664
Branches
Tags v0.0.39
No related merge requests found
//go:build e2e
// +build e2e
package test
......@@ -6,9 +7,9 @@ import (
"fmt"
"github.com/kelseyhightower/envconfig"
"github.com/stretchr/testify/suite"
"strings"
"testing"
"time"
"strings"
)
const (
......@@ -89,6 +90,12 @@ func (p *PodTestSuite) TestPodWithLocalVolume() {
runTest(p, []string{p.config.IMAGE}, "ready", localVolumeType)
}
func (p *PodTestSuite) TestPodWithLocalVolumeDefault() {
p.kustomizeDir = "pod-with-default-local-volume"
runTest(p, []string{p.config.IMAGE}, "ready", localVolumeType)
}
func (p *PodTestSuite) TestPodWithNodeAffinity() {
p.kustomizeDir = "pod-with-node-affinity"
......
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../deploy
- ../../../examples/pod
patches:
- path: patch.yaml
commonLabels:
app: local-path-provisioner
images:
- name: rancher/local-path-provisioner
newTag: dev
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-path
annotations:
defaultVolumeType: local
provisioner: rancher.io/local-path
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment