Skip to content

Commit

Permalink
Add timeout for each step of ES ops request (#742)
Browse files Browse the repository at this point in the history
Signed-off-by: kamolhasan <kamol@appscode.com>
  • Loading branch information
Md Kamol Hasan committed Jun 5, 2021
1 parent cc6b969 commit 29627ec
Show file tree
Hide file tree
Showing 9 changed files with 335 additions and 257 deletions.
2 changes: 2 additions & 0 deletions apis/ops/v1alpha1/elasticsearch_ops_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ type ElasticsearchOpsRequestSpec struct {
TLS *TLSSpec `json:"tls,omitempty" protobuf:"bytes,8,opt,name=tls"`
// Specifies information necessary for restarting database
Restart *RestartSpec `json:"restart,omitempty" protobuf:"bytes,9,opt,name=restart"`
// Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.
Timeout *metav1.Duration `json:"timeout,omitempty" protobuf:"bytes,10,opt,name=timeout"`
}

type ElasticsearchUpgradeSpec struct {
Expand Down
558 changes: 306 additions & 252 deletions apis/ops/v1alpha1/generated.pb.go

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions apis/ops/v1alpha1/generated.proto

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

8 changes: 7 additions & 1 deletion apis/ops/v1alpha1/openapi_generated.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/ops/v1alpha1/zz_generated.deepcopy.go

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

8 changes: 4 additions & 4 deletions crds/bindata.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions crds/ops.kubedb.com_elasticsearchopsrequests.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ spec:
type: object
restart:
type: object
timeout:
type: string
tls:
properties:
certificates:
Expand Down
2 changes: 2 additions & 0 deletions crds/ops.kubedb.com_elasticsearchopsrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ spec:
type: object
restart:
type: object
timeout:
type: string
tls:
properties:
certificates:
Expand Down
4 changes: 4 additions & 0 deletions openapi/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -31713,6 +31713,10 @@
"description": "Specifies information necessary for restarting database",
"$ref": "#/definitions/dev.kubedb.apimachinery.apis.ops.v1alpha1.RestartSpec"
},
"timeout": {
"description": "Timeout for each step of the ops request in second. If a step doesn't finish within the specified timeout, the ops request will result in failure.",
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Duration"
},
"tls": {
"description": "Specifies information necessary for configuring TLS",
"$ref": "#/definitions/dev.kubedb.apimachinery.apis.ops.v1alpha1.TLSSpec"
Expand Down

0 comments on commit 29627ec

Please sign in to comment.