Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

[W.I.P] Add vsphere default storage class #70

Open
wants to merge 1 commit into
base: vsphere-develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
metadata:
name: default
labels:
k8s-addon: storage-vsphere.addons.k8s.io
provisioner: kubernetes.io/vsphere-volume
parameters:
diskformat: thin

---

apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
metadata:
name: thin
annotations:
storageclass.beta.kubernetes.io/is-default-class: "true"
labels:
k8s-addon: storage-vsphere.addons.k8s.io
provisioner: kubernetes.io/vsphere-volume
parameters:
diskformat: thin

10 changes: 9 additions & 1 deletion upup/pkg/fi/cloudup/bootstrapchannelbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,15 @@ func (b *BootstrapChannelBuilder) buildManifest() (*channelsapi.Addons, map[stri
}

{
key := "storage-aws.addons.k8s.io"
var key string

switch fi.CloudProviderID(b.cluster.Spec.CloudProvider) {
case fi.CloudProviderVSphere:
key = "storage-vsphere.addons.k8s.io"
case fi.CloudProviderAWS:
key = "storage-aws.addons.k8s.io"
}

version := "1.6.0"

location := key + "/v" + version + ".yaml"
Expand Down