Skip to content

Commit 1b8e400

Browse files
Merge pull request #28302 from eggfoobar/add-optional-olm-fixes
OCPVE-723: Add optional olm fixes
2 parents d75ad27 + 202ba3f commit 1b8e400

34 files changed

+692
-61
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
github.com/onsi/ginkgo/v2 v2.9.2
2323
github.com/onsi/gomega v1.27.6
2424
github.com/opencontainers/go-digest v1.0.0
25-
github.com/openshift/api v0.0.0-20230915112357-693d4b64813c
25+
github.com/openshift/api v0.0.0-20231003083825-c3f7566f6ef6
2626
github.com/openshift/apiserver-library-go v0.0.0-20230915134751-5c71e94d6f05
2727
github.com/openshift/build-machinery-go v0.0.0-20220913142420-e25cf57ea46d
2828
github.com/openshift/client-go v0.0.0-20230915115245-53bd8980dfb7

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ github.com/opencontainers/runtime-spec v1.0.3-0.20220909204839-494a5a6aca78 h1:R
641641
github.com/opencontainers/runtime-spec v1.0.3-0.20220909204839-494a5a6aca78/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
642642
github.com/opencontainers/selinux v1.10.0 h1:rAiKF8hTcgLI3w0DHm6i0ylVVcOrlgR1kK99DRLDhyU=
643643
github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI=
644-
github.com/openshift/api v0.0.0-20230915112357-693d4b64813c h1:ro/BvvpAikMoZc/fsxJN6jxmK+4uIbdNIK9nwaFQ5xo=
645-
github.com/openshift/api v0.0.0-20230915112357-693d4b64813c/go.mod h1:NFgA+laiQtptmjsp1trDnGqjV62nYzlUfQ6P5I9oqXA=
644+
github.com/openshift/api v0.0.0-20231003083825-c3f7566f6ef6 h1:dLPcRvLeZs3ATgXCVrU/ZEVssHO5636sodMdJVAPPUQ=
645+
github.com/openshift/api v0.0.0-20231003083825-c3f7566f6ef6/go.mod h1:qNtV0315F+f8ld52TLtPvrfivZpdimOzTi3kn9IVbtU=
646646
github.com/openshift/apiserver-library-go v0.0.0-20230915134751-5c71e94d6f05 h1:FuFc6HV3MuhxAGcslIkLOXhOjvBjioloKbSD3cWMzeo=
647647
github.com/openshift/apiserver-library-go v0.0.0-20230915134751-5c71e94d6f05/go.mod h1:x2CP20tBy7PnNCy0N6LxwnNHwsiPBlmAqG4xemgemZ8=
648648
github.com/openshift/build-machinery-go v0.0.0-20220913142420-e25cf57ea46d h1:RR4ah7FfaPR1WePizm0jlrsbmPu91xQZnAsVVreQV1k=

