Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3e5eafc
Update README.md file adding quich start guide, project detailed info…
albertompe Feb 5, 2026
666c40f
Update license header
albertompe Feb 5, 2026
81acf5d
Configure coherent controller-gen version for the operator sdk versio…
albertompe Feb 5, 2026
8f1721b
Add PROJECT file required by operator sdk to build the bundle
albertompe Feb 5, 2026
c998bbb
Add base CSV file
albertompe Feb 5, 2026
f691b87
Fix logo size
albertompe Feb 6, 2026
234d1f6
Add Operator icon to CSV base file
albertompe Feb 6, 2026
b31957d
Update version and set the CRD annotation version from make
albertompe Feb 6, 2026
5147624
Update the operator-version when generating the manifests to update b…
albertompe Feb 6, 2026
bc49548
Update logging message
albertompe Feb 6, 2026
f7e0c40
Trimming file
albertompe Feb 6, 2026
275cafb
Commit generated CRD
albertompe Feb 6, 2026
1ceba53
Remove image set by kustomize to not interfere with other goals
albertompe Feb 6, 2026
a58b70b
Update Makefile to build and push the catalog
albertompe Feb 6, 2026
cd9f349
clean goal removes .local directory
albertompe Feb 6, 2026
2ae1282
Updating development guide
albertompe Feb 6, 2026
44173c9
Rename variables
albertompe Feb 7, 2026
e445afd
Update Go version to 1.25.7
albertompe Feb 7, 2026
b68a75b
Use profile as IMG version
albertompe Feb 9, 2026
67fc684
Use version to tag IMG for coherence with the other release goals
albertompe Feb 9, 2026
070d7ff
release.yml workflow updated to build and push operator, bundle and c…
albertompe Feb 9, 2026
f3bdfc5
Update maintainers email address in CSV base file
albertompe Feb 9, 2026
90594c7
Add copyright info
albertompe Feb 9, 2026
619a57f
Update version in Quick Start guide
albertompe Feb 9, 2026
982a3b9
Reference repo releases to get the available versions
albertompe Feb 9, 2026
a33a142
Fixing image name in release workflow
albertompe Feb 9, 2026
749e223
Update operator info in base csv file
albertompe Feb 9, 2026
9c75877
Adjust channels in Makefile
albertompe Feb 9, 2026
31a38f5
Update CSV base adding operator info
albertompe Feb 9, 2026
7fcb080
Update CSV base -> capability level set to Auto Pilot
albertompe Feb 9, 2026
c586b0f
Fix copyright headers
albertompe Feb 9, 2026
4063470
Check bundle generation using IMAGE_TAG_BASE
albertompe Feb 10, 2026
bc2d8b6
Use redkey.inditex.dev group
albertompe Feb 10, 2026
d7516d7
Add required copyright headers to generated files
albertompe Feb 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 74 additions & 54 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,72 +1,92 @@
# SPDX-FileCopyrightText: 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
# SPDX-License-Identifier: Apache-2.0
name: Release and publish a new version
name: 🚀 Release
permissions: read-all

on:
pull_request:
types: [closed]
branches: ['main', 'hotfix/*']
release:
types:
- created

env:
REGISTRY: ghcr.io
OWNER: InditexTech
OPERATOR_NAME: redkey-operator
IMAGE_NAME: inditextech/redkey-operator

