Skip to content
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

This sets up the scaffolding for the cosigned CRD types. #1504

Merged
merged 1 commit into from Feb 23, 2022

Conversation

mattmoor
Copy link
Member

This mostly contains the boilerplate stuff like codegen and whatnot to bootstrap a Knative controller. This doesn't contain any of the meaningful type definition aspects, which will follow in a subsequent PR.

Signed-off-by: Matt Moore mattmoor@chainguard.dev

Ticket Link

Sets up for #1417

Release Note


@mattmoor mattmoor force-pushed the clusterimagepolicy-scaffolding branch from 1ebda94 to 2420595 Compare February 22, 2022 22:53
@mattmoor
Copy link
Member Author

cc @kkavitha @coyote240 @hectorj2f

I'll get this passing CI, but this should set up all of the scaffolding that you need.

@mattmoor mattmoor force-pushed the clusterimagepolicy-scaffolding branch from 2420595 to bcbb09e Compare February 22, 2022 22:56
@mattmoor
Copy link
Member Author

Ultimately, this is the spec for what this CRD will look like in subsequent changes: https://docs.google.com/document/d/1gBLEOOHWOmvHVsoJbgGU74GdwA6CGxMRp3MAeEB50l4/edit

@mattmoor mattmoor force-pushed the clusterimagepolicy-scaffolding branch 9 times, most recently from 48b437d to b3d5e5e Compare February 23, 2022 00:27
@mattmoor mattmoor force-pushed the clusterimagepolicy-scaffolding branch from b3d5e5e to eedb826 Compare February 23, 2022 01:07
@dlorenc
Copy link
Member

dlorenc commented Feb 23, 2022

It verified!!!

@mattmoor mattmoor force-pushed the clusterimagepolicy-scaffolding branch from eedb826 to 1ea1ebb Compare February 23, 2022 02:03
@mattmoor
Copy link
Member Author

@dlorenc yeah, because nodiff needed a path: attribute. Gonna keep poking at it.

@mattmoor mattmoor force-pushed the clusterimagepolicy-scaffolding branch from 1ea1ebb to b5a6ee2 Compare February 23, 2022 02:09
This mostly contains the boilerplate stuff like codegen and whatnot to bootstrap a Knative controller.  This doesn't contain any of the meaningful type definition aspects, which will follow in a subsequent PR.

Sets up for sigstore#1417

Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
@mattmoor mattmoor force-pushed the clusterimagepolicy-scaffolding branch from b5a6ee2 to 5ae39f3 Compare February 23, 2022 02:17

// ClusterImagePolicySpec holds the desired state of the ClusterImagePolicy (from the client).
type ClusterImagePolicySpec struct {
// TODO(#1417): Flesh out the specification from the API spec.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This, a body for SetDefaults and Validate and unit tests are the key bits remaining to close this issue out.

I believe your WIP schema should slot in pretty directly here.

Once this lands, I'm happy to set up the webhook and CRD definition stuff while you sketch the type out, but was aiming for an MVP here to unblock y'all.

cc @kkavitha @coyote240 @hectorj2f

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! thanks.

Copy link
Contributor

@hectorj2f hectorj2f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mattmoor mattmoor merged commit 7d5097d into sigstore:main Feb 23, 2022
@mattmoor mattmoor deleted the clusterimagepolicy-scaffolding branch February 23, 2022 15:08
hatmarch pushed a commit to hatmarch/cosign that referenced this pull request Apr 19, 2022
…1504)

This mostly contains the boilerplate stuff like codegen and whatnot to bootstrap a Knative controller.  This doesn't contain any of the meaningful type definition aspects, which will follow in a subsequent PR.

Sets up for sigstore#1417

Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
mlieberman85 pushed a commit to mlieberman85/cosign that referenced this pull request May 6, 2022
…1504)

This mostly contains the boilerplate stuff like codegen and whatnot to bootstrap a Knative controller.  This doesn't contain any of the meaningful type definition aspects, which will follow in a subsequent PR.

Sets up for sigstore#1417

Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants