-
Notifications
You must be signed in to change notification settings - Fork 64
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
Move deliverable into test only path #133
Conversation
@@ -58,7 +58,7 @@ var _ = Describe("Registrar", func() { | |||
Group: "carto.run", | |||
Version: "v1alpha1", | |||
} | |||
Expect(len(scheme.KnownTypes(gv))).To(Equal(25)) | |||
Expect(len(scheme.KnownTypes(gv))).To(Equal(23)) |
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.
at first I thought 'oh, 23? shouldn't it be 24?', but I guess the deduction of 2
is due to *List
being registered 👍
dang, I just realized that we actually have
I think it'd be good to make sure we get rid of that |
@@ -18,6 +18,8 @@ startControlPlane: true | |||
testDirs: | |||
- tests/kuttl | |||
crdDir: config/crd/bases | |||
manifestDirs: | |||
- tests/crd |
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.
so, my understanding is that we're doing a plain move of the CustomResourceDefinition object that has been generated before to that directory, and then just submitting to Kubernetes when running kuttl
, but there's no go-based definition of the struct
that controller-gen
would generate, right?
if that's the case, I'd say it'd be good if we could strip down the CustomResourceDefinition to a minimum, removing those descriptions like
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/sig-architecture/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/sig-architecture/api-conventions.md#types- kinds'
type: string
and the annotation that indicates that this was generated:
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.6.2
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.
Not going to take the time to do this. I think we have some work to do around both "test" crds at the moment.
oh btw, I just remembered that for the
which imo is nice that allows one to quickly tell that such resource is not part of the main set of resources. I think either here or in another PR we should move this object to such apiversion - wdyt? |
Co-authored-by: Sam Coward <scoward@vmware.com>
[#130] Co-authored-by: Emily Johnson <emjohnson@vmware.com>
77b82f0
to
71be641
Compare
[#130] Co-authored-by: Emily Johnson <emjohnson@vmware.com>
Co-authored-by: Rasheed Abdul-Aziz <rabdulaziz@vmware.com>
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.
Good enough for beta!
Closes #130
Co-authored-by: Sam Coward scoward@vmware.com