Skip to content

Commit

Permalink
USHIFT-2443: Add expose config parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pacevedom committed Apr 12, 2024
1 parent 3f0ebd9 commit 1ab555e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
8 changes: 8 additions & 0 deletions cmd/generate-config/config/config-openapi-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,19 @@
"ingress": {
"type": "object",
"required": [
"expose",
"ports",
"routeAdmissionPolicy",
"status"
],
"properties": {
"expose": {
"description": "List of NIC names and IP addresses where the router will be listening. Defaults to the IPs in the host.",
"type": "array",
"items": {
"type": "string"
}
},
"ports": {
"type": "object",
"required": [
Expand Down
4 changes: 4 additions & 0 deletions docs/user/howto_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ dns:
etcd:
memoryLimitMB: 0
ingress:
expose:
- ""
ports:
http: 0
https: 0
Expand Down Expand Up @@ -71,6 +73,8 @@ dns:
etcd:
memoryLimitMB: 0
ingress:
expose:
- ""
ports:
http: 80
https: 443
Expand Down
3 changes: 3 additions & 0 deletions packaging/microshift/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ etcd:
# Set a memory limit on the etcd process; etcd will begin paging memory when it gets to this value. 0 means no limit.
memoryLimitMB: 0
ingress:
# List of NIC names and IP addresses where the router will be listening. Defaults to the IPs in the host.
expose:
- ""
ports:
# Default router http port. Must be in range 1-65535.
http: 80
Expand Down
13 changes: 8 additions & 5 deletions pkg/config/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ type IngressStatusEnum string
type IngressConfig struct {
// Default router status, can be Managed or Removed.
// +kubebuilder:default=Managed
Status IngressStatusEnum `json:"status"`
AdmissionPolicy RouteAdmissionPolicy `json:"routeAdmissionPolicy"`
Ports IngressPortsConfig `json:"ports"`
ServingCertificate []byte `json:"-"`
ServingKey []byte `json:"-"`
Status IngressStatusEnum `json:"status"`
AdmissionPolicy RouteAdmissionPolicy `json:"routeAdmissionPolicy"`
Ports IngressPortsConfig `json:"ports"`
// List of NIC names and IP addresses where the router will be listening.
// Defaults to the IPs in the host.
Expose []string `json:"expose"`
ServingCertificate []byte `json:"-"`
ServingKey []byte `json:"-"`
}

type RouteAdmissionPolicy struct {
Expand Down

0 comments on commit 1ab555e

Please sign in to comment.