-
Notifications
You must be signed in to change notification settings - Fork 546
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
Bump kind dependency #2888
Bump kind dependency #2888
Conversation
Skipping CI for Draft Pull Request. |
test/e2e/installplan_e2e_test.go
Outdated
Expect(policyv1beta1.AddToScheme(scheme)).To(Succeed()) | ||
Expect(deprecatedv1.AddToScheme(scheme)).To(Succeed()) | ||
{ | ||
var b bytes.Buffer | ||
Expect(k8sjson.NewSerializer(k8sjson.DefaultMetaFactory, scheme, scheme, false).Encode(&pdb, &b)).To(Succeed()) | ||
Expect(k8sjson.NewSerializer(k8sjson.DefaultMetaFactory, scheme, scheme, false).Encode(&deprecated, &b)).To(Succeed()) | ||
manifest = b.String() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we can get rid of this scheme thing, we won't need to import https://github.com/awgreene/deprecated-crd
test/e2e/installplan_e2e_test.go
Outdated
deprecatedCRD := &apiextensionsv1.CustomResourceDefinition{ | ||
ObjectMeta: metav1.ObjectMeta{ | ||
Name: "deprecateds.operators.io.operator-framework", | ||
}, | ||
Spec: apiextensionsv1.CustomResourceDefinitionSpec{ | ||
Names: apiextensionsv1.CustomResourceDefinitionNames{ | ||
Plural: "deprecateds", | ||
ListKind: "DeprecatedList", | ||
Singular: "deprecated", | ||
Kind: "Deprecated", | ||
}, | ||
Scope: "Namespaced", | ||
Group: "operators.io.operator-framework", | ||
Versions: []apiextensionsv1.CustomResourceDefinitionVersion{ | ||
{ | ||
Name: "v1", | ||
Served: true, | ||
Storage: true, | ||
Deprecated: true, | ||
Schema: &apiextensionsv1.CustomResourceValidation{ | ||
OpenAPIV3Schema: &apiextensionsv1.JSONSchemaProps{ | ||
Type: "object", | ||
Properties: map[string]apiextensionsv1.JSONSchemaProps{ | ||
"spec": { | ||
Type: "object", | ||
Description: "Spec of a test object.", | ||
Properties: map[string]apiextensionsv1.JSONSchemaProps{ | ||
"foo": { | ||
Type: "string", | ||
}, | ||
}, | ||
}, | ||
"status": { | ||
Type: "object", | ||
Description: "Spec of a test object.", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
Status: apiextensionsv1.CustomResourceDefinitionStatus{ | ||
StoredVersions: []string{"v1"}, | ||
}, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could move this to a test file for readability's sake.
7b014ad
to
6cfc050
Compare
Signed-off-by: Alexander Greene <[email protected]>
73ba4e7
to
eea9d12
Compare
a16facb
to
05fcc63
Compare
Signed-off-by: Alexander Greene <[email protected]>
05fcc63
to
28f77ff
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awgreene, grokspawn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
1 similar comment
/lgtm |
Description of the change:
Motivation for the change:
Architectural changes:
Testing remarks:
Reviewer Checklist
/doc
[FLAKE]
are truly flaky and have an issue