Skip to content

Commit 81b27ac

Browse files
committed
Generation should not be a required field
In the InstallPlan, the Generation field should not be required and may be omitted. Bugzilla Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1825349
1 parent 2248cc6 commit 81b27ac

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

deploy/chart/templates/0000_50_olm_04-installplan.crd.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ spec:
6767
- approval
6868
- approved
6969
- clusterServiceVersionNames
70-
- generation
7170
properties:
7271
approval:
7372
description: Approval is the user approval policy for an InstallPlan.

manifests/0000_50_olm_04-installplan.crd.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ spec:
6767
- approval
6868
- approved
6969
- clusterServiceVersionNames
70-
- generation
7170
properties:
7271
approval:
7372
description: Approval is the user approval policy for an InstallPlan.
@@ -301,4 +300,3 @@ spec:
301300
description: StepStatus is the current status of a particular
302301
resource an in InstallPlan
303302
type: string
304-

pkg/api/apis/operators/v1alpha1/installplan_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type InstallPlanSpec struct {
2828
ClusterServiceVersionNames []string `json:"clusterServiceVersionNames"`
2929
Approval Approval `json:"approval"`
3030
Approved bool `json:"approved"`
31-
Generation int `json:"generation"`
31+
Generation int `json:"generation,omitempty"`
3232
}
3333

3434
// InstallPlanPhase is the current status of a InstallPlan as a whole.

0 commit comments

Comments
 (0)