Skip to content

Commit

Permalink
feat: add new fields in upstreams of kong 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
randmonkey committed Aug 15, 2022
1 parent bd9b3b2 commit 9ef6325
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions kong/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,21 +218,25 @@ type UpstreamNodeHealth struct {
// Upstream represents an Upstream in Kong.
// +k8s:deepcopy-gen=true
type Upstream struct {
ID *string `json:"id,omitempty" yaml:"id,omitempty"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
HostHeader *string `json:"host_header,omitempty" yaml:"host_header,omitempty"`
ClientCertificate *Certificate `json:"client_certificate,omitempty" yaml:"client_certificate,omitempty"`
Algorithm *string `json:"algorithm,omitempty" yaml:"algorithm,omitempty"`
Slots *int `json:"slots,omitempty" yaml:"slots,omitempty"`
Healthchecks *Healthcheck `json:"healthchecks,omitempty" yaml:"healthchecks,omitempty"`
CreatedAt *int64 `json:"created_at,omitempty" yaml:"created_at,omitempty"`
HashOn *string `json:"hash_on,omitempty" yaml:"hash_on,omitempty"`
HashFallback *string `json:"hash_fallback,omitempty" yaml:"hash_fallback,omitempty"`
HashOnHeader *string `json:"hash_on_header,omitempty" yaml:"hash_on_header,omitempty"`
HashFallbackHeader *string `json:"hash_fallback_header,omitempty" yaml:"hash_fallback_header,omitempty"`
HashOnCookie *string `json:"hash_on_cookie,omitempty" yaml:"hash_on_cookie,omitempty"`
HashOnCookiePath *string `json:"hash_on_cookie_path,omitempty" yaml:"hash_on_cookie_path,omitempty"`
Tags []*string `json:"tags,omitempty" yaml:"tags,omitempty"`
ID *string `json:"id,omitempty" yaml:"id,omitempty"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
HostHeader *string `json:"host_header,omitempty" yaml:"host_header,omitempty"`
ClientCertificate *Certificate `json:"client_certificate,omitempty" yaml:"client_certificate,omitempty"`
Algorithm *string `json:"algorithm,omitempty" yaml:"algorithm,omitempty"`
Slots *int `json:"slots,omitempty" yaml:"slots,omitempty"`
Healthchecks *Healthcheck `json:"healthchecks,omitempty" yaml:"healthchecks,omitempty"`
CreatedAt *int64 `json:"created_at,omitempty" yaml:"created_at,omitempty"`
HashOn *string `json:"hash_on,omitempty" yaml:"hash_on,omitempty"`
HashFallback *string `json:"hash_fallback,omitempty" yaml:"hash_fallback,omitempty"`
HashOnHeader *string `json:"hash_on_header,omitempty" yaml:"hash_on_header,omitempty"`
HashFallbackHeader *string `json:"hash_fallback_header,omitempty" yaml:"hash_fallback_header,omitempty"`
HashOnCookie *string `json:"hash_on_cookie,omitempty" yaml:"hash_on_cookie,omitempty"`
HashOnCookiePath *string `json:"hash_on_cookie_path,omitempty" yaml:"hash_on_cookie_path,omitempty"`
HashOnQueryArg *string `json:"hash_on_query_arg,omitempty" yaml:"hash_on_query_arg,omitempty"`
HashFallbackQueryArg *string `json:"hash_fallback_query_arg,omitempty" yaml:"hash_fallback_query_arg,omitempty"` // nolint:lll
HashOnURICapture *string `json:"hash_on_uri_capture,omitempty" yaml:"hash_on_uri_capture,omitempty"`
HashFallbackURICapture *string `json:"hash_fallback_uri_capture,omitempty" yaml:"hash_fallback_uri_capture,omitempty"` // nolint:lll
Tags []*string `json:"tags,omitempty" yaml:"tags,omitempty"`
}

// Target represents a Target in Kong.
Expand Down

0 comments on commit 9ef6325

Please sign in to comment.