Skip to content

Commit 5d71789

Browse files
authored
Merge pull request #94 from PDOK/remove_api_group
Remove APIGroup from dataSource and change default storage class (for volumes created by the volume-operator)
2 parents 2e68983 + 9c39ea6 commit 5d71789

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

api/v1alpha1/ogcapi_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ type VolumeOperatorSpec struct {
8383
// +kubebuilder:default:="1Gi"
8484
StorageCapacity string `json:"storageCapacity,omitempty"`
8585

86-
// The storage class to use for the volumes created by the volume operator, defaults to zrs-managed-premium
87-
// +kubebuilder:default:="zrs-managed-premium"
86+
// The storage class to use for the volumes created by the volume operator, defaults to managed-premium
87+
// +kubebuilder:default:="managed-premium"
8888
StorageClass string `json:"storageClass,omitempty"`
8989

9090
// +kubebuilder:validation:Optional

config/crd/bases/pdok.nl_ogcapis.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8512,9 +8512,9 @@ spec:
85128512
by the volume operator, min: 1Gi'
85138513
type: string
85148514
storageClass:
8515-
default: zrs-managed-premium
8515+
default: managed-premium
85168516
description: The storage class to use for the volumes created by the
8517-
volume operator, defaults to zrs-managed-premium
8517+
volume operator, defaults to managed-premium
85188518
type: string
85198519
required:
85208520
- blobPrefix

internal/controller/ogcapi_controller.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,8 @@ func addVolumePopulatorToDeployment(deployment *appsv1.Deployment, ogcAPI *pdokn
404404
},
405405
},
406406
DataSource: &corev1.TypedLocalObjectReference{
407-
APIGroup: smoothoperatorutil.Pointer("v1"),
408-
Kind: "PersistentVolumeClaim",
409-
Name: hash,
407+
Kind: "PersistentVolumeClaim",
408+
Name: hash,
410409
},
411410
},
412411
},

0 commit comments

Comments
 (0)