Skip to content

Commit

Permalink
add make generate file
Browse files Browse the repository at this point in the history
Signed-off-by: yangyang <[email protected]>
  • Loading branch information
yangyy93 committed Oct 19, 2023
1 parent 50c6586 commit 72a9c13
Show file tree
Hide file tree
Showing 8 changed files with 943 additions and 12 deletions.
5 changes: 5 additions & 0 deletions apis/projectcontour/v1/zz_generated.deepcopy.go

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

5 changes: 5 additions & 0 deletions apis/projectcontour/v1alpha1/zz_generated.deepcopy.go

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

175 changes: 173 additions & 2 deletions examples/contour/01-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,76 @@ spec:
type: string
type: object
type: object
outlierDetection:
description: GlobalOutlierDetection defines the configuration for
outlier detection on all services. If defined, this will be used
as the default for all services.
properties:
baseEjectionTime:
description: BaseEjectionTime is the base time that a host is
ejected for. A host will remain ejected for a period of time
equal to the product of the ejection base duration and the number
of times the host has been ejected. Defaults to 30s.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
consecutiveLocalOriginFailure:
description: ConsecutiveLocalOriginFailure defines the number
of consecutive local origin failures before a consecutive local
origin ejection occurs. Parameters take effect only when SplitExternalLocalOriginErrors
is true. Defaults to 5.
format: int32
type: integer
consecutiveServerErrors:
description: ConsecutiveServerErrors defines The number of consecutive
server-side error responses before a consecutive 5xx ejection
occurs. When the backend host encounters consecutive errors
greater than or equal to ConsecutiveServerErrors, it will be
ejected from the load balancing pool. for HTTP services, a 5xx
counts as an error and for TCP services connection failures
and connection timeouts count as an error. It can be disabled
by setting the value to 0. Defaults to 5.
format: int32
type: integer
disabled:
description: Disabled configures the Service to not use the default
global OutlierDetection policy defined by the Contour configuration.
Defaults to false.
type: boolean
interval:
description: Interval is the interval at which host status is
evaluated. Defaults to 10s.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
maxEjectionPercent:
description: MaxEjectionPercent is the max percentage of hosts
in the load balancing pool for the upstream service that can
be ejected. But will eject at least one host regardless of the
value here. Defaults to 10%.
format: int32
maximum: 100
type: integer
maxEjectionTime:
description: MaxEjectionTime is the maximum time a host will be
ejected for. After this amount of time, a host will be returned
to normal operation. If not specified, the default value (300s)
or BaseEjectionTime value is applied, whatever is larger. Defaults
to 300s.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
maxEjectionTimeJitter:
description: MaxEjectionTimeJitter is The maximum amount of jitter
to add to the ejection time, in order to prevent a ‘thundering
herd’ effect where all proxies try to reconnect to host at the
same time. Defaults to 0s.
pattern: ^(((\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
splitExternalLocalOriginErrors:
default: false
description: SplitExternalLocalOriginErrors defines whether to
split the local origin errors from the external origin errors.
Defaults to false.
type: boolean
type: object
policy:
description: Policy specifies default policy applied if not overridden
by the user
Expand Down Expand Up @@ -4134,6 +4204,79 @@ spec:
type: string
type: object
type: object
outlierDetection:
description: GlobalOutlierDetection defines the configuration
for outlier detection on all services. If defined, this will
be used as the default for all services.
properties:
baseEjectionTime:
description: BaseEjectionTime is the base time that a host
is ejected for. A host will remain ejected for a period
of time equal to the product of the ejection base duration
and the number of times the host has been ejected. Defaults
to 30s.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
consecutiveLocalOriginFailure:
description: ConsecutiveLocalOriginFailure defines the number
of consecutive local origin failures before a consecutive
local origin ejection occurs. Parameters take effect only
when SplitExternalLocalOriginErrors is true. Defaults to
5.
format: int32
type: integer
consecutiveServerErrors:
description: ConsecutiveServerErrors defines The number of
consecutive server-side error responses before a consecutive
5xx ejection occurs. When the backend host encounters consecutive
errors greater than or equal to ConsecutiveServerErrors,
it will be ejected from the load balancing pool. for HTTP
services, a 5xx counts as an error and for TCP services
connection failures and connection timeouts count as an
error. It can be disabled by setting the value to 0. Defaults
to 5.
format: int32
type: integer
disabled:
description: Disabled configures the Service to not use the
default global OutlierDetection policy defined by the Contour
configuration. Defaults to false.
type: boolean
interval:
description: Interval is the interval at which host status
is evaluated. Defaults to 10s.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
maxEjectionPercent:
description: MaxEjectionPercent is the max percentage of hosts
in the load balancing pool for the upstream service that
can be ejected. But will eject at least one host regardless
of the value here. Defaults to 10%.
format: int32
maximum: 100
type: integer
maxEjectionTime:
description: MaxEjectionTime is the maximum time a host will
be ejected for. After this amount of time, a host will be
returned to normal operation. If not specified, the default
value (300s) or BaseEjectionTime value is applied, whatever
is larger. Defaults to 300s.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
maxEjectionTimeJitter:
description: MaxEjectionTimeJitter is The maximum amount of
jitter to add to the ejection time, in order to prevent
a ‘thundering herd’ effect where all proxies try to reconnect
to host at the same time. Defaults to 0s.
pattern: ^(((\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
splitExternalLocalOriginErrors:
default: false
description: SplitExternalLocalOriginErrors defines whether
to split the local origin errors from the external origin
errors. Defaults to false.
type: boolean
type: object
policy:
description: Policy specifies default policy applied if not overridden
by the user
Expand Down Expand Up @@ -6268,7 +6411,8 @@ spec:
type: string
outlierDetection:
description: The policy for managing outlier detection
on a service.
on a service. If not specified, the global OutlierDetection
policy will be used.
properties:
baseEjectionTime:
description: BaseEjectionTime is the base time that
Expand Down Expand Up @@ -6299,6 +6443,11 @@ spec:
to 5.
format: int32
type: integer
disabled:
description: Disabled configures the Service to not
use the default global OutlierDetection policy defined
by the Contour configuration. Defaults to false.
type: boolean
interval:
description: Interval is the interval at which host
status is evaluated. Defaults to 10s.
Expand All @@ -6322,6 +6471,14 @@ spec:
300s.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
maxEjectionTimeJitter:
description: MaxEjectionTimeJitter is The maximum
amount of jitter to add to the ejection time, in
order to prevent a ‘thundering herd’ effect where
all proxies try to reconnect to host at the same
time. Defaults to 0s.
pattern: ^(((\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
splitExternalLocalOriginErrors:
default: false
description: SplitExternalLocalOriginErrors defines
Expand Down Expand Up @@ -6728,7 +6885,8 @@ spec:
type: string
outlierDetection:
description: The policy for managing outlier detection on
a service.
a service. If not specified, the global OutlierDetection
policy will be used.
properties:
baseEjectionTime:
description: BaseEjectionTime is the base time that
Expand Down Expand Up @@ -6759,6 +6917,11 @@ spec:
to 5.
format: int32
type: integer
disabled:
description: Disabled configures the Service to not
use the default global OutlierDetection policy defined
by the Contour configuration. Defaults to false.
type: boolean
interval:
description: Interval is the interval at which host
status is evaluated. Defaults to 10s.
Expand All @@ -6782,6 +6945,14 @@ spec:
300s.
pattern: ^(((\d*(\.\d*)?h)|(\d*(\.\d*)?m)|(\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
maxEjectionTimeJitter:
description: MaxEjectionTimeJitter is The maximum amount
of jitter to add to the ejection time, in order to
prevent a ‘thundering herd’ effect where all proxies
try to reconnect to host at the same time. Defaults
to 0s.
pattern: ^(((\d*(\.\d*)?s)|(\d*(\.\d*)?ms))+)$
type: string
splitExternalLocalOriginErrors:
default: false
description: SplitExternalLocalOriginErrors defines
Expand Down
Loading

0 comments on commit 72a9c13

Please sign in to comment.