Skip to content

Commit

Permalink
Add secret ref to volume type (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
afritzler authored Feb 17, 2022
1 parent 63dd0ca commit 47f28e2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/storage/v1alpha1/volume_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ type VolumeSpec struct {
// StoragePool indicates which storage pool to use for a volume.
// If unset, the scheduler will figure out a suitable StoragePool.
StoragePool corev1.LocalObjectReference `json:"storagePool"`
// SecretRef references the Secret containing the access credentials to consume a Volume.
SecretRef corev1.LocalObjectReference `json:"secretRef,omitempty"`
// Resources is a description of the volume's resources and capacity.
Resources corev1.ResourceList `json:"resources,omitempty"`
// Tolerations define tolerations the Volume has. Only StoragePools whose taints
Expand Down
1 change: 1 addition & 0 deletions apis/storage/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions config/crd/bases/storage.onmetal.de_volumes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ spec:
description: Resources is a description of the volume's resources
and capacity.
type: object
secretRef:
description: SecretRef references the Secret containing the access
credentials to consume a Volume.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
storageClass:
description: StorageClass is the storage class of a volume
properties:
Expand Down

0 comments on commit 47f28e2

Please sign in to comment.