Revision 2fc54dd6dd9edb507cb3111e175071000189b81c authored by Daneyon Hansen on 04 March 2024, 23:58:46 UTC, committed by christarazi on 17 June 2024, 14:16:33 UTC
- `operator/option/config.go`: Adds an option for enabling AWS IPv6 prefix delegation (PD).
- `*_test.go`: Updates IPAM implementation unit tests to call `NewNodeManager()` with IPv6 PD config option.
- `pkg/ipam/node.go`: Adds `ipv6Alloc` field to `Node` type to represent IPv6-specific allocation node attributes.
- `pkg/ipam/node_manager.go`: Adds IPv6 PD field to the `NodeManager` type and associated `NewNodeManager()`.

Supports: #30684

Signed-off-by: Daneyon Hansen <daneyon.hansen@solo.io>
1 parent 51ff384
Raw File
print-chart-version.sh
#!/usr/bin/env bash
# shellcheck disable=SC2001

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

VERSION="$(cat "$SCRIPT_DIR/../../VERSION")"
GIT_COMMIT_COUNT="$(git rev-list --count "$(git log --follow -1 --pretty=%H VERSION)"..HEAD)"
GIT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
GIT_BRANCH_SANITIZED="$(echo "${GIT_BRANCH}" | sed 's/[^[:alnum:]]/-/g' )"
GIT_HASH="$(git rev-parse --short HEAD)"
CHART_VERSION_PRERELEASE_PREFIX=dev
CHART_VERSION_DEV="${VERSION}-${CHART_VERSION_PRERELEASE_PREFIX}.${GIT_COMMIT_COUNT}+${GIT_BRANCH_SANITIZED}-${GIT_HASH}"
# Using an OCI repository for helm means versions are stored as OCI tags, which cannot contain +.
# Using _ isn't valid either, because helm chart versions must be semver compatible.
# No v prefix for the chart version.
CHART_VERSION=$(echo "${CHART_VERSION_DEV}" | sed 's/+/-/g')

echo "${CHART_VERSION}"
back to top