-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce6e1f4
commit d509f09
Showing
28 changed files
with
1,099 additions
and
2 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# The repo admins team will be the default owners for everything in the repo. | ||
# Unless a later match takes precedence, they will be requested for review when someone opens a pull request. | ||
|
||
/.github/workflows/ @chenzhiguo | ||
/renovate.json @chenzhiguo | ||
|
||
/charts/joylive-injector/ @chenzhiguo |
This file contains 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!-- | ||
Thank you for contributing to jd-opensource/joylive-helm-charts. | ||
Before you submit this pull request we'd like to make sure you are aware of our technical requirements and best practices: | ||
* https://github.com/jd-opensource/joylive-helm-charts/blob/main/CONTRIBUTING.md#technical-requirements | ||
* https://helm.sh/docs/chart_best_practices/ | ||
For a quick overview across what we will look at reviewing your PR, please read our review guidelines: | ||
// TODO: add a REVIEW_GUIDELINES.md in jd-opensource/joylive-helm-charts | ||
* https://github.com/helm/charts/blob/master/REVIEW_GUIDELINES.md | ||
Following our best practices right from the start will accelerate the review process and help get your pull request merged quicker. | ||
When updates to your pull request are requested, please add new commits and do not squash the history. | ||
This will make it easier to identify new changes. | ||
The pull request will be squashed anyways when it is merged. | ||
Thanks. | ||
For fast feedback, please @-mention maintainers that are listed in the Chart.yaml file. | ||
Please make sure you test your changes before you push them. | ||
Once the pull request is opened, GitHub Actions will run across your changes and do some initial checks and linting. | ||
These checks run very quickly. | ||
Please check the results. | ||
If you are contributing to this repository for the first time, a maintainer will need to approve those checks to run. | ||
They are automatically requested as reviewers and will approve the workflows or ask you for changes once they get to it. | ||
We would like these checks to pass before we even continue reviewing your changes. | ||
--> | ||
|
||
<!-- markdownlint-disable-next-line first-line-heading --> | ||
#### What this PR does / why we need it | ||
|
||
#### Which issue this PR fixes | ||
|
||
*(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)* | ||
|
||
- fixes # | ||
|
||
#### Special notes for your reviewer | ||
|
||
#### Checklist | ||
|
||
<!-- [Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.] --> | ||
- [ ] [DCO](https://github.com/jd-opensource/joylive-helm-charts/blob/main/CONTRIBUTING.md#sign-off-your-work) signed | ||
- [ ] Chart Version bumped | ||
- [ ] Title of the PR starts with chart name (e.g. `[joylive-injector]`) |
This file contains 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
time: "09:00" | ||
timezone: "Europe/Berlin" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 30 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 14 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- lifecycle/frozen | ||
staleLabel: lifecycle/stale | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Any further update will | ||
cause the issue/pull request to no longer be considered stale. Thank you for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: > | ||
This issue is being automatically closed due to inactivity. |
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Check CODEOWNERS | ||
|
||
on: pull_request | ||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: generate CODEOWNERS | ||
run: | | ||
./scripts/check-codeowners.sh > .github/CODEOWNERS | ||
- name: check CODEOWNERS for modifications | ||
run: | | ||
git diff --exit-code |
This file contains 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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Release Charts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write # to push chart release and create a release (helm/chart-releaser-action) | ||
packages: write # needed for ghcr access | ||
id-token: write # needed for keyless signing | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Fetch history | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: v3.12.0 | ||
|
||
- name: Add dependency chart repos | ||
run: | | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
CR_GENERATE_RELEASE_NOTES: true | ||
|
||
# see https://github.com/helm/chart-releaser/issues/183 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Push charts to GHCR | ||
run: | | ||
shopt -s nullglob | ||
for pkg in .cr-release-packages/*; do | ||
if [ -z "${pkg:-}" ]; then | ||
break | ||
fi | ||
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts" | ||
done |
This file contains 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'README.md' | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: write # for git push | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
cp -f README.md ${{ runner.temp }}/README.md | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
- run: | | ||
cp -f ${{ runner.temp }}/README.md . | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
git add README.md | ||
git commit --signoff -m "Sync README from main" | ||
git push |
This file contains 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Chart dependencies | ||
/charts/*/charts | ||
.idea | ||
.vscode | ||
.DS_Store |
This file contains 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 |
---|---|---|
@@ -1,2 +1,27 @@ | ||
# joylive-helm-charts | ||
A helm charts repo for joylive components. | ||
# Joylive Kubernetes Helm Charts | ||
|
||
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/joylive)](https://artifacthub.io/packages/search?org=joylive) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Release Charts](https://github.com/jd-opensource/joylive-helm-charts/workflows/Release%20Charts/badge.svg?branch=main) [![Releases downloads](https://img.shields.io/github/downloads/jd-opensource/joylive-helm-charts/total.svg)](https://github.com/jd-opensource/joylive-helm-charts/releases) | ||
|
||
This functionality is in beta and is subject to change. The code is provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. | ||
|
||
## Usage | ||
|
||
[Helm](https://helm.sh) must be installed to use the charts. | ||
Please refer to Helm's [documentation](https://helm.sh/docs/) to get started. | ||
|
||
Once Helm is set up properly, add the repository as follows: | ||
|
||
```console | ||
helm repo add joylive https://jd-opensource.github.io/joylive-helm-charts | ||
``` | ||
|
||
You can then run `helm search repo joylive` to see the charts. | ||
|
||
## License | ||
|
||
<!-- Keep full URL links to repo files because this README syncs from main to gh-pages. --> | ||
[Apache 2.0 License](https://github.com/jd-opensource/joylive-helm-charts/blob/main/LICENSE). | ||
|
||
## Helm charts build status | ||
|
||
![Release Charts](https://github.com/jd-opensource/joylive-helm-charts/workflows/Release%20Charts/badge.svg?branch=main) |
This file contains 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 |
---|---|---|
@@ -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/ |
This file contains 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: v2 | ||
name: joylive-injector | ||
description: A Helm chart for webhook automatically injected by JoyLive Agent | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 1.1.0 | ||
|
||
keywords: | ||
- joylive | ||
|
||
home: https://github.com/jd-opensource/joylive-injector | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "1.1.0" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
app.name=${APPLICATION_NAME} | ||
app.service.name=${APPLICATION_SERVICE_NAME:${APPLICATION_NAME}} | ||
app.service.namespace=${APPLICATION_SERVICE_NAMESPACE:default} | ||
app.service.group=${APPLICATION_SERVICE_GROUP:default} | ||
app.service.gateway=${APPLICATION_SERVICE_GATEWAY:NONE} | ||
app.location.cloud=${APPLICATION_LOCATION_CLOUD:} | ||
app.location.region=${APPLICATION_LOCATION_REGION} | ||
app.location.zone=${APPLICATION_LOCATION_ZONE} | ||
app.location.cluster=${APPLICATION_LOCATION_CLUSTER} | ||
app.location.liveSpaceId=${APPLICATION_LOCATION_LIVESPACE_ID:${CONFIG_LIVESPACE_ID}} | ||
app.location.unitRuleId=${APPLICATION_LOCATION_UNIT_RULE_ID} | ||
app.location.unit=${APPLICATION_LOCATION_UNIT} | ||
app.location.cell=${APPLICATION_LOCATION_CELL} | ||
app.location.laneSpaceId=${APPLICATION_LOCATION_LANESPACE_ID} | ||
app.location.lane=${APPLICATION_LOCATION_LANE} | ||
agent.enhance.shutdownOnError=${CONFIG_ENHANCE_SHUTDOWN_ON_ERROR:true} | ||
classloader.contextLoaderEnabled=${CLASSLOADER_CONTEXT_LOADER_ENABLED:true} | ||
classloader.core.configExtensions=yaml,yml,xml,json,properties | ||
#classloader.core.parentResources= | ||
classloader.core.parentPrefixes=com.jd.live.agent.bootstrap,java.,javax.,sun. | ||
#classloader.core.isolationResources= | ||
classloader.core.isolationPrefixes=META-INF/services/com.jd.live.agent | ||
#classloader.coreImpl.parentResources= | ||
classloader.coreImpl.parentPrefixes=com.jd.live.agent.bootstrap.,com.jd.live.agent.core.,com.jd.live.agent.governance.,java.,javax.,sun. | ||
classloader.coreImpl.isolationResources= | ||
classloader.coreImpl.isolationPrefixes= | ||
#classloader.plugin.parentResources= | ||
classloader.plugin.parentPrefixes=com.jd.live.agent.bootstrap.,com.jd.live.agent.core.,com.jd.live.agent.governance.,java.,javax.,sun. | ||
#classloader.plugin.isolationResources= | ||
#classloader.plugin.isolationPrefixes= |
Oops, something went wrong.