Skip to content

Commit

Permalink
Update nginx ingress schema
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Oct 26, 2023
1 parent a5dbbbe commit defdae4
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apis/installer/v1alpha1/ace_options_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ package v1alpha1

import "strings"

func (r RegistrySpec) Configured() bool {
return r.RegistryFQDN != ""
}

func (r RegistrySpec) DockerHubProxy() string {
addr := r.Proxies.DockerHub
if addr == "" {
Expand Down
12 changes: 12 additions & 0 deletions apis/installer/v1alpha1/ingress_nginx_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ type IngressNginxSpec struct {
Controller IngressNginxController `json:"controller"`
// +optional
TCP map[string]string `json:"tcp,omitempty"`
// +optional
DefaultBackend IngressNginxDefaultBackend `json:"defaultBackend"`
}

type IngressNginxDefaultBackend struct {
Enabled bool `json:"enabled"`
Name string `json:"name"`
Image IngressNginxDefaultBackendImage `json:"image"`
}

type IngressNginxDefaultBackendImage struct {
Registry string `json:"registry"`
}

type IngressNginxController struct {
Expand Down
32 changes: 32 additions & 0 deletions apis/installer/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 charts/ace/values.openapiv3_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5219,6 +5219,24 @@ properties:
- ingressClassResource
- networkPolicy
type: object
defaultBackend:
properties:
enabled:
type: boolean
image:
properties:
registry:
type: string
required:
- registry
type: object
name:
type: string
required:
- enabled
- image
- name
type: object
enabled:
type: boolean
tcp:
Expand Down
18 changes: 18 additions & 0 deletions schema/ingress-nginx/values.openapiv3_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,24 @@ properties:
- ingressClassResource
- networkPolicy
type: object
defaultBackend:
properties:
enabled:
type: boolean
image:
properties:
registry:
type: string
required:
- registry
type: object
name:
type: string
required:
- enabled
- image
- name
type: object
tcp:
additionalProperties:
type: string
Expand Down

0 comments on commit defdae4

Please sign in to comment.