-
Notifications
You must be signed in to change notification settings - Fork 261
Remove redundant validateOwnedCRDs impl #650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...e/invalid_manifests_bundle/invalid_bundle_3/etcdbackups.etcd.database.coreos.com.crd.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: apiextensions.k8s.io/v1beta1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: etcdbackups.etcd.database.coreos.com | ||
| spec: | ||
| group: etcd.database.coreos.com | ||
| names: | ||
| kind: EtcdBackup | ||
| listKind: EtcdBackupList | ||
| plural: etcdbackups | ||
| singular: etcdbackup | ||
| scope: Namespaced | ||
| version: v1beta2 |
26 changes: 26 additions & 0 deletions
26
.../invalid_manifests_bundle/invalid_bundle_3/etcdclusters.etcd.database.coreos.com.crd.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| apiVersion: apiextensions.k8s.io/v1beta1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: etcdclusters.etcd.database.coreos.com | ||
| spec: | ||
| group: etcd.database.coreos.com | ||
| names: | ||
| kind: EtcdCluster | ||
| listKind: EtcdClusterList | ||
| plural: etcdclusters | ||
| shortNames: | ||
| - etcdclus | ||
| - etcd | ||
| singular: etcdcluster | ||
| scope: Namespaced | ||
| version: v1beta2 | ||
| validation: | ||
| openAPIV3Schema: | ||
| properties: | ||
| spec: | ||
| type: object | ||
| properties: | ||
| test: | ||
| type: integer | ||
| minimum: 1 | ||
| maximum: 32767 |
309 changes: 309 additions & 0 deletions
309
.../invalid_manifests_bundle/invalid_bundle_3/etcdoperator.v0.9.4.clusterserviceversion.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
pkg/lib/bundle/testdata/validate/invalid_manifests_bundle/invalid_bundle_3/etcdpdb.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| apiVersion: policy/v1beta1 | ||
| kind: PodDisruptionBudget | ||
| metadata: | ||
| name: etcd-pdb | ||
| spec: | ||
| minAvailable: 100% | ||
| selector: | ||
| matchLabels: | ||
| app: etcd |
13 changes: 13 additions & 0 deletions
13
.../invalid_manifests_bundle/invalid_bundle_3/etcdrestores.etcd.database.coreos.com.crd.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: apiextensions.k8s.io/v1beta1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: etcdrestores.etcd.database.coreos.com | ||
| spec: | ||
| group: etcd.database.coreos.com | ||
| names: | ||
| kind: EtcdRestore | ||
| listKind: EtcdRestoreList | ||
| plural: etcdrestores | ||
| singular: etcdrestore | ||
| scope: Namespaced | ||
| version: v1beta2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
192 changes: 192 additions & 0 deletions
192
...te/missing_annotations/manifests/lib-bucket-provisioner.v1.0.0.clusterserviceversion.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
88 changes: 88 additions & 0 deletions
88
...stdata/validate/missing_annotations/manifests/objectbucketclaims.objectbucket.io.crd.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| apiVersion: apiextensions.k8s.io/v1beta1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: objectbucketclaims.objectbucket.io | ||
| spec: | ||
| version: v1alpha1 | ||
| versions: | ||
| - name: v1alpha1 | ||
| served: true | ||
| storage: true | ||
| group: objectbucket.io | ||
| names: | ||
| kind: ObjectBucketClaim | ||
| listKind: ObjectBucketClaimList | ||
| plural: objectbucketclaims | ||
| singular: objectbucketclaim | ||
| shortNames: | ||
| - obc | ||
| - obcs | ||
| scope: Namespaced | ||
| subresources: | ||
| status: {} | ||
| additionalPrinterColumns: | ||
| - JSONPath: .spec.storageClassName | ||
| description: StorageClass | ||
| name: Storage-Class | ||
| type: string | ||
| - JSONPath: .status.phase | ||
| description: Phase | ||
| name: Phase | ||
| type: string | ||
| - JSONPath: .metadata.creationTimestamp | ||
| name: Age | ||
| type: date | ||
| validation: | ||
| openAPIV3Schema: | ||
| properties: | ||
| apiVersion: | ||
| description: 'APIVersion defines the versioned schema of this representation | ||
| of an object. Servers should convert recognized schemas to the latest | ||
| internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' | ||
| type: string | ||
| kind: | ||
| description: 'Kind is a string value representing the REST resource this | ||
| object represents. Servers may infer this from the endpoint the client | ||
| submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' | ||
| type: string | ||
| metadata: | ||
| description: Standard object metadata. | ||
| type: object | ||
| spec: | ||
| description: Specification of the desired behavior of the claim. | ||
| properties: | ||
| storageClassName: | ||
| description: StorageClass names the StorageClass object representing the | ||
| desired provisioner and parameters | ||
| type: string | ||
| bucketName: | ||
| description: BucketName (not recommended) the name of the bucket. Caution! | ||
| In-store bucket names may collide across namespaces. If you define | ||
| the name yourself, try to make it as unique as possible. | ||
| type: string | ||
| generateBucketName: | ||
| description: GenerateBucketName (recommended) a prefix for a bucket name to be | ||
| followed by a hyphen and 5 random characters. Protects against | ||
| in-store name collisions. | ||
| type: string | ||
| additionalConfig: | ||
| description: AdditionalConfig gives providers a location to set | ||
| proprietary config values (tenant, namespace, etc) | ||
| additionalProperties: | ||
| type: string | ||
| type: object | ||
| required: | ||
| - storageClassName | ||
| type: object | ||
| status: | ||
| description: Most recently observed status of the claim. | ||
| properties: | ||
| phase: | ||
| description: ObjectBucketClaimStatusPhase is set by the controller to save the state of the provisioning process | ||
| enum: | ||
| - "pending" | ||
| - "bound" | ||
| - "released" | ||
| - "failed" | ||
| type: string | ||
| type: object |
125 changes: 125 additions & 0 deletions
125
...le/testdata/validate/missing_annotations/manifests/objectbuckets.objectbucket.io.crd.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| apiVersion: apiextensions.k8s.io/v1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: objectbuckets.objectbucket.io | ||
| spec: | ||
| versions: | ||
| - name: v1alpha1 | ||
| served: true | ||
| storage: true | ||
| group: objectbucket.io | ||
| names: | ||
| kind: ObjectBucket | ||
| listKind: ObjectBucketList | ||
| plural: objectbuckets | ||
| singular: objectbucket | ||
| shortNames: | ||
| - ob | ||
| - obs | ||
| scope: Cluster | ||
| subresources: | ||
| status: {} | ||
| additionalPrinterColumns: | ||
| - JSONPath: .spec.storageClassName | ||
| description: StorageClass | ||
| name: Storage-Class | ||
| type: string | ||
| - JSONPath: .spec.claimRef.namespace | ||
| description: ClaimNamespace | ||
| name: Claim-Namespace | ||
| type: string | ||
| - JSONPath: .spec.claimRef.name | ||
| description: ClaimName | ||
| name: Claim-Name | ||
| type: string | ||
| - JSONPath: .spec.reclaimPolicy | ||
| description: ReclaimPolicy | ||
| name: Reclaim-Policy | ||
| type: string | ||
| - JSONPath: .status.phase | ||
| description: Phase | ||
| name: Phase | ||
| type: string | ||
| - JSONPath: .metadata.creationTimestamp | ||
| name: Age | ||
| type: date | ||
| validation: | ||
| openAPIV3Schema: | ||
| properties: | ||
| apiVersion: | ||
| description: 'APIVersion defines the versioned schema of this representation | ||
| of an object. Servers should convert recognized schemas to the latest | ||
| internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' | ||
| type: string | ||
| kind: | ||
| description: 'Kind is a string value representing the REST resource this | ||
| object represents. Servers may infer this from the endpoint the client | ||
| submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' | ||
| type: string | ||
| metadata: | ||
| description: Standard object metadata. | ||
| type: object | ||
| spec: | ||
| description: Specification of the desired behavior of the bucket. | ||
| properties: | ||
| storageClassName: | ||
| description: StorageClass names the StorageClass object representing the | ||
| desired provisioner and parameters | ||
| type: string | ||
| reclaimPolicy: | ||
| description: Describes a policy for end-of-life maintenance of ObjectBucket. | ||
| enum: | ||
| - "Delete" | ||
| - "Retain" | ||
| - "Recycle" | ||
| type: string | ||
| claimRef: | ||
| description: ObjectReference to ObjectBucketClaim | ||
| type: object | ||
| endpoint: | ||
| description: Endpoint contains all connection relevant data that an app may | ||
| require for accessing the bucket | ||
| properties: | ||
| bucketHost: | ||
| description: Bucket address hostname | ||
| type: string | ||
| bucketPort: | ||
| description: Bucket address port | ||
| type: integer | ||
| bucketName: | ||
| description: Bucket name | ||
| type: string | ||
| region: | ||
| description: Bucket region | ||
| type: string | ||
| subRegion: | ||
| description: Bucket sub-region | ||
| type: string | ||
| additionalConfig: | ||
| description: AdditionalConfig gives providers a location to set | ||
| proprietary config values (tenant, namespace, etc) | ||
| additionalProperties: | ||
| type: string | ||
| type: object | ||
| type: object | ||
| additionalState: | ||
| description: additionalState gives providers a location to set | ||
| proprietary config values (tenant, namespace, etc) | ||
| additionalProperties: | ||
| type: string | ||
| type: object | ||
| required: | ||
| - storageClassName | ||
| type: object | ||
| status: | ||
| description: Most recently observed status of the bucket. | ||
| properties: | ||
| phase: | ||
| description: ObjectBucketStatusPhase is set by the controller to save the | ||
| state of the provisioning process | ||
| enum: | ||
| - "bound" | ||
| - "released" | ||
| - "failed" | ||
| type: string | ||
| type: object |
7 changes: 7 additions & 0 deletions
7
pkg/lib/bundle/testdata/validate/missing_annotations/metadata/annotations.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| annotations: {} | ||
| # operators.operatorframework.io.bundle.channel.default.v1: stable | ||
| # operators.operatorframework.io.bundle.channels.v1: stable,beta | ||
| # operators.operatorframework.io.bundle.manifests.v1: manifests/ | ||
| # operators.operatorframework.io.bundle.mediatype.v1: registry+v1 | ||
| # operators.operatorframework.io.bundle.metadata.v1: metadata/ | ||
| # operators.operatorframework.io.bundle.package.v1: etcd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.