Skip to content

Commit a36eb7b

Browse files
committed
Add Autoprovisioning scopes
1 parent 4f66276 commit a36eb7b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

goldens/NAP_cluster-create.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ gcloud compute resource-policies describe golden-cluster-placement-policy --proj
6060
[XPK] Default Chips quota is minimum: 0, maximum: 4.
6161
[XPK] Chips quota is minimum: 0, maximum: 4. XPK will autoprovision 4 chips based on incoming workload requests, keeping at least 0 available at all times, and maximum of 4. If the difference (4 chips) is small, rescaling will not work well.
6262
[XPK] Task: `Update cluster with autoprovisioning enabled` is implemented by the following command not running since it is a dry run.
63-
gcloud container clusters update golden-cluster --project=golden-project --location=us-central1 --enable-autoprovisioning --autoprovisioning-config-file 6062bfee91f21efca86f2c3261129f06b1896ad9b68d2ecdba9589bea9e15ddf
63+
gcloud container clusters update golden-cluster --project=golden-project --location=us-central1 --enable-autoprovisioning --autoprovisioning-scopes=https://www.googleapis.com/auth/cloud-platform --autoprovisioning-config-file 6062bfee91f21efca86f2c3261129f06b1896ad9b68d2ecdba9589bea9e15ddf
6464
[XPK] Task: `Update cluster with autoscaling-profile` is implemented by the following command not running since it is a dry run.
6565
gcloud container clusters update golden-cluster --project=golden-project --location=us-central1 --autoscaling-profile=optimize-utilization
6666
[XPK] Task: `Get All Node Pools` is implemented by the following command not running since it is a dry run.

goldens/NAP_cluster-create_with_pathways.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ gcloud compute resource-policies describe golden-cluster-placement-policy --proj
6161
[XPK] Default Chips quota is minimum: 0, maximum: 4.
6262
[XPK] Chips quota is minimum: 0, maximum: 4. XPK will autoprovision 4 chips based on incoming workload requests, keeping at least 0 available at all times, and maximum of 4. If the difference (4 chips) is small, rescaling will not work well.
6363
[XPK] Task: `Update cluster with autoprovisioning enabled` is implemented by the following command not running since it is a dry run.
64-
gcloud container clusters update golden-cluster --project=golden-project --location=us-central1 --enable-autoprovisioning --autoprovisioning-config-file 6062bfee91f21efca86f2c3261129f06b1896ad9b68d2ecdba9589bea9e15ddf
64+
gcloud container clusters update golden-cluster --project=golden-project --location=us-central1 --enable-autoprovisioning --autoprovisioning-scopes=https://www.googleapis.com/auth/cloud-platform --autoprovisioning-config-file 6062bfee91f21efca86f2c3261129f06b1896ad9b68d2ecdba9589bea9e15ddf
6565
[XPK] Task: `Update cluster with autoscaling-profile` is implemented by the following command not running since it is a dry run.
6666
gcloud container clusters update golden-cluster --project=golden-project --location=us-central1 --autoscaling-profile=optimize-utilization
6767
[XPK] Task: `Get All Node Pools` is implemented by the following command not running since it is a dry run.

src/xpk/core/nap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
autoRepair: true
4545
autoUpgrade: true
4646
scopes:
47-
- "https://www.googleapis.com/auth/devstorage.read_write"
47+
- "https://www.googleapis.com/auth/cloud-platform"
4848
autoprovisioningLocations:
4949
{zones}
5050
{resource_limits}
@@ -56,6 +56,7 @@
5656
- resourceType: 'memory'
5757
{memory_limits}
5858
{custom_resource_type}
59+
diskSizeGb: 50
5960
"""
6061
AUTOPROVISIONING_CUSTOM_RESOURCE_TYPE = """
6162
- resourceType: {resource_type}

0 commit comments

Comments
 (0)