Skip to content

Commit 886113c

Browse files
committed
refactor(api)!: making ingress optional
1 parent 5980074 commit 886113c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

api/v1alpha1/tenantcontrolplane_types.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@ type ControlPlane struct {
6464
// Defining the options for the Tenant Control Plane Service resource.
6565
Service ServiceSpec `json:"service"`
6666
// Defining the options for an Optional Ingress which will expose API Server of the Tenant Control Plane
67-
Ingress IngressSpec `json:"ingress,omitempty"`
67+
Ingress *IngressSpec `json:"ingress,omitempty"`
6868
}
6969

7070
// IngressSpec defines the options for the ingress which will expose API Server of the Tenant Control Plane.
7171
type IngressSpec struct {
7272
AdditionalMetadata AdditionalMetadata `json:"additionalMetadata,omitempty"`
73-
Enabled bool `json:"enabled"`
7473
IngressClassName string `json:"ingressClassName,omitempty"`
7574
// Hostname is an optional field which will be used as Ingress's Host. If it is not defined,
7675
// Ingress's host will be "<tenant>.<namespace>.<domain>", where domain is specified under NetworkProfileSpec

api/v1alpha1/zz_generated.deepcopy.go

+5-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)