Skip to content

Commit

Permalink
Merge pull request #287 from gianlucam76/sveltoscluster
Browse files Browse the repository at this point in the history
Fix TokenRequestRenewalOption field
  • Loading branch information
gianlucam76 authored Apr 11, 2024
2 parents 614be6c + 99a3a30 commit 1dd0438
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
5 changes: 2 additions & 3 deletions api/v1alpha1/sveltoscluster_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ const (

type TokenRequestRenewalOption struct {
// RenewTokenRequestInterval is the interval at which to renew the TokenRequest
// +optional
RenewTokenRequestInterval *metav1.Duration `json:"renewTokenRequestInterval,omitempty"`
RenewTokenRequestInterval metav1.Duration `json:"renewTokenRequestInterval"`
}

// SveltosClusterSpec defines the desired state of SveltosCluster
Expand All @@ -46,7 +45,7 @@ type SveltosClusterSpec struct {

// TokenRequestRenewalOption contains options describing how to renew TokenRequest
// +optional
TokenRequestRenewalOption *metav1.Duration `json:"tokenRequestRenewalOption,omitempty"`
TokenRequestRenewalOption *TokenRequestRenewalOption `json:"tokenRequestRenewalOption,omitempty"`
}

// SveltosClusterStatus defines the status of SveltosCluster
Expand Down
9 changes: 2 additions & 7 deletions api/v1alpha1/zz_generated.deepcopy.go

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

9 changes: 8 additions & 1 deletion config/crd/bases/lib.projectsveltos.io_sveltosclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ spec:
tokenRequestRenewalOption:
description: TokenRequestRenewalOption contains options describing
how to renew TokenRequest
type: string
properties:
renewTokenRequestInterval:
description: RenewTokenRequestInterval is the interval at which
to renew the TokenRequest
type: string
required:
- renewTokenRequestInterval
type: object
type: object
status:
description: SveltosClusterStatus defines the status of SveltosCluster
Expand Down
9 changes: 8 additions & 1 deletion lib/crd/sveltosclusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,14 @@ spec:
tokenRequestRenewalOption:
description: TokenRequestRenewalOption contains options describing
how to renew TokenRequest
type: string
properties:
renewTokenRequestInterval:
description: RenewTokenRequestInterval is the interval at which
to renew the TokenRequest
type: string
required:
- renewTokenRequestInterval
type: object
type: object
status:
description: SveltosClusterStatus defines the status of SveltosCluster
Expand Down

0 comments on commit 1dd0438

Please sign in to comment.