From 34c53d018f3a28a72f02c420240bd85d54b5e08f Mon Sep 17 00:00:00 2001 From: bruelea <166021996+bruelea@users.noreply.github.com> Date: Tue, 23 Sep 2025 12:23:35 +0200 Subject: [PATCH 1/8] start release pipeline on workflow_dispatch --- .github/workflows/release.yaml | 109 ++++++++++++++--------- scripts/update-changelog-from-release.sh | 16 ++-- 2 files changed, 75 insertions(+), 50 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a841d5f0..71928cfe 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,9 +2,16 @@ name: Release on: - push: - tags: - - 'v*' + workflow_dispatch: + inputs: + version: + description: 'Version that should be released, format: v0.0.0' + required: true + type: string + tagMessage: + description: 'Message that will be added to the version tag' + required: true + type: string permissions: contents: write @@ -25,50 +32,57 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - - name: Get tag information - id: tag_data + - name: Update kustomization.yaml run: | - # Get tag name and message - TAG_NAME=${GITHUB_REF#refs/tags/} - TAG_MESSAGE=$(git tag -n1 "$TAG_NAME" | sed "s|^$TAG_NAME[[:space:]]*||") - - # If tag message is empty, use a default - if [ -z "$TAG_MESSAGE" ]; then - TAG_MESSAGE="Release $TAG_NAME" + # Fail if tag already exists + if [ -n "$(git tag --list "${{ inputs.version }}")" ]; then + echo "Tag "${{ inputs.version }}" already exists. Exit." + exit 1 + else + echo "Tag "${{ inputs.version }}" does not exist. Continue." fi + ./scripts/bump-version.sh "${{ inputs.version }}" - echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT - echo "TAG_MESSAGE<> $GITHUB_OUTPUT - echo "$TAG_MESSAGE" >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT - echo "VERSION=${TAG_NAME#v}" >> $GITHUB_OUTPUT - - - name: Create GitHub Release + - name: Generate release notes for changelog env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Determine if this is a prerelease - PRERELEASE="" - if [[ "${{ steps.tag_data.outputs.TAG_NAME }}" =~ (alpha|beta|rc) ]]; then - PRERELEASE="--prerelease" + # Get the previous tag to determine commit range + PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "") + + # Generate release notes using GitHub API without creating a release + if [ -n "$PREVIOUS_TAG" ]; then + RELEASE_NOTES=$(gh api repos/:owner/:repo/releases/generate-notes \ + -f tag_name="${{ inputs.version }}" \ + -f target_commitish="$(git rev-parse HEAD)" \ + -f previous_tag_name="$PREVIOUS_TAG" \ + --jq '.body') + else + # If no previous tag, generate notes from all commits + RELEASE_NOTES=$(gh api repos/:owner/:repo/releases/generate-notes \ + -f tag_name="${{ inputs.version }}" \ + -f target_commitish="$(git rev-parse HEAD)" \ + --jq '.body') fi - # Create release with auto-generated notes - gh release create "${{ steps.tag_data.outputs.TAG_NAME }}" \ - --title "${{ steps.tag_data.outputs.TAG_NAME }}" \ - --notes "${{ steps.tag_data.outputs.TAG_MESSAGE }}" \ - --generate-notes \ - $PRERELEASE - - - name: Update kustomization.yaml - run: | - ./scripts/bump-version.sh "${{ steps.tag_data.outputs.TAG_NAME }}" + # Save release notes to a file for use in changelog + echo "$RELEASE_NOTES" > /tmp/release_notes.md - name: Update CHANGELOG.md env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - ./scripts/update-changelog-from-release.sh "${{ steps.tag_data.outputs.TAG_NAME }}" + # Read the generated release notes + RELEASE_NOTES=$(cat /tmp/release_notes.md) + + # Update changelog with the generated notes + echo "" >> CHANGELOG.md + echo "## ${{ inputs.version }}" >> CHANGELOG.md + echo "" >> CHANGELOG.md + echo "$RELEASE_NOTES" >> CHANGELOG.md + + # Also run your existing changelog script if needed + ./scripts/update-changelog-from-release.sh "${{ inputs.version }}" - name: Commit and push changes env: @@ -81,17 +95,17 @@ jobs: fi # Create a new branch for the changes - BRANCH_NAME="release-updates-${{ steps.tag_data.outputs.TAG_NAME }}" + BRANCH_NAME="release-updates-${{ inputs.version }}" git checkout -b "$BRANCH_NAME" git add config/manager/kustomization.yaml CHANGELOG.md - git commit -m "[skip ci] chore: bump version to ${{ steps.tag_data.outputs.TAG_NAME }} and update changelog" - + git commit -m "[skip ci] chore: bump version to ${{ inputs.version }} and update changelog" # Push the branch and create PR + git push origin "$BRANCH_NAME" PR_URL=$(gh pr create \ - --title "chore: bump version to ${{ steps.tag_data.outputs.TAG_NAME }} and update changelog" \ - --body "Automated version bump and changelog update for release ${{ steps.tag_data.outputs.TAG_NAME }}" \ + --title "chore: bump version to ${{ inputs.version }} and update changelog" \ + --body "Automated version bump and changelog update for release ${{ inputs.version }}" \ --head "$BRANCH_NAME" \ --base main) @@ -99,5 +113,16 @@ jobs: PR_NUMBER=$(echo "$PR_URL" | sed 's/.*\/pull\///') echo "Created PR #$PR_NUMBER: $PR_URL" - # Enable auto-merge and merge the PR - gh pr merge "$PR_NUMBER" --auto --squash --delete-branch + # Enable merge the PR + gh pr merge "$PR_NUMBER" --squash --delete-branch + + - name: Create GitHub Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + # Create release with auto-generated notes + gh release create "${{ inputs.version }}" \ + --title "${{ inputs.version }}" \ + --notes "${{ inputs.tagMessage }}" \ + --generate-notes \ + $PRERELEASE diff --git a/scripts/update-changelog-from-release.sh b/scripts/update-changelog-from-release.sh index 9b21f8d7..14889007 100755 --- a/scripts/update-changelog-from-release.sh +++ b/scripts/update-changelog-from-release.sh @@ -13,14 +13,14 @@ fi echo "Updating CHANGELOG.md for release $TAG_NAME..." -# Get release data from GitHub -RELEASE_DATA=$(gh release view "$TAG_NAME" --json tagName,publishedAt,body,url) +# Get release data from file +RELEASE_NOTES=$(cat /tmp/release_notes.md) -# Extract fields -TAG=$(echo "$RELEASE_DATA" | jq -r '.tagName') -DATE=$(echo "$RELEASE_DATA" | jq -r '.publishedAt' | cut -d'T' -f1) -BODY=$(echo "$RELEASE_DATA" | jq -r '.body') -URL=$(echo "$RELEASE_DATA" | jq -r '.url') +# Use current date and tag name from parameter +TAG="$TAG_NAME" +DATE=$(date +%Y-%m-%d) +BODY="$RELEASE_NOTES" +URL="https://github.com/netbox-community/netbox-operator/releases/tag/$TAG_NAME" # Validate extracted fields if [ -z "$TAG" ] || [ -z "$DATE" ] || [ -z "$URL" ]; then @@ -67,4 +67,4 @@ awk '/^## \[/ {found=1} found {print}' CHANGELOG.md >> "$TEMP_FILE" # Replace the original file mv "$TEMP_FILE" CHANGELOG.md -echo "CHANGELOG.md updated successfully!" \ No newline at end of file +echo "CHANGELOG.md updated successfully!" From e64eb4a801e08a04c96de07db90fb16cf6210dca Mon Sep 17 00:00:00 2001 From: bruelea <166021996+bruelea@users.noreply.github.com> Date: Mon, 29 Sep 2025 12:53:29 +0200 Subject: [PATCH 2/8] improve based on pr review --- .github/workflows/release.yaml | 20 +++++++------------- scripts/bump-version.sh | 27 --------------------------- 2 files changed, 7 insertions(+), 40 deletions(-) delete mode 100755 scripts/bump-version.sh diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 71928cfe..ec94605c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -41,7 +41,11 @@ jobs: else echo "Tag "${{ inputs.version }}" does not exist. Continue." fi - ./scripts/bump-version.sh "${{ inputs.version }}" + + # Update image tag + cd config/manager + kustomize edit set image controller="netbox-operator:${{inputs.version}}" + cd ../.. - name: Generate release notes for changelog env: @@ -72,16 +76,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Read the generated release notes - RELEASE_NOTES=$(cat /tmp/release_notes.md) - # Update changelog with the generated notes - echo "" >> CHANGELOG.md - echo "## ${{ inputs.version }}" >> CHANGELOG.md - echo "" >> CHANGELOG.md - echo "$RELEASE_NOTES" >> CHANGELOG.md - - # Also run your existing changelog script if needed ./scripts/update-changelog-from-release.sh "${{ inputs.version }}" - name: Commit and push changes @@ -113,7 +108,7 @@ jobs: PR_NUMBER=$(echo "$PR_URL" | sed 's/.*\/pull\///') echo "Created PR #$PR_NUMBER: $PR_URL" - # Enable merge the PR + # Merge the PR gh pr merge "$PR_NUMBER" --squash --delete-branch - name: Create GitHub Release @@ -124,5 +119,4 @@ jobs: gh release create "${{ inputs.version }}" \ --title "${{ inputs.version }}" \ --notes "${{ inputs.tagMessage }}" \ - --generate-notes \ - $PRERELEASE + --generate-notes diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh deleted file mode 100755 index 298eb861..00000000 --- a/scripts/bump-version.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -set -e - -# Script to bump version in kustomization.yaml -# Usage: ./bump-version.sh - -NEW_VERSION=$1 - -if [ -z "$NEW_VERSION" ]; then - echo "Usage: $0 " - exit 1 -fi - -KUSTOMIZATION_FILE="config/manager/kustomization.yaml" - -if [ ! -f "$KUSTOMIZATION_FILE" ]; then - echo "Error: $KUSTOMIZATION_FILE not found!" - exit 1 -fi - -echo "Updating version to $NEW_VERSION in $KUSTOMIZATION_FILE..." - -# Update the newTag -sed -i.bak "s/newTag: .*/newTag: $NEW_VERSION/" "$KUSTOMIZATION_FILE" -rm -f "$KUSTOMIZATION_FILE.bak" - -echo "Version bumped to $NEW_VERSION successfully!" From a999900f7aeace190944f5b4da1cc67ef9f0c0cc Mon Sep 17 00:00:00 2001 From: bruelea <166021996+bruelea@users.noreply.github.com> Date: Mon, 29 Sep 2025 13:38:47 +0200 Subject: [PATCH 3/8] use latest netbox helm chart --- kind/deploy-netbox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kind/deploy-netbox.sh b/kind/deploy-netbox.sh index 5757f1e7..84cf7d3b 100755 --- a/kind/deploy-netbox.sh +++ b/kind/deploy-netbox.sh @@ -50,7 +50,7 @@ if [[ "${VERSION}" == "3.7.8" ]] ;then "ghcr.io/zalando/spilo-16:3.2-p3" \ ) # Allow override via environment variable, otherwise fallback to default - NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-5.0.0-beta.169/netbox-5.0.0-beta.169.tgz" + NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-7.0.2/netbox-7.0.2.tgz" # patch load-data.sh sed 's/netbox-demo-v4.1.sql/netbox-demo-v3.7.sql/g' $SCRIPT_DIR/load-data-job/load-data.orig.sh > $SCRIPT_DIR/load-data-job/load-data.sh && chmod +x $SCRIPT_DIR/load-data-job/load-data.sh From c177cf5b4792be6ec2cfdac5f5816aa15fe3d41c Mon Sep 17 00:00:00 2001 From: bruelea <166021996+bruelea@users.noreply.github.com> Date: Mon, 29 Sep 2025 13:43:47 +0200 Subject: [PATCH 4/8] remove kind load docker-image --- kind/deploy-netbox.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/kind/deploy-netbox.sh b/kind/deploy-netbox.sh index 84cf7d3b..3ab0a53f 100755 --- a/kind/deploy-netbox.sh +++ b/kind/deploy-netbox.sh @@ -91,16 +91,6 @@ else exit 1 fi -if $IS_VCLUSTER; then - echo "[Running in vCluster mode] skipping docker pull and kind load for remote images." -else - echo "[Running in Kind mode] pulling and loading remote images into kind cluster..." - for img in "${Remote_Images[@]}"; do - docker pull "$img" - kind load docker-image "$img" --name "${CLUSTER}" - done -fi - # build image for loading local data via NetBox API cd "$SCRIPT_DIR/load-data-job" From 4924451093ba47fa83eb7776029200a5e7d27014 Mon Sep 17 00:00:00 2001 From: bruelea <166021996+bruelea@users.noreply.github.com> Date: Mon, 29 Sep 2025 13:44:54 +0200 Subject: [PATCH 5/8] undo helm chart upgrade --- kind/deploy-netbox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kind/deploy-netbox.sh b/kind/deploy-netbox.sh index 3ab0a53f..bad6e0ec 100755 --- a/kind/deploy-netbox.sh +++ b/kind/deploy-netbox.sh @@ -50,7 +50,7 @@ if [[ "${VERSION}" == "3.7.8" ]] ;then "ghcr.io/zalando/spilo-16:3.2-p3" \ ) # Allow override via environment variable, otherwise fallback to default - NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-7.0.2/netbox-7.0.2.tgz" + NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-5.0.0-beta.169/netbox-5.0.0-beta.169.tgz" # patch load-data.sh sed 's/netbox-demo-v4.1.sql/netbox-demo-v3.7.sql/g' $SCRIPT_DIR/load-data-job/load-data.orig.sh > $SCRIPT_DIR/load-data-job/load-data.sh && chmod +x $SCRIPT_DIR/load-data-job/load-data.sh From b41a64b5340ec700ce2fb2d957165bc269b934c9 Mon Sep 17 00:00:00 2001 From: bruelea <166021996+bruelea@users.noreply.github.com> Date: Mon, 29 Sep 2025 13:49:43 +0200 Subject: [PATCH 6/8] upgrade netbox helm chart --- kind/deploy-netbox.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kind/deploy-netbox.sh b/kind/deploy-netbox.sh index bad6e0ec..8922cfb9 100755 --- a/kind/deploy-netbox.sh +++ b/kind/deploy-netbox.sh @@ -8,7 +8,7 @@ set -e -o pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" # Allow override via environment variable, otherwise fallback to default -NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-5.0.0-beta.169/netbox-5.0.0-beta.169.tgz" +NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-7.0.2/netbox-7.0.2.tgz" if [[ $# -lt 3 || $# -gt 4 ]]; then echo "Usage: $0 [--vcluster]" @@ -50,7 +50,7 @@ if [[ "${VERSION}" == "3.7.8" ]] ;then "ghcr.io/zalando/spilo-16:3.2-p3" \ ) # Allow override via environment variable, otherwise fallback to default - NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-5.0.0-beta.169/netbox-5.0.0-beta.169.tgz" + NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-7.0.2/netbox-7.0.2.tgz" # patch load-data.sh sed 's/netbox-demo-v4.1.sql/netbox-demo-v3.7.sql/g' $SCRIPT_DIR/load-data-job/load-data.orig.sh > $SCRIPT_DIR/load-data-job/load-data.sh && chmod +x $SCRIPT_DIR/load-data-job/load-data.sh @@ -67,7 +67,7 @@ elif [[ "${VERSION}" == "4.0.11" ]] ;then "ghcr.io/zalando/spilo-16:3.2-p3" \ ) # Allow override via environment variable, otherwise fallback to default - NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-5.0.0-beta.169/netbox-5.0.0-beta.169.tgz" + NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-7.0.2/netbox-7.0.2.tgz" # patch load-data.sh sed 's/netbox-demo-v4.1.sql/netbox-demo-v4.0.sql/g' $SCRIPT_DIR/load-data-job/load-data.orig.sh > $SCRIPT_DIR/load-data-job/load-data.sh && chmod +x $SCRIPT_DIR/load-data-job/load-data.sh From f9db92f95c7d3fb5bb8e2e523e3e1e6bdcd6b001 Mon Sep 17 00:00:00 2001 From: bruelea <166021996+bruelea@users.noreply.github.com> Date: Mon, 29 Sep 2025 14:08:40 +0200 Subject: [PATCH 7/8] load images to kind --- kind/deploy-netbox.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/kind/deploy-netbox.sh b/kind/deploy-netbox.sh index 8922cfb9..f9938fe0 100755 --- a/kind/deploy-netbox.sh +++ b/kind/deploy-netbox.sh @@ -44,7 +44,6 @@ if [[ "${VERSION}" == "3.7.8" ]] ;then # need to align with netbox-chart otherwise the creation of the cluster will hang declare -a Remote_Images=( \ "busybox:1.36.1" \ - "docker.io/bitnami/redis:7.2.4-debian-12-r9" \ "docker.io/netboxcommunity/netbox:v3.7.8" \ "ghcr.io/zalando/postgres-operator:v1.12.2" \ "ghcr.io/zalando/spilo-16:3.2-p3" \ @@ -61,7 +60,7 @@ elif [[ "${VERSION}" == "4.0.11" ]] ;then # need to align with netbox-chart otherwise the creation of the cluster will hang declare -a Remote_Images=( \ "busybox:1.36.1" \ - "docker.io/bitnami/redis:7.4.0-debian-12-r2" \ + "docker.io/bitnamilegacy/redis:7.4.0-debian-12-r2" \ "ghcr.io/netbox-community/netbox:v4.0.11" \ "ghcr.io/zalando/postgres-operator:v1.12.2" \ "ghcr.io/zalando/spilo-16:3.2-p3" \ @@ -77,7 +76,7 @@ elif [[ "${VERSION}" == "4.1.11" ]] ;then # need to align with netbox-chart otherwise the creation of the cluster will hang declare -a Remote_Images=( \ "busybox:1.37.0" \ - "docker.io/bitnami/redis:7.4.1-debian-12-r2" \ + "docker.io/bitnamilegacy/redis:7.4.1-debian-12-r2" \ "ghcr.io/netbox-community/netbox:v4.1.11" \ "ghcr.io/zalando/postgres-operator:v1.12.2" \ "ghcr.io/zalando/spilo-16:3.2-p3" \ @@ -91,6 +90,16 @@ else exit 1 fi +if $IS_VCLUSTER; then + echo "[Running in vCluster mode] skipping docker pull and kind load for remote images." +else + echo "[Running in Kind mode] pulling and loading remote images into kind cluster..." + for img in "${Remote_Images[@]}"; do + docker pull "$img" + kind load docker-image "$img" --name "${CLUSTER}" + done +fi + # build image for loading local data via NetBox API cd "$SCRIPT_DIR/load-data-job" From a7a19b6a3ad6d21a7586aaf1ed96a78f09446020 Mon Sep 17 00:00:00 2001 From: bruelea <166021996+bruelea@users.noreply.github.com> Date: Mon, 29 Sep 2025 14:34:06 +0200 Subject: [PATCH 8/8] fix kind deployment --- kind/deploy-netbox.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/kind/deploy-netbox.sh b/kind/deploy-netbox.sh index f9938fe0..7bdd2c17 100755 --- a/kind/deploy-netbox.sh +++ b/kind/deploy-netbox.sh @@ -8,7 +8,7 @@ set -e -o pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" # Allow override via environment variable, otherwise fallback to default -NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-7.0.2/netbox-7.0.2.tgz" +NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-5.0.0-beta.169/netbox-5.0.0-beta.169.tgz" if [[ $# -lt 3 || $# -gt 4 ]]; then echo "Usage: $0 [--vcluster]" @@ -44,12 +44,13 @@ if [[ "${VERSION}" == "3.7.8" ]] ;then # need to align with netbox-chart otherwise the creation of the cluster will hang declare -a Remote_Images=( \ "busybox:1.36.1" \ + "docker.io/bitnamilegacy/redis:7.2.4-debian-12-r9" \ "docker.io/netboxcommunity/netbox:v3.7.8" \ "ghcr.io/zalando/postgres-operator:v1.12.2" \ "ghcr.io/zalando/spilo-16:3.2-p3" \ ) # Allow override via environment variable, otherwise fallback to default - NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-7.0.2/netbox-7.0.2.tgz" + NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-5.0.0-beta.169/netbox-5.0.0-beta.169.tgz" # patch load-data.sh sed 's/netbox-demo-v4.1.sql/netbox-demo-v3.7.sql/g' $SCRIPT_DIR/load-data-job/load-data.orig.sh > $SCRIPT_DIR/load-data-job/load-data.sh && chmod +x $SCRIPT_DIR/load-data-job/load-data.sh @@ -66,7 +67,7 @@ elif [[ "${VERSION}" == "4.0.11" ]] ;then "ghcr.io/zalando/spilo-16:3.2-p3" \ ) # Allow override via environment variable, otherwise fallback to default - NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-7.0.2/netbox-7.0.2.tgz" + NETBOX_HELM_CHART="${NETBOX_HELM_REPO:-https://github.com}/netbox-community/netbox-chart/releases/download/netbox-5.0.0-beta.169/netbox-5.0.0-beta.169.tgz" # patch load-data.sh sed 's/netbox-demo-v4.1.sql/netbox-demo-v4.0.sql/g' $SCRIPT_DIR/load-data-job/load-data.orig.sh > $SCRIPT_DIR/load-data-job/load-data.sh && chmod +x $SCRIPT_DIR/load-data-job/load-data.sh @@ -201,7 +202,9 @@ ${HELM} upgrade --install netbox ${NETBOX_HELM_CHART} \ --set resources.requests.memory="512Mi" \ --set resources.limits.cpu="2000m" \ --set resources.limits.memory="2Gi" \ - $REGISTRY_ARG + --set redis.image.repository="bitnamilegacy/redis" \ + --set global.security.allowInsecureImages=true + $REGISTRY_ARG if [[ "$FORCE_NETBOX_NGINX_IPV4" == "true" ]]; then echo "Creating nginx-unit ConfigMap and patching deployment"