Skip to content

Commit

Permalink
Add ProgressDeadlineSeconds API
Browse files Browse the repository at this point in the history
  • Loading branch information
maruina committed Aug 14, 2021
1 parent 6e5a0a3 commit b6f217e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/v1alpha1/progressivesync_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ type ProgressiveSyncSpec struct {
// SourceRef defines the resource, example an ApplicationSet, which owns ArgoCD Applications
//+kubebuilder:validation:Required
SourceRef corev1.TypedLocalObjectReference `json:"sourceRef"`

// ProgressDeadlineSeconds defines the maximum time in seconds
// for a ProgressiveSync object to make progress before it is marked as failed
//+kubebuilder:validation:Optional
//+kubebuilder:validation:Minimum=0
ProgressDeadlineSeconds int32 `json:"progressDeadlineSeconds,omitempty"`

// Stages defines a list of Progressive Rollout stages
//+kubebuilder:validation:Optional
Stages []ProgressiveSyncStage `json:"stages,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ spec:
spec:
description: ProgressiveSyncSpec defines the desired state of ProgressiveSync
properties:
progressDeadlineSeconds:
description: ProgressDeadlineSeconds defines the maximum time in seconds
for a ProgressiveSync object to make progress before it is marked
as failed
format: int32
minimum: 0
type: integer
sourceRef:
description: SourceRef defines the resource, example an ApplicationSet,
which owns ArgoCD Applications
Expand Down

0 comments on commit b6f217e

Please sign in to comment.