Skip to content

Commit c22164f

Browse files
fgilouxperdasilva
authored andcommitted
Added field for optional manifests (openshift#209)
Signed-off-by: Frederic Giloux <[email protected]> Upstream-repository: api Upstream-commit: 6b187a1d09082142fa12758e1748a132bfe2d79c
1 parent 7b75ab3 commit c22164f

File tree

7 files changed

+12
-2
lines changed

7 files changed

+12
-2
lines changed

manifests/0000_50_olm_00-installplans.crd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ spec:
224224
- resource
225225
- status
226226
properties:
227+
optional:
228+
type: boolean
227229
resolving:
228230
type: string
229231
resource:

staging/api/crds/operators.coreos.com_installplans.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ spec:
222222
- resource
223223
- status
224224
properties:
225+
optional:
226+
type: boolean
225227
resolving:
226228
type: string
227229
resource:

staging/api/crds/zz_defs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const (
7171
StepStatusNotPresent StepStatus = "NotPresent"
7272
StepStatusPresent StepStatus = "Present"
7373
StepStatusCreated StepStatus = "Created"
74+
StepStatusNotCreated StepStatus = "NotCreated"
7475
StepStatusWaitingForAPI StepStatus = "WaitingForApi"
7576
StepStatusUnsupportedResource StepStatus = "UnsupportedResource"
7677
)
@@ -227,6 +228,7 @@ func ConditionMet(cond InstallPlanConditionType, now *metav1.Time) InstallPlanCo
227228
type Step struct {
228229
Resolving string `json:"resolving"`
229230
Resource StepResource `json:"resource"`
231+
Optional bool `json:"optional,omitempty"`
230232
Status StepStatus `json:"status"`
231233
}
232234

vendor/github.com/operator-framework/api/crds/operators.coreos.com_installplans.yaml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/operator-framework/api/crds/zz_defs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/installplan_types.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)