Skip to content
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
7 changes: 0 additions & 7 deletions .github/CODEOWNERS

This file was deleted.

11 changes: 0 additions & 11 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

92 changes: 0 additions & 92 deletions .github/ISSUE_TEMPLATE/helm.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/create-branch-for-helm.yaml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/helm.yaml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Lint and Validate Charts

on:
pull_request:
branches: [main]
paths: [charts/**]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: azure/setup-helm@v4

- name: Check version bump
run: |
version_new=$(grep '^version:' charts/kafka-ui/Chart.yaml | awk '{print $2}')
version_old=$(curl -s https://raw.githubusercontent.com/${{ github.repository }}/main/charts/kafka-ui/Chart.yaml | grep '^version:' | awk '{print $2}')
echo "main: $version_old pr: $version_new"
if [[ "$version_new" > "$version_old" ]]; then exit 0; else exit 1; fi

- name: Run kubeconform
run: |
set -euo pipefail
sed -i "s@enabled: false@enabled: true@g" charts/kafka-ui/values.yaml
K8S_VERSIONS=$(
git ls-remote --refs --tags https://github.com/kubernetes/kubernetes.git |
cut -d/ -f3 |
grep -E '^v1\.[0-9]{2,3}\.0$' |
sort -Vu |
sed 's/^v//'
)
for version in $K8S_VERSIONS; do
helm template \
--kube-version "$version" \
--set ingress.enabled=true \
charts/kafka-ui \
-f charts/kafka-ui/values.yaml | \
docker run --rm -i ghcr.io/yannh/kubeconform:latest \
-strict -summary -ignore-missing-schemas \
-schema-location default \
-schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \
-kubernetes-version "$version" - | \
sed "s/^/v${version}: /"
done
51 changes: 0 additions & 51 deletions .github/workflows/release-helm.yaml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release Charts

on:
push:
branches: [main]
paths: [charts/**]

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: azure/setup-helm@v4

- uses: helm/chart-releaser-action@v1.6.0
id: release
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
charts_dir: charts
skip_existing: true

- name: Login to GHCR
if: steps.release.outputs.changed_charts != ''
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push charts to GHCR OCI
if: steps.release.outputs.changed_charts != ''
run: |
for pkg in .cr-release-packages/*.tgz; do
helm push "$pkg" oci://ghcr.io/${{ github.repository_owner }}/charts
done
51 changes: 0 additions & 51 deletions .github/workflows/update-config-docs.yaml

This file was deleted.

Loading
Loading