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

make the custom sign ca secret namespace fixed #245

Conversation

zhujian7
Copy link
Member

No description provided.

@openshift-ci openshift-ci bot requested review from deads2k and mdelder June 29, 2023 03:46
@zhujian7 zhujian7 changed the title WIP: make the custom sign ca secret name fixed make the custom sign ca secret name fixed Jun 29, 2023
@zhujian7
Copy link
Member Author

/assign @zhiweiyin318 @qiujian16

// SigningCARef is the reference to the signing CA secret that must contain the
// certificate authority data with key "ca.crt" and the private key data with key "ca.key"
// SigningCARef is the reference to the signing CA secret which type must be "kubernetes.io/tls" and
// the name must be "custom-signer-secret"
Copy link
Member

Choose a reason for hiding this comment

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

we might need to use a more specific secret name. e.g. ocm-addon-template-signer

@@ -155,19 +155,17 @@ type CustomSignerRegistrationConfig struct {
Subject *Subject `json:"subject,omitempty"`

// SigningCA represents the reference of the secret on the hub cluster to sign the CSR
// the secret name must be "ocm-addon-template-signer", and the secret type must be "kubernetes.io/tls"
// +kubebuilder:validation:Required
SigningCA SigningCARef `json:"signingCA"`
Copy link
Member Author

Choose a reason for hiding this comment

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

@qiujian16 since we removed the secret name field, do you think the SigningCARef is still necessary? or we just change it to signingCANamespace?

Copy link
Member

Choose a reason for hiding this comment

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

I am thinking whether it makes more sense to watch secret in a certain namespace, rather than the a fixed name.

Signed-off-by: zhujian <jiazhu@redhat.com>
@zhujian7 zhujian7 changed the title make the custom sign ca secret name fixed make the custom sign ca secret namespace fixed Jun 30, 2023
@qiujian16
Copy link
Member

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 30, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 30, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16, zhujian7

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 1a4cb6c into open-cluster-management-io:main Jun 30, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants