Skip to content

Commit

Permalink
fix: omit empty dataStoreName (#111)
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Hros <[email protected]>
  • Loading branch information
chess-knight authored Jun 27, 2024
1 parent aee0d28 commit f2d7fae
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/kamajicontrolplane_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ type DeploymentComponent struct {
type KamajiControlPlaneFields struct {
// The Kamaji DataStore to use for the given TenantControlPlane.
// Retrieve the list of the allowed ones by issuing "kubectl get datastores.kamaji.clastix.io".
DataStoreName string `json:"dataStoreName"`
DataStoreName string `json:"dataStoreName,omitempty"`
// The addons that must be managed by Kamaji, such as CoreDNS, kube-proxy, and konnectivity.
Addons AddonsSpec `json:"addons,omitempty"`
// List of the admission controllers to configure for the TenantControlPlane kube-apiserver.
Expand Down
3 changes: 0 additions & 3 deletions config/control-plane-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6532,7 +6532,6 @@ spec:
description: Version defines the desired Kubernetes version.
type: string
required:
- dataStoreName
- version
type: object
status:
Expand Down Expand Up @@ -13181,8 +13180,6 @@ spec:
type: object
type: object
type: object
required:
- dataStoreName
type: object
required:
- spec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6819,7 +6819,6 @@ spec:
description: Version defines the desired Kubernetes version.
type: string
required:
- dataStoreName
- version
type: object
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6920,8 +6920,6 @@ spec:
type: object
type: object
type: object
required:
- dataStoreName
type: object
required:
- spec
Expand Down

0 comments on commit f2d7fae

Please sign in to comment.