File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -953,7 +953,7 @@ def update_coredns_if_necessary(args) -> int:
953
953
0 if successful (CoreDNS was already present or successfully deployed),
954
954
and 1 otherwise.
955
955
"""
956
- if args .enable_cloud_dns :
956
+ if '--cluster-dns=clouddns' in args .custom_cluster_arguments :
957
957
xpk_print ('Skipping CoreDNS deployment since Cloud DNS is enabled.' )
958
958
return 0
959
959
elif coredns_deployment_exists (args , namespace = 'kube-system' ):
@@ -1134,9 +1134,6 @@ def run_gke_cluster_create_command(
1134
1134
if args .enable_workload_identity or args .enable_gcsfuse_csi_driver :
1135
1135
command += f' --workload-pool={ args .project } .svc.id.goog'
1136
1136
1137
- if args .enable_cloud_dns :
1138
- command += f' --cluster-dns=clouddns'
1139
-
1140
1137
addons = []
1141
1138
if args .enable_gcsfuse_csi_driver :
1142
1139
addons .append ('GcsFuseCsiDriver' )
Original file line number Diff line number Diff line change @@ -715,11 +715,6 @@ def add_shared_cluster_create_optional_arguments(parser: ArgumentParser):
715
715
action = 'store_true' ,
716
716
help = 'Enable Workload Identity Federation on the cluster and node-pools.' ,
717
717
)
718
- parser .add_argument (
719
- '--enable-cloud-dns' ,
720
- action = 'store_true' ,
721
- help = 'Enable Cloud DNS on the cluster and node-pools.' ,
722
- )
723
718
add_driver_arguments (parser )
724
719
725
720
You can’t perform that action at this time.
0 commit comments