Skip to content

Commit

Permalink
Update cluster.go
Browse files Browse the repository at this point in the history
  • Loading branch information
MGamya committed Sep 26, 2024
1 parent 79cd0b8 commit 8229b11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,17 +324,17 @@ func (h *V1Client) UpdatePauseAgentUpgradeSettingCluster(upgradeSetting *models.
return nil
}

func (h *V1Client) InitiateTheCertRenewal(clusterUid string) error {
params := clientv1.NewV1SpectroClustersCertificatesRenewParamsWithContext(h.ctx).WithUID(clusterUid)
func (h *V1Client) InitiateTheCertRenewal(clusterUID string) error {

Check failure on line 327 in client/cluster.go

View workflow job for this annotation

GitHub Actions / build-with-coverage

exported: exported method V1Client.InitiateTheCertRenewal should have comment or be unexported (revive)
params := clientv1.NewV1SpectroClustersCertificatesRenewParamsWithContext(h.ctx).WithUID(clusterUID)
_, err := h.Client.V1SpectroClustersCertificatesRenew(params)
if err != nil {
return fmt.Errorf("error while renewing the cluster certificates: %w", err)
}
return nil
}

func (h *V1Client) GetTheKubernetesCerts(clusterUid string) (*models.V1MachineCertificates,error) {
params := clientv1.NewV1SpectroClustersK8CertificateParamsWithContext(h.ctx).WithUID(clusterUid)
func (h *V1Client) GetTheKubernetesCerts(clusterUID string) (*models.V1MachineCertificates,error) {

Check failure on line 336 in client/cluster.go

View workflow job for this annotation

GitHub Actions / build-with-coverage

exported: exported method V1Client.GetTheKubernetesCerts should have comment or be unexported (revive)
params := clientv1.NewV1SpectroClustersK8CertificateParamsWithContext(h.ctx).WithUID(clusterUID)
resp, err := h.Client.V1SpectroClustersK8Certificate(params)
if err != nil {
return nil,fmt.Errorf("error while getting the cluster certificates: %w", err)
Expand Down

0 comments on commit 8229b11

Please sign in to comment.