Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add packagemanifest CRD in test ENV
Signed-off-by: Daniel Fan <[email protected]>
  • Loading branch information
Daniel-Fan committed Sep 16, 2024
commit b7cd9ba1ca56c25a5acc15f55151d674628d4023
3 changes: 3 additions & 0 deletions common/Makefile.common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ fetch-test-crds:
tar -zxf v${NAMESPACESCOPE_VERSION}.tar.gz ibm-namespace-scope-operator-${NAMESPACESCOPE_VERSION}/bundle/manifests && mv ibm-namespace-scope-operator-${NAMESPACESCOPE_VERSION}/bundle/manifests/operator.ibm.com_namespacescopes.yaml ${ENVCRDS_DIR}/operator.ibm.com_namespacescopes.yaml ;\
rm -rf ibm-namespace-scope-operator-${NAMESPACESCOPE_VERSION} v${NAMESPACESCOPE_VERSION}.tar.gz ;\
}
@{ \
cp ./controllers/testutil/packagemanifests_crd.yaml ${ENVCRDS_DIR}/packagemanifests_crd.yaml ;\
}


CONTROLLER_GEN ?= $(shell pwd)/common/bin/controller-gen
Expand Down
164 changes: 164 additions & 0 deletions controllers/testutil/packagemanifests_crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: packagemanifests.packages.operators.coreos.com
spec:
group: packages.operators.coreos.com
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
status:
type: object
properties:
catalogSource:
type: string
catalogSourceDisplayName:
type: string
catalogSourcePublisher:
type: string
catalogSourceNamespace:
type: string
provider:
type: object
properties:
name:
type: string
url:
type: string
packageName:
type: string
deprecation:
type: object
properties:
message:
type: string
channels:
type: array
items:
type: object
properties:
name:
type: string
currentCSV:
type: string
currentCSVDesc:
type: object
properties:
displayName:
type: string
icon:
type: array
items:
type: object
properties:
base64data:
type: string
mediatype:
type: string
version:
type: object
properties:
version:
type: string
provider:
type: object
properties:
name:
type: string
url:
type: string
annotations:
type: object
additionalProperties:
type: string
keywords:
type: array
items:
type: string
links:
type: array
items:
type: object
properties:
name:
type: string
url:
type: string
maintainers:
type: array
items:
type: object
properties:
name:
type: string
email:
type: string
maturity:
type: string
longDescription:
type: string
installModes:
type: array
items:
type: object
properties:
type:
type: string
supported:
type: boolean
customResourceDefinitions:
type: object
apiServiceDefinitions:
type: object
nativeAPIs:
type: array
items:
type: object
properties:
group:
type: string
version:
type: string
kind:
type: string
minKubeVersion:
type: string
relatedImages:
type: array
items:
type: string
deprecation:
type: object
properties:
message:
type: string
entries:
type: array
items:
type: object
properties:
name:
type: string
version:
type: string
deprecation:
type: object
properties:
message:
type: string
defaultChannel:
type: string
names:
plural: packagemanifests
singular: packagemanifest
kind: PackageManifest
shortNames:
- pm
scope: Namespaced