-
Notifications
You must be signed in to change notification settings - Fork 7
Update ArtifactHub info and build scripts for releasing Helm chart #1192
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e3bd6aa
Remove whitelisting of OTEL eBPF images
pstranak-sw c6431a5
Update chart-releaser
pstranak-sw e2870c0
Handle "beta" and "rc" as pre-release Helm charts
pstranak-sw f0212e9
Add support for "rc" builds to the automated Docker image updater
pstranak-sw f220c09
Merge branch 'master' into updateArtifactHubInfo
pstranak-sw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,19 +15,19 @@ main() { | |
| RELEASE_NAME=$(yq -e '.name + "-" + .version' deploy/helm/Chart.yaml) | ||
|
|
||
| # Check release type | ||
| if [[ "$RELEASE_NAME" == *"alpha"* ]]; then | ||
| echo "Handling alpha release: $RELEASE_NAME" | ||
| PREVIOUS_TAG=$(git tag --sort=version:refname | grep alpha | grep -B1 "^swo-k8s-collector" | tail -n 1) | ||
| PRE_RELEASE_CMD="--prerelease --latest=false" | ||
| RELEASE="alpha" | ||
| if [[ "$RELEASE_NAME" =~ (^|[^a-zA-Z])(alpha|beta|rc)([^a-zA-Z]|$) ]]; then | ||
| echo "Handling pre-release: $RELEASE_NAME" | ||
| PREVIOUS_TAG=$(git tag --sort=version:refname | grep -E "(alpha|beta|rc)" | grep -B1 "^swo-k8s-collector" | tail -n 1) | ||
| GH_RELEASE_PARAMS="--prerelease --latest=false" | ||
| ADD_ANNOTATION_PARAMS="" | ||
| else | ||
| echo "Handling standard release: $RELEASE_NAME" | ||
| PREVIOUS_TAG=$(git tag --sort=version:refname | grep -v alpha | grep -B1 "^swo-k8s-collector" | tail -n 1) | ||
| PREVIOUS_TAG=$(git tag --sort=version:refname | grep -vE "(alpha|beta|rc)" | grep -B1 "^swo-k8s-collector" | tail -n 1) | ||
| PRE_RELEASE_CMD="" | ||
| RELEASE="official" | ||
| ADD_ANNOTATION_PARAMS="official" | ||
| fi | ||
|
|
||
| .github/add_annotation.sh deploy/helm/Chart.yaml $RELEASE | ||
| .github/add_annotation.sh deploy/helm/Chart.yaml $ADD_ANNOTATION_PARAMS | ||
|
|
||
| echo "Packaging chart ..." | ||
| cr package "deploy/helm" | ||
|
|
@@ -41,15 +41,15 @@ main() { | |
| echo "Release name: $RELEASE_NAME" | ||
| echo "Release file: $RELEASE_FILE" | ||
| echo "Previous tag: $PREVIOUS_TAG" | ||
| echo "Prerelease opt: $PRE_RELEASE_CMD" | ||
| echo "Prerelease opt: $GH_RELEASE_PARAMS" | ||
| echo "****************************************" | ||
| echo "" | ||
| echo "" | ||
|
|
||
| echo 'Releasing chart...' | ||
| gh release create $RELEASE_NAME \ | ||
| --title $RELEASE_NAME \ | ||
| $PRE_RELEASE_CMD \ | ||
| $GH_RELEASE_PARAMS \ | ||
| --title $RELEASE_NAME \ | ||
| --notes-start-tag $PREVIOUS_TAG \ | ||
| --generate-notes \ | ||
|
|
@@ -67,7 +67,7 @@ main() { | |
| } | ||
|
|
||
| install_chart_releaser() { | ||
| local version="v1.6.0" | ||
| local version="v1.8.1" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just an update. |
||
| local install_dir="$RUNNER_TOOL_CACHE/cr/$version/$(uname -m)" | ||
| if [[ ! -d "$install_dir" ]]; then | ||
| mkdir -p "$install_dir" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,16 +39,3 @@ dependencies: | |
| annotations: | ||
| artifacthub.io/prerelease: "false" | ||
| artifacthub.io/license: Apache-2.0 | ||
| artifacthub.io/images: | | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not needed anymore and it disables automatic scan of images in ArtifactHub. |
||
| - name: ebpf-kernelCollector | ||
| image: solarwinds/opentelemetry-ebpf-kernel-collector:v0.10.3 | ||
| whitelisted: true | ||
| - name: ebpf-k8sCollectorWatcher | ||
| image: solarwinds/opentelemetry-ebpf-k8s-watcher:v0.10.3 | ||
| whitelisted: true | ||
| - name: ebpf-k8sCollectorRelay | ||
| image: solarwinds/opentelemetry-ebpf-k8s-relay:v0.10.3 | ||
| whitelisted: true | ||
| - name: ebpf-reducer | ||
| image: solarwinds/opentelemetry-ebpf-reducer:v0.10.3 | ||
| whitelisted: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alpha,betaandrcare all handled as pre-releases now.