Skip to content

Commit

Permalink
Merge pull request #1010 from AnishShah/master
Browse files Browse the repository at this point in the history
Add HealthCheckConfig to v1beta1 BackendConfig CRD
  • Loading branch information
k8s-ci-robot authored Jan 30, 2020
2 parents 541ea6a + c3f1685 commit 5277ffd
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/apis/backendconfig/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type BackendConfigSpec struct {
ConnectionDraining *ConnectionDrainingConfig `json:"connectionDraining,omitempty"`
SessionAffinity *SessionAffinityConfig `json:"sessionAffinity,omitempty"`
CustomRequestHeaders *CustomRequestHeadersConfig `json:"customRequestHeaders,omitempty"`
HealthCheck *HealthCheckConfig `json:"healthCheck,omitempty"`
}

// BackendConfigStatus is the status for a BackendConfig resource
Expand Down Expand Up @@ -132,3 +133,15 @@ type SessionAffinityConfig struct {
type CustomRequestHeadersConfig struct {
Headers []string `json:"headers,omitempty"`
}

// HealthCheckConfig contains configuration for the health check.
// +k8s:openapi-gen=true
type HealthCheckConfig struct {
CheckIntervalSec *int64 `json:"checkIntervalSec,omitempty"`
TimeoutSec *int64 `json:"timeoutSec,omitempty"`
HealthyThreshold *int64 `json:"healthyThreshold,omitempty"`
UnhealthyThreshold *int64 `json:"unhealthyThreshold,omitempty"`
Type *string `json:"type,omitempty"`
Port *int64 `json:"port,omitempty"`
RequestPath *string `json:"requestPath,omitempty"`
}
56 changes: 56 additions & 0 deletions pkg/apis/backendconfig/v1beta1/zz_generated.deepcopy.go

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

0 comments on commit 5277ffd

Please sign in to comment.