Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions api/gateway/v1alpha1/gatewayconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
core "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kmapi "kmodules.xyz/client-go/api/v1"
"kmodules.xyz/resource-metadata/apis/shared"
uiapi "kmodules.xyz/resource-metadata/apis/ui/v1alpha1"
dnsapi "kubeops.dev/external-dns-operator/apis/external/v1alpha1"
voyagerinstaller "voyagermesh.dev/installer/apis/installer/v1alpha1"
Expand All @@ -29,7 +30,8 @@ import (
// GatewayConfigSpec defines the desired state of GatewayConfig.
type GatewayConfigSpec struct {
GatewaySpec `json:",inline"`
Envoy EnvoySpec `json:"envoy"`
Envoy EnvoySpec `json:"envoy"`
Global GlobalValues `json:"global"`
// Chart specifies the chart information that will be used by the FluxCD to install the respective feature
// +optional
Chart uiapi.ChartInfo `json:"chart,omitempty"`
Expand All @@ -47,9 +49,14 @@ type GatewaySpec struct {

type GatewayValues struct {
GatewaySpec `json:",inline"`
Envoy EnvoyValues `json:"envoy"`
Envoy EnvoyValues `json:"envoy"`
Global GlobalValues `json:"global"`
}

type GlobalValues struct {
// +optional
Distro shared.DistroSpec `json:"distro"`
}
type GatewayParameter struct {
GatewayClassName string `json:"-"`
ServiceType egv1a1.ServiceType `json:"-"`
Expand Down
18 changes: 18 additions & 0 deletions api/gateway/v1alpha1/zz_generated.deepcopy.go

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

18 changes: 18 additions & 0 deletions crds/gateway.catalog.appscode.com_gatewayconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9325,6 +9325,23 @@ spec:
required:
- enabled
type: object
global:
properties:
distro:
properties:
openshift:
type: boolean
ubi:
enum:
- all
- catalog
- operator
type: string
required:
- openshift
- ubi
type: object
type: object
infra:
properties:
dns:
Expand Down Expand Up @@ -9496,6 +9513,7 @@ spec:
- envoy
- gateway
- gateway-dns
- global
- infra
type: object
type: object
Expand Down
Loading