Skip to content

Commit

Permalink
Release Antrea Helm chart archive for each Antrea release
Browse files Browse the repository at this point in the history
For each Antrea release, we generate the correct Helm chart archive and
upload it as a release asset. The appropriate index.yaml file (Helm repo
index) will be updated appropriately (in the antrea-io/website
repository) and will be accessible through charts.antrea.io and / or
antrea.io/charts.

For antrea-io#2641

We are also moving all CRD resources from the generic templates/
directory to the special crds/ directory, in the Chart definition. This
will cause Helm to treat CRDs as special resources, and in particular
they will never be upgraded / deleted automatically by Helm. In
particular, for upgrade, users will need to apply a separate YAML (which
is being added to release assets) including all the CRD resource
definitions. This represents an extra step, but ensures that users are
aware that CRDs are being upgraded which may require some actions from
them (e.g., migrate to a new version) and needs to be done with caution.

Fixes antrea-io#3665

Signed-off-by: Antonin Bas <[email protected]>
  • Loading branch information
antoninbas committed Jun 24, 2022
1 parent c6df2eb commit a82edc2
Show file tree
Hide file tree
Showing 25 changed files with 5,502 additions and 2,854 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/upload_release_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ jobs:
asset_path: ./assets/antrea.yml
asset_name: antrea.yml
asset_content_type: application/octet-stream
- name: Upload antrea-crds.yml
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./assets/antrea-crds.yml
asset_name: antrea-crds.yml
asset_content_type: application/octet-stream
- name: Upload antrea-ipsec.yml
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -245,3 +254,12 @@ jobs:
asset_path: ./assets/Start-AntreaAgent.ps1
asset_name: Start-AntreaAgent.ps1
asset_content_type: application/octet-stream
- name: Upload Antrea Helm chart archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./assets/antrea-chart.tgz
asset_name: antrea-chart.tgz
asset_content_type: application/octet-stream
6 changes: 4 additions & 2 deletions build/charts/antrea/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: antrea
type: application
displayName: Antrea
home: https://antrea.io/
version: 1.17.0-dev
appVersion: 1.17.0-dev
version: 0.0.0
appversion: 0.0.0
kubeVersion: ">= 1.16.0-0"
icon: https://raw.githubusercontent.com/antrea-io/antrea/main/docs/assets/logo/antrea_logo.svg
description: Kubernetes networking based on Open vSwitch
Expand All @@ -14,5 +14,7 @@ keywords:
- Networking
- CNI
- Security
- Open vSwitch
- OVS
sources:
- https://github.com/antrea-io/antrea
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion build/charts/antrea/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
The Antrea CNI has been successfully installed.
The Antrea CNI has been successfully installed

You are using version {{ .Chart.Version }}

For the Antrea documentation, please visit https://antrea.io
Loading

0 comments on commit a82edc2

Please sign in to comment.