Skip to content

Commit

Permalink
Custom default storage classes (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Feb 7, 2022
1 parent c720fe8 commit f72acf0
Show file tree
Hide file tree
Showing 12 changed files with 164 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.6.2
controller-gen.kubebuilder.io/version: v0.7.0
creationTimestamp: null
name: duros.storage.metal-stack.io
spec:
Expand Down Expand Up @@ -54,12 +54,15 @@ spec:
properties:
compression:
type: boolean
default:
type: boolean
name:
type: string
replicas:
type: integer
required:
- compression
- default
- name
- replicas
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ kind: StorageClass
metadata:
name: csi-lvm
annotations:
{{ if .Values.isDefaultStorageClass }}
storageclass.kubernetes.io/is-default-class: "true"
{{ end }}
provisioner: metal-stack.io/csi-lvm
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete
Expand Down
1 change: 1 addition & 0 deletions charts/internal/shoot-storageclasses/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
images:
csi-lvm-controller: image-repository:image-tag
csi-lvm-provisioner: image-repository:image-tag
isDefaultStorageClass: true
4 changes: 2 additions & 2 deletions example/controller-registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ metadata:
name: provider-metal
type: helm
providerConfig:
chart: H4sIAAAAAAAAA+0ca2/bOLKf9SsI9xbYPZzlRxy3MNDDpWm2m7s2MZJci8PhUNASbauWRS0lJfF2+99v+JIoWbKspE22XQ0CRKJmhkNyZjjDhxeYuSQgrEtuYxJEHg26IaPXngtFaxJjv/fk3tAHeHZ4KP4DFP+L58HBaDA8HI7HvHwwPuiPnqDD+1ddD0kUY4bQE0ZpvAuv7vs3Cova8T9eYhbbG7z271pH3fgPR4XxH/aHB/0nqP8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odnGqOqAzQXPsR8Sytg+kTNB//2cVjpeIMkjxy3Y4+VF0vn/rqRtcT429zhAnkTwLI45JWHKfV3bRhTlA2U8zZZu+5uPMp7PeGvOQqTdLPN/tCdY9eUSaH+my9Da7wVWO+oLShU8+ZEfkJG0Xr93xSJGJke4c2P2OKkh/uG1gDwb27bfdqsFWqzp/f8FbNpQfbNu2rFxMOLHkqQh9tIVHmJaTfiq/B1p2CxSHwkA4Uu9jRAOtq9mNzFIMcVdy0Jeb1eoi4+CAv+bvC3K9NC/8Fe4uZJf9dIG+vicZ527kpffxLL1xvn3Hzqq+P5RejJCWJfbtS2/3lCCWXNCRLSu/RpNeolHvIgtIW5g+EaNU3vyQY1e87LclUMklvhKh08t2lmwAvz6nP4g7cfplmopn3FzTH9VNNMu8Q1ZSWfH2V+qrY1FgFYY+d2mltMOLl0u4v664y1F1k8NKf1dImotulZZNXdxuQ74WWmihhRZaaKGFFlpooYUWWmihhRZaaKGFFlpooYUWWmihhRZaaKGFBvB/2XbcjwB4AAA=
values:
image:
tag: v0.18.4
tag: v0.18.5
---
apiVersion: core.gardener.cloud/v1beta1
kind: ControllerRegistration
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ require (
github.com/google/go-cmp v0.5.6
github.com/google/uuid v1.3.0
github.com/imdario/mergo v0.3.12
github.com/metal-stack/duros-controller v0.3.2
github.com/metal-stack/duros-controller v0.3.3
github.com/metal-stack/firewall-controller v1.1.3
github.com/metal-stack/machine-controller-manager-provider-metal v0.1.9
github.com/metal-stack/metal-go v0.16.1
github.com/metal-stack/metal-lib v0.9.0
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.16.0
github.com/onsi/gomega v1.17.0
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/vincent-petithory/dataurl v0.0.0-20191104211930-d1553a71de50 // indirect
Expand Down
Loading

0 comments on commit f72acf0

Please sign in to comment.