You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/v1alpha1/tenantcontrolplane_types.go
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -297,6 +297,14 @@ type AddonsSpec struct {
297
297
KubeProxy*AddonSpec`json:"kubeProxy,omitempty"`
298
298
}
299
299
300
+
// DataStoreOverride defines which kubernetes resource will be stored in a dedicated datastore.
301
+
typeDataStoreOverridestruct {
302
+
// Resource specifies which kubernetes resource to target.
303
+
Resourcestring`json:"resource,omitempty"`
304
+
// DataStore specifies the DataStore that should be used to store the Kubernetes data for the given Resource.
305
+
DataStorestring`json:"dataStore,omitempty"`
306
+
}
307
+
300
308
// TenantControlPlaneSpec defines the desired state of TenantControlPlane.
301
309
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.dataStore) || has(self.dataStore)", message="unsetting the dataStore is not supported"
302
310
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.dataStoreSchema) || has(self.dataStoreSchema)", message="unsetting the dataStoreSchema is not supported"
@@ -324,8 +332,10 @@ type TenantControlPlaneSpec struct {
324
332
// to the user to avoid clashes between different TenantControlPlanes. If not set upon creation, Kamaji will default the
325
333
// DataStoreUsername by concatenating the namespace and name of the TenantControlPlane.
326
334
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="changing the dataStoreUsername is not supported"
0 commit comments