Skip to content

Commit 45e9ea2

Browse files
committed
bug fix
1 parent 834c54e commit 45e9ea2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/gcp/pkg/stub/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ func updateClusterFirewall(cluster *RemoteCluster, log *logrus.Entry) error {
12181218
masterIpv4CidrBlock, ok := cluster.PrivateClusterConfig["masterIpv4CidrBlock"].(string)
12191219
if ok && masterIpv4CidrBlock != "" {
12201220
log.Infof("Update firewall rule for cluster %s with %s", cluster.Name, masterIpv4CidrBlock)
1221-
cmd := exec.Command("gcloud" , "compute", "firewall-rule", "list", "--filter", fmt.Sprintf("name~^gke-%s(.)vms", cluster.Name), "--format", "json")
1221+
cmd := exec.Command("gcloud" , "compute", "firewall-rules", "list", "--filter", fmt.Sprintf("name~^gke-%s(.)vms", cluster.Name), "--format", "json")
12221222
out, err := cmd.CombinedOutput()
12231223
if err != nil {
12241224
err = fmt.Errorf("failed to get firewall rule for cluster %s: %v, %s", cluster.Name, err, out)

0 commit comments

Comments
 (0)