Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm Charts #728

Merged
merged 6 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions .github/workflows/delete-release-helm-chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Description: This workflow is used to communicate Kuadrant helm charts repo that a release has been deleted.
ehearneRedHat marked this conversation as resolved.
Show resolved Hide resolved

name: Delete Release Helm Chart
on:
release:
types:
- deleted
jobs:
delete_chart_release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Parse Tag
run: |
tag=${{ github.event.release.tag_name || inputs.operatorTag }}
echo "OPERATOR_VERSION=${tag#v}" >> $GITHUB_ENV
- name: Sync deleted Helm Chart with repository
run: |
make helm-sync-package-deleted \
VERSION=${{env.OPERATOR_VERSION}} \
HELM_WORKFLOWS_TOKEN=${{ secrets.HELM_WORKFLOWS_TOKEN }}
53 changes: 53 additions & 0 deletions .github/workflows/release-helm-chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Description: This workflow is used to release the Helm chart to the GitHub repository. The chart manifests should be already
ehearneRedHat marked this conversation as resolved.
Show resolved Hide resolved
# built with the target `helm-build` and the manifests changes already committed to the tag to be released.

name: Release Helm Chart
on:
release:
types:
- published
workflow_dispatch:
inputs:
operatorTag:
description: Operator bundle version tag
default: v0.0.0
type: string
jobs:
chart_release:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0

- name: Package Helm Chart
run: |
make helm-package

- name: Parse Tag
run: |
tag=${{ github.event.release.tag_name || inputs.operatorTag }}
echo "OPERATOR_VERSION=${tag#v}" >> $GITHUB_ENV
echo "OPERATOR_TAG=${tag}" >> $GITHUB_ENV

- name: Upload package to GitHub Release
uses: svenstaro/upload-release-action@v2
id: upload-chart
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: limitador-operator-${{ env.OPERATOR_VERSION }}.tgz
asset_name: chart-limitador-operator-${{ env.OPERATOR_VERSION }}.tgz
tag: ${{ env.OPERATOR_TAG }}
overwrite: true

- name: Sync Helm Chart with repository
run: |
make helm-sync-package-created \
VERSION=${{env.OPERATOR_VERSION}} \
HELM_WORKFLOWS_TOKEN=${{ secrets.HELM_WORKFLOWS_TOKEN }} \
BROWSER_DOWNLOAD_URL=${{ steps.upload-chart.outputs.browser_download_url }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ testbin/*
*.swp
*.swo
*~
kuadrant-operator
/kuadrant-operator
ehearneRedHat marked this conversation as resolved.
Show resolved Hide resolved
ehearneRedHat marked this conversation as resolved.
Show resolved Hide resolved
tmp

/catalog/kuadrant-operator-catalog
Expand Down
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ REGISTRY = quay.io
# Organization in container registry
ORG ?= kuadrant

# Repo in the container registry
DEFAULT_REPO = kuadrant-operator
REPO ?= $(DEFAULT_REPO)

# IMAGE_TAG_BASE defines the docker.io namespace and part of the image name for remote images.
# This variable is used to construct full image tags for bundle and catalog images.
#
Expand Down Expand Up @@ -254,6 +258,23 @@ $(GINKGO):
.PHONY: ginkgo
ginkgo: $(GINKGO) ## Download ginkgo locally if necessary.

HELM = ./bin/helm
HELM_VERSION = v3.15.0
$(HELM):
@{ \
set -e ;\
mkdir -p $(dir $(HELM)) ;\
OS=$(shell go env GOOS) && ARCH=$(shell go env GOARCH) && \
wget -O helm.tar.gz https://get.helm.sh/helm-$(HELM_VERSION)-$${OS}-$${ARCH}.tar.gz ;\
tar -zxvf helm.tar.gz ;\
mv $${OS}-$${ARCH}/helm $(HELM) ;\
chmod +x $(HELM) ;\
rm -rf $${OS}-$${ARCH} helm.tar.gz ;\
}

.PHONY: helm
helm: $(HELM) ## Download helm locally if necessary.

##@ Development
define patch-config
envsubst \
Expand Down
23 changes: 23 additions & 0 deletions charts/kuadrant-operator/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
47 changes: 47 additions & 0 deletions charts/kuadrant-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: v2
name: kuadrant-operator
description: The Operator to install and manage the lifecycle of the Kuadrant components deployments.
home: https://kuadrant.io
icon: https://raw.githubusercontent.com/Kuadrant/kuadrant.github.io/main/static/img/apple-touch-icon.png
keywords:
- kuadrant
- authorino
- authn
- authz
- authorization
- authentication
- service protection
- limitador
- rate limiting
- dns
- managed zones
- kubernetes
sources:
- https://github.com/Kuadrant/kuadrant-operator/
kubeVersion: ">=1.19.0-0"
type: application
# The chart version and dependencies will be properly set when the chart is released matching the operator version
version: "0.0.0"
dependencies:
- name: authorino-operator
version: 0.0.0
repository: https://kuadrant.io/helm-charts/
- name: limitador-operator
version: 0.0.0
repository: https://kuadrant.io/helm-charts/
- name: dns-operator
version: 0.0.0
repository: https://kuadrant.io/helm-charts/
maintainers:
- email: [email protected]
name: Adam Cattermole
- email: [email protected]
name: Didier Di Cesare
- email: [email protected]
name: Eguzki Astiz Lezaun
- email: [email protected]
name: Guilherme Cassolato
- email: [email protected]
name: Jim Fitzpatrick
- email: [email protected]
name: Kevin Chi Fan
Loading
Loading