Skip to content

Commit

Permalink
Merge pull request #35 from kexa-io/dev
Browse files Browse the repository at this point in the history
fix: readme remote rules
  • Loading branch information
aeppling authored Sep 18, 2024
2 parents 0afcdbd + aff65c8 commit f36018e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 9 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/appversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add charts/kexa-chart/Chart.yaml
git commit -m "chore(release): update Chart.yaml appversion"
git push origin dev
if [ -n "$(git status --porcelain)" ]; then
git commit -m "chore(release): update Chart.yaml appversion"
git push origin dev
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
8 changes: 6 additions & 2 deletions .github/workflows/dashboards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ jobs:
- name: Commit changes
run: |
git add charts/kexa-chart/files/dashboards/
git commit -m "Get new dashboards"
git push
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Get new dashboards"
git push
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
working-directory: current-repo
1 change: 1 addition & 0 deletions .github/workflows/fullrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add charts/kexa-chart/Chart.yaml
git add CHANGELOG.md
git commit -m "chore(release): update Chart.yaml version"
git push origin main
env:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ jobs:
- name: Commit changes
run: |
git add charts/kexa-chart/files/rules/
git commit -m "Get new rules"
git push
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Get new rules"
git push
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
working-directory: current-repo
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ and Kexa configuration.
kubectl create secret generic kexa-configuration-secret --from-file=default.json=default.json
```

*For most addons credentials*
*Upload your environment file (for most addons credentials)*
```bash
kubectl create secret generic kexa-environment-secret --from-file=.env=.env
```
Expand All @@ -37,6 +37,16 @@ kubectl create secret generic kubeconfig-secret --from-file=kubeconfig.yaml=kube
kubectl create secret generic kubeconfig-secret --from-file=kubeconfig.yaml=kubeconfig.yaml --from-file=secondkubeconfig.yaml=secondkubeconfig.yaml
```

## Using Custom rules

To use a custom remote rules folder, please inform those fields in your environment file
before adding it as a secret.

```bash
RULESDIRECTORY="https://api.github.com/repos/kexa-io/public-rules/zipball/main" # example with kexa-io/public-rules (same as default rules available in Helm chart)
RULESAUTHORIZATION="Bearer github_pat_XXXXXXXXXXXXXXXXXXXXXXXX" # if repo is private
```


## Install the chart

Expand All @@ -49,5 +59,5 @@ helm repo add YOUR_REPOSITORY_NAME https://kexa-io.github.io/helm-charts/
```bash
helm install YOUR_RELEASE_NAME YOUR_REPOSITORY_NAME/kexa
```

## Read the instructions in your console !
*Read the instructions in your console !*

0 comments on commit f36018e

Please sign in to comment.