Skip to content

Commit

Permalink
fix: tokenIssuer_field is not omitempty
Browse files Browse the repository at this point in the history
Signed-off-by: rongfu.leng <1275177125@qq.com>
  • Loading branch information
lengrongfu authored and bitsf committed Sep 13, 2022
1 parent 31e612d commit e6d24ff
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apis/goharbor.io/v1beta1/harbor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ type CoreComponentSpec struct {
CertificateInjection `json:",inline"`

// +kubebuilder:validation:Required
TokenIssuer cmmeta.ObjectReference `json:"tokenIssuer,omitempty"`
TokenIssuer cmmeta.ObjectReference `json:"tokenIssuer"`

// +kubebuilder:validation:Optional
Metrics *harbormetav1.MetricsSpec `json:"metrics,omitempty"`
Expand Down
4 changes: 4 additions & 0 deletions charts/harbor-operator/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9283,6 +9283,8 @@ spec:
type: string
type: object
type: array
required:
- tokenIssuer
type: object
database:
description: Database configuration for in-cluster database service
Expand Down Expand Up @@ -14270,6 +14272,8 @@ spec:
type: string
type: object
type: array
required:
- tokenIssuer
type: object
database:
properties:
Expand Down
4 changes: 4 additions & 0 deletions manifests/cluster/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9302,6 +9302,8 @@ spec:
type: string
type: object
type: array
required:
- tokenIssuer
type: object
database:
description: Database configuration for in-cluster database service
Expand Down Expand Up @@ -14294,6 +14296,8 @@ spec:
type: string
type: object
type: array
required:
- tokenIssuer
type: object
database:
properties:
Expand Down
4 changes: 4 additions & 0 deletions manifests/harbor/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9302,6 +9302,8 @@ spec:
type: string
type: object
type: array
required:
- tokenIssuer
type: object
database:
description: Database configuration for in-cluster database service
Expand Down Expand Up @@ -14294,6 +14296,8 @@ spec:
type: string
type: object
type: array
required:
- tokenIssuer
type: object
database:
properties:
Expand Down

0 comments on commit e6d24ff

Please sign in to comment.