test/extended/cli/explain.go

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,6 @@ var (
9191
{Group: "monitoring.coreos.com", Version: "v1", Resource: "servicemonitors"},
9292
{Group: "monitoring.coreos.com", Version: "v1", Resource: "thanosrulers"},
9393

94-
{Group: "operators.coreos.com", Version: "v1", Resource: "olmconfigs"},
95-
{Group: "operators.coreos.com", Version: "v1", Resource: "operators"},
96-
{Group: "operators.coreos.com", Version: "v1", Resource: "operatorconditions"},
97-
{Group: "operators.coreos.com", Version: "v1", Resource: "operatorgroups"},
98-
99-
{Group: "operators.coreos.com", Version: "v2", Resource: "operatorconditions"},
100-
101-
{Group: "operators.coreos.com", Version: "v1alpha1", Resource: "catalogsources"},
102-
{Group: "operators.coreos.com", Version: "v1alpha1", Resource: "clusterserviceversions"},
103-
{Group: "operators.coreos.com", Version: "v1alpha1", Resource: "installplans"},
104-
{Group: "operators.coreos.com", Version: "v1alpha1", Resource: "subscriptions"},
105-
{Group: "operators.coreos.com", Version: "v1alpha2", Resource: "operatorgroups"},
106-
107-
{Group: "packages.operators.coreos.com", Version: "v1", Resource: "packagemanifests"},
108-
10994
// openshift.io groups:
11095

11196
{Group: "apiserver.openshift.io", Version: "v1", Resource: "apirequestcounts"},
@@ -165,6 +150,24 @@ var (
165150

166151
{Group: "samples.operator.openshift.io", Version: "v1", Resource: "configs"},
167152
}
153+
154+
olmTypes = []schema.GroupVersionResource{
155+
{Group: "operators.coreos.com", Version: "v1", Resource: "olmconfigs"},
156+
{Group: "operators.coreos.com", Version: "v1", Resource: "operators"},
157+
{Group: "operators.coreos.com", Version: "v1", Resource: "operatorconditions"},
158+
{Group: "operators.coreos.com", Version: "v1", Resource: "operatorgroups"},
159+
160+
{Group: "operators.coreos.com", Version: "v2", Resource: "operatorconditions"},
161+
162+
{Group: "operators.coreos.com", Version: "v1alpha1", Resource: "catalogsources"},
163+
{Group: "operators.coreos.com", Version: "v1alpha1", Resource: "clusterserviceversions"},
164+
{Group: "operators.coreos.com", Version: "v1alpha1", Resource: "installplans"},
165+
{Group: "operators.coreos.com", Version: "v1alpha1", Resource: "subscriptions"},
166+
{Group: "operators.coreos.com", Version: "v1alpha2", Resource: "operatorgroups"},
167+
168+
{Group: "packages.operators.coreos.com", Version: "v1", Resource: "packagemanifests"},
169+
}
170+
168171
mcoTypes = []schema.GroupVersionResource{
169172
{Group: "machineconfiguration.openshift.io", Version: "v1", Resource: "containerruntimeconfigs"},
170173
{Group: "machineconfiguration.openshift.io", Version: "v1", Resource: "controllerconfigs"},
@@ -517,6 +520,8 @@ func getCrdTypes(oc *exutil.CLI) []schema.GroupVersionResource {
517520
crdTypes = append(crdTypes, metal3Types...)
518521
case configv1.ClusterVersionCapabilityNodeTuning:
519522
crdTypes = append(crdTypes, nodeTuningTypes...)
523+
case configv1.ClusterVersionCapabilityOperatorLifecycleManager:
524+
crdTypes = append(crdTypes, olmTypes...)
520525
}
521526
}
522527
}

test/extended/util/annotate/generated/zz_generated.annotations.go

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

test/extended/util/annotate/rules.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,13 @@ var (
240240
// Requires ImageRegistry service to be active for OCM to be able to create pull secrets
241241
`\[sig-devex\]\[Feature:OpenShiftControllerManager\] TestAutomaticCreationOfPullSecrets \[apigroup:config.openshift.io\]`,
242242
`\[sig-devex\]\[Feature:OpenShiftControllerManager\] TestDockercfgTokenDeletedController \[apigroup:image.openshift.io\]`,
243+
244+
// These tests run against OLM which does not exist when the optional OLM capability is disabled.
245+
`\[sig-operator\] OLM should Implement packages API server and list packagemanifest info with namespace not NULL`,
246+
`\[sig-operator\] OLM should be installed with`,
247+
`\[sig-operator\] OLM should have imagePullPolicy:IfNotPresent on thier deployments`,
248+
`\[sig-operator\] an end user can use OLM`,
249+
`\[sig-arch\] ocp payload should be based on existing source OLM`,
243250
},
244251
}
245252
)

vendor/github.com/openshift/api/.gitignore

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/openshift/api/Dockerfile.rhel8

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

vendor/github.com/openshift/api/Makefile

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

vendor/github.com/openshift/api/annotations/annotations.go

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

vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusterversion.crd.yaml

Lines changed: 5 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)