Skip to content

Commit

Permalink
feat: set default ignoredUnrecoverableEvents
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Kuznietsov <[email protected]>
  • Loading branch information
mkuznyetsov committed Sep 17, 2024
1 parent 436dad7 commit b225626
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion api/v2/checluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ type CheClusterDevEnvironments struct {
// if a transient cluster issue is triggering false-positives (for example, if
// the cluster occasionally encounters FailedScheduling events). Events listed
// here will not trigger workspace failures.
// +kubebuilder:default:={"FailedScheduling"}
// +optional
IgnoredUnrecoverableEvents []string `json:"ignoredUnrecoverableEvents,omitempty"`
IgnoredUnrecoverableEvents []string `json:"ignoredUnrecoverableEvents"`
// AllowedSources defines the allowed sources on which workspaces can be started.
// +optional
AllowedSources *AllowedSources `json:"allowedSources,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ metadata:
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/eclipse-che/che-operator
support: Eclipse Foundation
name: eclipse-che.v7.92.0-885.next
name: eclipse-che.v7.92.0-886.next
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -1035,7 +1035,7 @@ spec:
minKubeVersion: 1.19.0
provider:
name: Eclipse Foundation
version: 7.92.0-885.next
version: 7.92.0-886.next
webhookdefinitions:
- admissionReviewVersions:
- v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7025,6 +7025,8 @@ spec:
type: object
type: object
ignoredUnrecoverableEvents:
default:
- FailedScheduling
description: |-
IgnoredUnrecoverableEvents defines a list of Kubernetes event names that should
be ignored when deciding to fail a workspace that is starting. This option should be used
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/org.eclipse.che_checlusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6978,6 +6978,8 @@ spec:
type: object
type: object
ignoredUnrecoverableEvents:
default:
- FailedScheduling
description: |-
IgnoredUnrecoverableEvents defines a list of Kubernetes event names that should
be ignored when deciding to fail a workspace that is starting. This option should be used
Expand Down
2 changes: 2 additions & 0 deletions deploy/deployment/kubernetes/combined.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6999,6 +6999,8 @@ spec:
type: object
type: object
ignoredUnrecoverableEvents:
default:
- FailedScheduling
description: |-
IgnoredUnrecoverableEvents defines a list of Kubernetes event names that should
be ignored when deciding to fail a workspace that is starting. This option should be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6994,6 +6994,8 @@ spec:
type: object
type: object
ignoredUnrecoverableEvents:
default:
- FailedScheduling
description: |-
IgnoredUnrecoverableEvents defines a list of Kubernetes event names that should
be ignored when deciding to fail a workspace that is starting. This option should be used
Expand Down
2 changes: 2 additions & 0 deletions deploy/deployment/openshift/combined.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6999,6 +6999,8 @@ spec:
type: object
type: object
ignoredUnrecoverableEvents:
default:
- FailedScheduling
description: |-
IgnoredUnrecoverableEvents defines a list of Kubernetes event names that should
be ignored when deciding to fail a workspace that is starting. This option should be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6994,6 +6994,8 @@ spec:
type: object
type: object
ignoredUnrecoverableEvents:
default:
- FailedScheduling
description: |-
IgnoredUnrecoverableEvents defines a list of Kubernetes event names that should
be ignored when deciding to fail a workspace that is starting. This option should be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6994,6 +6994,8 @@ spec:
type: object
type: object
ignoredUnrecoverableEvents:
default:
- FailedScheduling
description: |-
IgnoredUnrecoverableEvents defines a list of Kubernetes event names that should
be ignored when deciding to fail a workspace that is starting. This option should be used
Expand Down

0 comments on commit b225626

Please sign in to comment.