@@ -288,8 +288,11 @@ func (c *GKE) clusterDeleted(req *containerpb.DeleteClusterRequest) (bool, error
288288// clusterRunning checks whether a cluster is in a running state.
289289func (c * GKE ) clusterRunning (zone , projectID , clusterID string ) (bool , error ) {
290290 req := & containerpb.GetClusterRequest {
291+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
291292 ProjectId : projectID ,
292- Zone : zone ,
293+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
294+ Zone : zone ,
295+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
293296 ClusterId : clusterID ,
294297 }
295298 cluster , err := c .clientGKE .GetCluster (c .ctx , req )
@@ -397,8 +400,10 @@ func (c *GKE) NodePoolDelete(*kingpin.ParseContext) error {
397400 //nolint:staticcheck // SA1019 - Ignore "Do not use.".
398401 ProjectId : reqC .ProjectId ,
399402 //nolint:staticcheck // SA1019 - Ignore "Do not use.".
400- Zone : reqC .Zone ,
401- ClusterId : reqC .Cluster .Name ,
403+ Zone : reqC .Zone ,
404+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
405+ ClusterId : reqC .Cluster .Name ,
406+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
402407 NodePoolId : node .Name ,
403408 }
404409 //nolint:staticcheck // SA1019 - Ignore "Do not use.".
@@ -444,9 +449,13 @@ func (c *GKE) nodePoolDeleted(req *containerpb.DeleteNodePoolRequest) (bool, err
444449// nodePoolRunning checks whether a nodepool has been created and is running.
445450func (c * GKE ) nodePoolRunning (zone , projectID , clusterID , poolName string ) (bool , error ) {
446451 req := & containerpb.GetNodePoolRequest {
447- ProjectId : projectID ,
448- Zone : zone ,
449- ClusterId : clusterID ,
452+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
453+ ProjectId : projectID ,
454+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
455+ Zone : zone ,
456+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
457+ ClusterId : clusterID ,
458+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
450459 NodePoolId : poolName ,
451460 }
452461 rep , err := c .clientGKE .GetNodePool (c .ctx , req )
@@ -526,8 +535,11 @@ func (c *GKE) AllNodepoolsDeleted(*kingpin.ParseContext) error {
526535func (c * GKE ) NewK8sProvider (* kingpin.ParseContext ) error {
527536 // Get the authentication certificate for the cluster using the GKE client.
528537 req := & containerpb.GetClusterRequest {
538+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
529539 ProjectId : c .DeploymentVars ["GKE_PROJECT_ID" ],
530- Zone : c .DeploymentVars ["ZONE" ],
540+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
541+ Zone : c .DeploymentVars ["ZONE" ],
542+ //nolint:staticcheck // SA1019 - Ignore "Do not use.".
531543 ClusterId : c .DeploymentVars ["CLUSTER_NAME" ],
532544 }
533545 rep , err := c .clientGKE .GetCluster (c .ctx , req )
0 commit comments