Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Update to latest serviceresolver crd
Browse files Browse the repository at this point in the history
  • Loading branch information
lkysow committed Sep 24, 2020
1 parent 2e91856 commit 66873f7
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
82 changes: 82 additions & 0 deletions templates/crd-serviceresolver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,88 @@ spec:
subset it applies to and the special string "*" is a wildcard that
applies to any subset not otherwise specified here.
type: object
loadBalancer:
description: LoadBalancer determines the load balancing policy and configuration
for services issuing requests to this upstream service.
properties:
hashPolicies:
description: HashPolicies is a list of hash policies to use for
hashing load balancing algorithms. Hash policies are evaluated
individually and combined such that identical lists result in
the same hash. If no hash policies are present, or none are successfully
evaluated, then a random backend host will be selected.
items:
properties:
cookieConfig:
description: CookieConfig contains configuration for the "cookie"
hash policy type.
properties:
path:
description: Path is the path to set for the cookie.
type: string
session:
description: Session generates a session cookie with no
expiration.
type: boolean
ttl:
description: TTL is the ttl for generated cookies. Cannot
be specified for session cookies.
format: int64
type: integer
type: object
field:
description: Field is the attribute type to hash on. Must
be one of "header", "cookie", or "query_parameter". Cannot
be specified along with sourceIP.
type: string
fieldValue:
description: FieldValue is the value to hash. ie. header name,
cookie name, URL query parameter name Cannot be specified
along with sourceIP.
type: string
sourceIP:
description: SourceIP determines whether the hash should be
of the source IP rather than of a field and field value.
Cannot be specified along with field or fieldValue.
type: boolean
terminal:
description: Terminal will short circuit the computation of
the hash when multiple hash policies are present. If a hash
is computed when a Terminal policy is evaluated, then that
hash will be used and subsequent hash policies will be ignored.
type: boolean
type: object
type: array
leastRequestConfig:
description: LeastRequestConfig contains configuration for the "leastRequest"
policy type.
properties:
choiceCount:
description: ChoiceCount determines the number of random healthy
hosts from which to select the one with the least requests.
format: int32
type: integer
type: object
policy:
description: Policy is the load balancing policy used to select
a host.
type: string
ringHashConfig:
description: RingHashConfig contains configuration for the "ringHash"
policy type.
properties:
maximumRingSize:
description: MaximumRingSize determines the maximum number of
entries in the hash ring.
format: int64
type: integer
minimumRingSize:
description: MinimumRingSize determines the minimum number of
entries in the hash ring.
format: int64
type: integer
type: object
type: object
redirect:
description: Redirect when configured, all attempts to resolve the service
this resolver defines will be substituted for the supplied redirect
Expand Down
1 change: 1 addition & 0 deletions test/acceptance/tests/connect/connect_inject_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func TestConnectInject(t *testing.T) {
"global.tls.enabled": strconv.FormatBool(c.secure),
"global.tls.enableAutoEncrypt": strconv.FormatBool(c.autoEncrypt),
"global.acls.manageSystemACLs": strconv.FormatBool(c.secure),
"global.image": "hashicorpdev/consul",
}

releaseName := helpers.RandomName()
Expand Down

0 comments on commit 66873f7

Please sign in to comment.