diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 334d8c0e..00000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,12 +0,0 @@ -repos: - - repo: https://github.com/norwoodj/helm-docs - rev: v1.11.3 - hooks: - - id: helm-docs - args: - - --chart-search-root=deploy/charts/ - - # Repeating the flag adds this to the list, now [./_templates.gotmpl, README.md.gotmpl] - # A base filename makes it relative to each chart directory found - - --template-files=README.md.gotmpl - - --log-level=trace diff --git a/builder.dockerfile b/builder.dockerfile deleted file mode 100644 index b8de692a..00000000 --- a/builder.dockerfile +++ /dev/null @@ -1,39 +0,0 @@ -FROM golang:1.23.1 as builder - -WORKDIR /go/github.com/jetstack/preflight - -# Run a dependency resolve with just the go mod files present for -# better caching -COPY go.mod go.sum . - -COPY < ``` Enable or disable the PodDisruptionBudget resource, which helps prevent downtime during voluntary disruptions such as during a Node upgrade. +#### **podDisruptionBudget.minAvailable** ~ `number` + +Configure the minimum available pods for disruptions. Can either be set to an integer (e.g. 1) or a percentage value (e.g. 25%). +Cannot be used if `maxUnavailable` is set. + +#### **podDisruptionBudget.maxUnavailable** ~ `number` + +Configure the maximum unavailable pods for disruptions. Can either be set to an integer (e.g. 1) or a percentage value (e.g. 25%). +Cannot be used if `minAvailable` is set. + ### CRDs @@ -469,20 +475,5 @@ This option makes it so that the "helm.sh/resource-policy": keep annotation is a > ``` When set to false, the rendered output does not contain the. VenafiConnection CRDs and RBAC. This is useful for when the. Venafi Connection resources are already installed separately. -#### **podDisruptionBudget.enabled** ~ `bool` -> Default value: -> ```yaml -> false -> ``` -#### **podDisruptionBudget.minAvailable** ~ `number` -> Default value: -> ```yaml -> 1 -> ``` -#### **podDisruptionBudget.maxUnavailable** ~ `number` -> Default value: -> ```yaml -> 1 -> ``` \ No newline at end of file diff --git a/deploy/charts/venafi-kubernetes-agent/README.md.gotmpl b/deploy/charts/venafi-kubernetes-agent/README.md.gotmpl deleted file mode 100644 index 9a6edc26..00000000 --- a/deploy/charts/venafi-kubernetes-agent/README.md.gotmpl +++ /dev/null @@ -1,18 +0,0 @@ -{{ template "chart.header" . }} -{{ template "chart.description" . }} - -{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} - -The Venafi Kubernetes Agent connects your Kubernetes or OpenShift cluster to the Venafi Control Plane. -You will require a Venafi Control Plane account to connect your cluster. -If you do not have one, you can sign up for a free trial now at: -- https://venafi.com/try-venafi/tls-protect/ - -> 📖 Read the [Venafi Kubernetes Agent documentation](https://docs.venafi.cloud/vaas/k8s-components/c-tlspk-agent-overview/), -> to learn how install and configure this Helm chart. - -{{ template "chart.requirementsSection" . }} - -{{ template "chart.valuesSection" . }} - -{{ template "helm-docs.versionFooter" . }} diff --git a/deploy/charts/venafi-kubernetes-agent/values.schema.json b/deploy/charts/venafi-kubernetes-agent/values.schema.json index 38174f31..a6e2c0b5 100644 --- a/deploy/charts/venafi-kubernetes-agent/values.schema.json +++ b/deploy/charts/venafi-kubernetes-agent/values.schema.json @@ -477,14 +477,15 @@ }, "helm-values.podDisruptionBudget.enabled": { "default": false, + "description": "Enable or disable the PodDisruptionBudget resource, which helps prevent downtime during voluntary disruptions such as during a Node upgrade.", "type": "boolean" }, "helm-values.podDisruptionBudget.maxUnavailable": { - "default": 1, + "description": "Configure the maximum unavailable pods for disruptions. Can either be set to an integer (e.g. 1) or a percentage value (e.g. 25%).\nCannot be used if `minAvailable` is set.", "type": "number" }, "helm-values.podDisruptionBudget.minAvailable": { - "default": 1, + "description": "Configure the minimum available pods for disruptions. Can either be set to an integer (e.g. 1) or a percentage value (e.g. 25%).\nCannot be used if `maxUnavailable` is set.", "type": "number" }, "helm-values.podSecurityContext": { diff --git a/deploy/charts/venafi-kubernetes-agent/values.yaml b/deploy/charts/venafi-kubernetes-agent/values.yaml index c626f334..b0fc45ef 100644 --- a/deploy/charts/venafi-kubernetes-agent/values.yaml +++ b/deploy/charts/venafi-kubernetes-agent/values.yaml @@ -254,11 +254,13 @@ podDisruptionBudget: # Configure the minimum available pods for disruptions. Can either be set to # an integer (e.g. 1) or a percentage value (e.g. 25%). # Cannot be used if `maxUnavailable` is set. + # +docs:property # minAvailable: 1 # Configure the maximum unavailable pods for disruptions. Can either be set to # an integer (e.g. 1) or a percentage value (e.g. 25%). # Cannot be used if `minAvailable` is set. + # +docs:property # maxUnavailable: 1 # +docs:section=CRDs @@ -284,8 +286,3 @@ crds: # VenafiConnection CRDs and RBAC. This is useful for when the # Venafi Connection resources are already installed separately. include: false - -podDisruptionBudget: - enabled: false - minAvailable: 1 - maxUnavailable: 1 \ No newline at end of file diff --git a/make/util/checkhash.sh b/make/util/checkhash.sh deleted file mode 100755 index 3f1907b8..00000000 --- a/make/util/checkhash.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -set -eu -o pipefail - -# This script takes the hash of its first argument and verifies it against the -# hex hash given in its second argument - -SHASUM=$(./make/util/hash.sh "$1") - -# When running 'make learn-sha-tools', we don't want this script to fail. -# Instead we log what sha values are wrong, so the make.mk file can be updated. -if [ "$SHASUM" != "$2" ] && [ "${LEARN_FILE:-}" != "" ]; then - echo "s/$2/$SHASUM/g" >> "${LEARN_FILE:-}" - exit 0 -fi - -if [ "$SHASUM" != "$2" ]; then - echo "invalid checksum for \"$1\": wanted \"$2\" but got \"$SHASUM\"" - exit 1 -fi diff --git a/make/util/hash.sh b/make/util/hash.sh deleted file mode 100755 index 50364102..00000000 --- a/make/util/hash.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -set -eu -o pipefail - -# This script is a wrapper for outputting purely the sha256 hash of the input file, -# ideally in a portable way. - -sha256sum "$1" | cut -d" " -f1