Skip to content

Commit

Permalink
Fix prepareWebsite
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Feb 24, 2024
1 parent 57d33ee commit f343580
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/karpenter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ You can follow the detailed installation instruction in the [documentation](http
```bash
helm upgrade --install --namespace karpenter --create-namespace \
karpenter oci://public.ecr.aws/karpenter/karpenter \
--version v0.34.0 \
--version 0.34.0 \
--set "serviceAccount.annotations.eks\.amazonaws\.com/role-arn=${KARPENTER_IAM_ROLE_ARN}" \
--set settings.clusterName=${CLUSTER_NAME} \
--set settings.interruptionQueue=${CLUSTER_NAME} \
Expand Down
3 changes: 3 additions & 0 deletions hack/docs/compatibility-karpenter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@ compatibility:
minK8sVersion: 1.23
maxK8sVersion: 1.28
- appVersion: 0.34.0
minK8sVersion: 1.23
maxK8sVersion: 1.29
- appVersion: 0.34.1
minK8sVersion: 1.23
maxK8sVersion: 1.29
4 changes: 2 additions & 2 deletions hack/release/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ prepareWebsite() {
version_parts=(${version//./ })
short_version="${version_parts[0]}.${version_parts[1]}"

createNewWebsiteDirectory "${short_version}"
createNewWebsiteDirectory "${short_version}" "${version}"
removeOldWebsiteDirectories
editWebsiteConfig "${version}"
editWebsiteVersionsMenu
Expand Down Expand Up @@ -199,7 +199,7 @@ editWebsiteVersionsMenu() {
local versions version

# shellcheck disable=SC2207
versions=($(find website/content/en/* -maxdepth 0 -type d -name "*" -print0 | xargs -r -n 1 basename | grep -v "docs\|preview"))
versions=($(find website/content/en/* -maxdepth 0 -type d -name "*" -print0 | xargs -0 -r -n 1 basename | grep -v "docs\|preview"))
versions+=('preview')

yq -i '.params.versions = []' website/hugo.yaml
Expand Down
4 changes: 2 additions & 2 deletions tools/kompat/pkg/kompat/kompat.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ func (k Kompat) Markdown(_ ...Options) string {
data := []string{k.Name}
for _, c := range k.Compatibility {
if c.MaxK8sVersion == "" || c.MinK8sVersion == c.MaxK8sVersion {
headers = append(headers, fmt.Sprintf("%s+", c.MinK8sVersion))
headers = append(headers, fmt.Sprintf("`%s`+", c.MinK8sVersion))
} else {
headers = append(headers, fmt.Sprintf("%s - %s", c.MinK8sVersion, c.MaxK8sVersion))
headers = append(headers, fmt.Sprintf("`%s` - `%s`", c.MinK8sVersion, c.MaxK8sVersion))
}
data = append(data, c.AppVersion)
}
Expand Down
10 changes: 5 additions & 5 deletions website/content/en/preview/reference/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ Karpenter surfaces environment variables and CLI parameters to allow you to conf

Karpenter uses [feature gates](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/#feature-gates-for-alpha-or-beta-features) You can enable the feature gates through the `--feature-gates` CLI environment variable or the `FEATURE_GATES` environment variable in the Karpenter deployment. For example, you can configure drift, spotToSpotConsolidation by setting the CLI argument: `--feature-gates Drift=true,SpotToSpotConsolidation=true`.

| Feature | Default | Stage | Since | Until |
|-------------------------|---------|-------|----------|----------|
| Drift | false | Alpha | `0.21.0` | `0.32.x` |
| Drift | true | Beta | `0.33.0` | |
| SpotToSpotConsolidation | false | Beta | `0.34.0` | |
| Feature | Default | Stage | Since | Until |
|-------------------------|---------|-------|---------|---------|
| Drift | false | Alpha | v0.21.x | v0.32.x |
| Drift | true | Beta | v0.33.x | |
| SpotToSpotConsolidation | false | Beta | v0.34.x | |

### Batching Parameters

Expand Down
6 changes: 3 additions & 3 deletions website/content/en/preview/upgrading/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Before you begin upgrading Karpenter, consider Karpenter compatibility issues re

[comment]: <> (the content below is generated from hack/docs/compataiblitymetrix_gen_docs.go)

| KUBERNETES | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 |
| ---------- | --------- | --------- | --------- | --------- | --------- | --------- | --------- |
| karpenter | `0.21.0`+ | `0.21.0`+ | `0.25.0`+ | `0.28.0`+ | `0.28.0`+ | `0.31.0`+ | `0.34.0`+ |
| KUBERNETES | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 |
|------------|---------|---------|---------|---------|---------|---------|---------|
| karpenter | 0.21.x+ | 0.21.x+ | 0.25.x+ | 0.28.x+ | 0.28.x+ | 0.31.x+ | 0.34.0+ |

[comment]: <> (end docs generated content from hack/docs/compataiblitymetrix_gen_docs.go)

Expand Down

0 comments on commit f343580

Please sign in to comment.