Skip to content

Commit

Permalink
Merge pull request #2 from orcasecurity/skip_autopilot_gke
Browse files Browse the repository at this point in the history
skip_autopilot_gke
  • Loading branch information
idank-orca authored Apr 23, 2023
2 parents 1a1a3bc + 157dde5 commit 7ac9dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcp_resource_count.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ for project in $PROJECTS; do
echo "VM images Count: $project_vm_images_count"
fi

gcloud -q container clusters list --project "${project}" --format='get(currentNodeCount)' > ${_temp_project_output} 2>> $LOG_FILE || echo "Failed to get Container Hosts for project ${project}"
gcloud -q container clusters list --project "${project}" --format='get(currentNodeCount)' --filter="NOT autopilot.enabled:true"> ${_temp_project_output} 2>> $LOG_FILE || echo "Failed to get Container Hosts for project ${project}"
clusters_node_counts=$(cat "${_temp_project_output}")
project_nodes_count=0
for node_count in $clusters_node_counts; do
Expand Down

0 comments on commit 7ac9dd2

Please sign in to comment.