Skip to content

Commit

Permalink
Add ClientCertAdditionalData.
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <zxue@redhat.com>
  • Loading branch information
xuezhaojun committed Mar 11, 2024
1 parent 29e1b1d commit a41c573
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,15 @@ spec:
addon agent to register to hub. The Klusterlet agent will create
a csr for the addon agent with the registrationConfig.
properties:
clientCertAdditionalData:
additionalProperties:
type: string
description: The signed CSR client certificates will be stored
in the secret on the agent, clientCertAdditionalData is the
additional data that will stored with the client certificate
secret. Also, the change of the additional data will trigger
the CSR renewal.
type: object
signerName:
description: signerName is the name of signer that addon agent
will use to create csr.
Expand Down
6 changes: 6 additions & 0 deletions addon/v1alpha1/types_managedclusteraddon.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ type RegistrationConfig struct {
//
// +optional
Subject Subject `json:"subject,omitempty"`

// The signed CSR client certificates will be stored in the secret on the agent, clientCertAdditionalData
// is the additional data that will stored with the client certificate secret.
// Also, the change of the additional data will trigger the CSR renewal.
// +optional
ClientCertAdditionalData map[string]string `json:"clientCertAdditionalData,omitempty"`
}

type AddOnConfig struct {
Expand Down
7 changes: 4 additions & 3 deletions addon/v1alpha1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a41c573

Please sign in to comment.