From ca13b84b839b6de71423841c56fbc862791b21c3 Mon Sep 17 00:00:00 2001 From: pipo02mix Date: Thu, 2 May 2024 13:15:36 +0200 Subject: [PATCH] Make conditional work with newer hugo version --- .../spot-instances/aws/ondemand-fallback/index.md | 2 +- src/layouts/partials/changes/main.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/vintage/advanced/cluster-management/spot-instances/aws/ondemand-fallback/index.md b/src/content/vintage/advanced/cluster-management/spot-instances/aws/ondemand-fallback/index.md index 664b7f71b0..b9479aac4a 100644 --- a/src/content/vintage/advanced/cluster-management/spot-instances/aws/ondemand-fallback/index.md +++ b/src/content/vintage/advanced/cluster-management/spot-instances/aws/ondemand-fallback/index.md @@ -20,7 +20,7 @@ owner: {{< platform_support_table aws="ga=v11.2.0" >}} -As of workload cluster release v{{% first_aws_spotinstances_version %}} for AWS, node pools can use [spot instances]({{< relref "/vintage/advanced/cluster-management/spot-instances/aws/overview " >}}). Users can select for each node pool which percentage of nodes should be covered by spot instances and by on-demand instances respectively. And users can define a base amount of on-demand instances that will be used, to ensure at least a certain amount of worker nodes are available at any time. +As of workload cluster release v{{% first_aws_spotinstances_version %}} for AWS, node pools can use [spot instances]({{< relref "/vintage/advanced/cluster-management/spot-instances/aws/overview" >}}). Users can select for each node pool which percentage of nodes should be covered by spot instances and by on-demand instances respectively. And users can define a base amount of on-demand instances that will be used, to ensure at least a certain amount of worker nodes are available at any time. However, it is still possible that the node pool is in need of more worker nodes and there are just no spot instances available matching the request, based on the availability zone and the instance type(s). In this case the node pool cannot be scaled up. As a result, workloads will likely remain unscheduled. diff --git a/src/layouts/partials/changes/main.html b/src/layouts/partials/changes/main.html index e6abcde014..142a668b6a 100644 --- a/src/layouts/partials/changes/main.html +++ b/src/layouts/partials/changes/main.html @@ -29,8 +29,8 @@

By Category

- - {{ if .Paginator }} + + {{ if ne (len .Paginator.Pages) 1 }} {{ partial "changes/list" . }} {{ else }} {{ partial "changes/single" . }}