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

Add skeleton reconciler for cosigned API CRD. #1513

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

mattmoor
Copy link
Member

This puts together the skeleton of a reconciler for the ClusterImagePolicy CRD, and links it into our controlplane pod.

This adds the CRD definition (and stub to generate the schema), and RBAC to let us reconcile the CRD.

Signed-off-by: Matt Moore [email protected]

Ticket Link

Scaffolding for: #1418

Release Note

Introduce a ClusterImagePolicy CRD, which will be used to configure the cosigned webhook.

This puts together the skeleton of a reconciler for the ClusterImagePolicy CRD, and links it into our controlplane pod.

This adds the CRD definition (and stub to generate the schema), and RBAC to let us reconcile the CRD.

Signed-off-by: Matt Moore <[email protected]>
schema:
openAPIV3Schema:
# This is the output of:
# go run ./cmd/schema/ dump ClusterImagePolicy
Copy link
Member Author

Choose a reason for hiding this comment

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

As #1417 progresses, we can simply rerun this command and paste its new output here.


// ReconcileKind implements Interface.ReconcileKind.
func (r *Reconciler) ReconcileKind(ctx context.Context, o *v1alpha1.ClusterImagePolicy) reconciler.Event {
return nil
Copy link
Member Author

Choose a reason for hiding this comment

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

#1418 will entail filling this out with logic to turn our list of ClusterImagePolicy CRDs into our compiled ConfigMap.

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 can use r.Tracker to track references to secrets/configmaps

@mattmoor mattmoor merged commit b1ee442 into sigstore:main Feb 24, 2022
@mattmoor mattmoor deleted the cosigned-reconciler branch February 24, 2022 17:09
@github-actions github-actions bot added this to the v1.6.0 milestone Feb 24, 2022
coyote240 pushed a commit to coyote240/cosign that referenced this pull request Mar 1, 2022
This puts together the skeleton of a reconciler for the ClusterImagePolicy CRD, and links it into our controlplane pod.

This adds the CRD definition (and stub to generate the schema), and RBAC to let us reconcile the CRD.

Signed-off-by: Matt Moore <[email protected]>
hatmarch pushed a commit to hatmarch/cosign that referenced this pull request Apr 19, 2022
This puts together the skeleton of a reconciler for the ClusterImagePolicy CRD, and links it into our controlplane pod.

This adds the CRD definition (and stub to generate the schema), and RBAC to let us reconcile the CRD.

Signed-off-by: Matt Moore <[email protected]>
mlieberman85 pushed a commit to mlieberman85/cosign that referenced this pull request May 6, 2022
This puts together the skeleton of a reconciler for the ClusterImagePolicy CRD, and links it into our controlplane pod.

This adds the CRD definition (and stub to generate the schema), and RBAC to let us reconcile the CRD.

Signed-off-by: Matt Moore <[email protected]>
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.

2 participants