Skip to content

Commit

Permalink
Merge pull request #12 from SAP/processing-timeout
Browse files Browse the repository at this point in the history
add processing timeout
  • Loading branch information
cbarbian-sap authored Aug 27, 2024
2 parents 216d448 + 9a69050 commit 926181b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type ComponentSpec struct {
component.ClientSpec `json:",inline"`
component.RequeueSpec `json:",inline"`
component.RetrySpec `json:",inline"`
component.TimeoutSpec `json:",inline"`
// +required
SourceRef SourceReference `json:"sourceRef"`
Revision string `json:"revision,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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

8 changes: 8 additions & 0 deletions crds/core.cs.sap.com_components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ spec:
- name
type: object
type: object
timeout:
pattern: ^([0-9]+(\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$
type: string
values:
x-kubernetes-preserve-unknown-fields: true
valuesFrom:
Expand Down Expand Up @@ -338,6 +341,11 @@ spec:
observedGeneration:
format: int64
type: integer
processingDigest:
type: string
processingSince:
format: date-time
type: string
state:
description: Component state. Can be one of 'Ready', 'Pending', 'Processing',
'DeletionPending', 'Deleting', 'Error'.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/fluxcd/source-controller/api v1.3.0
github.com/getsops/sops/v3 v3.8.1
github.com/pkg/errors v0.9.1
github.com/sap/component-operator-runtime v0.3.32
github.com/sap/component-operator-runtime v0.3.34
github.com/sap/go-generics v0.2.13
k8s.io/apiextensions-apiserver v0.30.2
k8s.io/apimachinery v0.30.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ryanuber/go-glob v1.0.0 h1:iQh3xXAumdQ+4Ufa5b25cRpC5TYKlno6hsv6Cb3pkBk=
github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc=
github.com/sap/component-operator-runtime v0.3.32 h1:V7zuyLoNeZYytpY45GtdmzdW8YmGonDH+gcKU3k/tZk=
github.com/sap/component-operator-runtime v0.3.32/go.mod h1:nvtWaSpVyb+2d+AWhHPjyr187/yrt9ssVH7DxMyGkrU=
github.com/sap/component-operator-runtime v0.3.34 h1:ewqs6mAQxYlBGsXffBkBWcwpZTPr6YL12NNBakQ/sn0=
github.com/sap/component-operator-runtime v0.3.34/go.mod h1:nvtWaSpVyb+2d+AWhHPjyr187/yrt9ssVH7DxMyGkrU=
github.com/sap/go-generics v0.2.13 h1:rSED7M+S7aw/9AomJq7omjgZtwvoixHsfVbOiCWs4cM=
github.com/sap/go-generics v0.2.13/go.mod h1:G6v+AnJtKlUGB/ATd+zdUcosvBdUSyrHg7/kn5UKgx8=
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
Expand Down

0 comments on commit 926181b

Please sign in to comment.