jobs:
create-release:
name: Create release
release:
name: 🏷️ Release
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
version: ${{ steps.version.outputs.version }}
user_agent_version: ${{ steps.version.outputs.user_agent_version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get version from Makefile
id: makefile_version
uses: ./.github/workflows/actions/get-version-from-makefile
- name: Check version
uses: ./.github/workflows/actions/check-version
- name: 🛎️ Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
new_version: ${{ steps.makefile_version.outputs.version }}
- name: Create release
uses: ncipollo/release-action@v1.16.0
id: github-release
continue-on-error: true
with:
tag: v${{ steps.makefile_version.outputs.version }}
commit: main
body: |
Check out the [changelog](CHANGELOG.md) for version v${{ steps.makefile_version.outputs.version }}
publish-operator-image:
name: Publish Redkey Operator image to the registry
needs: create-release
fetch-depth: 0
- name: Check bundle generation 🧪
run: |
make bundle IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
git diff --ignore-matching-lines='.*createdAt:.*' --exit-code

- name: 📝 Load Operator version
id: version
run: |
echo "version=$(make version)" >> $GITHUB_OUTPUT
echo "user_agent_version=$(cat cmd/main.go | grep 'USER_AGENT_VERSION =' | cut -d'=' -f2 | cut -d'"' -f2)" >> $GITHUB_OUTPUT
echo $GITHUB_OUTPUT

check:
name: 🔎 Check versions
needs: release
runs-on: ubuntu-latest
steps:
- name: 🔎 Check versions
run: |
echo "version: ${{ needs.release.outputs.version }}"
echo "user_agent_version: ${{ needs.release.outputs.user_agent_version }}"
echo "tag_name: ${{ github.event.release.tag_name }}"

if [ "${{ github.event.release.tag_name }}" != "${{ needs.release.outputs.version }}" ]; then
echo "Version in Makefile does not match release tag"
exit 1
fi

if [ "${{ github.event.release.tag_name }}" != "${{ needs.release.outputs.user_agent_version }}" ]; then
echo "Version in main.go/USER_AGENT_VERSION does not match release tag"
exit 1
fi

build:
name: 🛠️ Build Operator images
needs: check
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get version from Makefile
id: makefile_version
uses: ./.github/workflows/actions/get-version-from-makefile
- name: Login to registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
- name: 🛎️ Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0

- name: 🔐 Login into ${{ env.REGISTRY }}
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.OPERATOR_NAME }}:${{ steps.makefile_version.outputs.version }}
# publish-operator:
# name: Publish Redkey Operator to OperatorHub.io
# needs: [create-release, publish-operator-image]
# runs-on: ubuntu-latest
# steps:
# - name: checkout code
# uses: actions/checkout@v4

- name: 🏗️ Build and push Operator image
run: |
make docker-build IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
make docker-push IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: 🏗️ Build and push Operator bundle
run: |
make bundle IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
make bundle-build IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
make bundle-push IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: 🏗️ Build and push Operator catalog
run: |
make catalog-build IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
make catalog-push IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ config/init-test/tests.yaml

# Bundle temporary files
bundle
bundle_*
bundle.Dockerfile

# Certificates
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-FileCopyrightText: 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
# SPDX-License-Identifier: Apache-2.0
golang 1.25.6
golang 1.25.7
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2024 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
SPDX-FileCopyrightText: 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)

SPDX-License-Identifier: CC-BY-SA-4.0
-->
Expand Down
2 changes: 1 addition & 1 deletion CLA.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2024 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
SPDX-FileCopyrightText: 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)

SPDX-License-Identifier: CC-BY-SA-4.0
-->
Expand Down
2 changes: 1 addition & 1 deletion CODE-OF-CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2024 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
SPDX-FileCopyrightText: 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)

SPDX-License-Identifier: CC-BY-SA-4.0
-->
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2024 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
SPDX-FileCopyrightText: 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)

SPDX-License-Identifier: CC-BY-SA-4.0
-->
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### Build stage

# Define the desired Golang version
ARG GOLANG_VERSION=1.25.6
ARG GOLANG_VERSION=1.25.7

# Use an official Golang image with a specific version based on Debian
FROM golang:${GOLANG_VERSION}-trixie AS builder
Expand Down
2 changes: 1 addition & 1 deletion MANIFESTO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2024 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
SPDX-FileCopyrightText: 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)

SPDX-License-Identifier: CC-BY-SA-4.0
-->
Expand Down
Loading
Loading