-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:komodorio/helm-dashboard
- Loading branch information
Showing
34 changed files
with
1,120 additions
and
73 deletions.
There are no files selected for viewing
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,4 @@ | ||
Dockerfile | ||
*.md | ||
bin | ||
.idea |
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: 🐛 Bug | ||
|
||
description: Report an issue to help improve the project. | ||
|
||
labels: ["🛠 goal: fix"] | ||
|
||
body: | ||
|
||
- type: textarea | ||
|
||
id: description | ||
|
||
attributes: | ||
|
||
label: Description | ||
|
||
description: A brief description of the question or issue, also include what you tried and what didn't work | ||
|
||
validations: | ||
|
||
required: true | ||
|
||
- type: textarea | ||
|
||
id: screenshots | ||
|
||
attributes: | ||
|
||
label: Screenshots | ||
|
||
description: Please add screenshots if applicable | ||
|
||
validations: | ||
|
||
required: false | ||
|
||
- type: textarea | ||
|
||
id: extrainfo | ||
|
||
attributes: | ||
|
||
label: Additional information | ||
|
||
description: Is there anything else we should know about this bug? | ||
|
||
validations: | ||
|
||
required: false | ||
|
||
- type: markdown | ||
|
||
attributes: | ||
|
||
value: | | ||
You can also join our slack community [here](https://join.slack.com/t/komodorkommunity/shared_invite/zt-1dm3cnkue-ov1Yh~_95teA35QNx5yuMg) | ||
Feel free to check out other cool repositories of the [komodorio](https://github.com/komodorio) |
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,35 @@ | ||
<!-- If your PR fixes an open issue, use `Closes #999` to link your PR with the issue. #999 stands for the issue number you are fixing --> | ||
|
||
## Fixes Issue | ||
|
||
<!-- Remove this section if not applicable --> | ||
|
||
<!-- Example: Closes #31 --> | ||
|
||
## Changes proposed | ||
|
||
<!-- List all the proposed changes in your PR --> | ||
|
||
<!-- Mark all the applicable boxes. To mark the box as done follow the following conventions --> | ||
<!-- | ||
[x] - Correct; marked as done | ||
[X] - Correct; marked as done | ||
[ ] - Not correct; marked as **not** done | ||
--> | ||
|
||
## Check List (Check all the applicable boxes) <!-- Follow the above conventions to check the box --> | ||
|
||
- [ ] My code follows the code style of this project. | ||
- [ ] My change requires changes to the documentation. | ||
- [ ] I have updated the documentation accordingly. | ||
- [ ] All new and existing tests passed. | ||
- [ ] The title of my pull request is a short description of the requested changes. | ||
|
||
## Screenshots | ||
|
||
<!-- Add all the screenshots which support your changes --> | ||
|
||
## Note to reviewers | ||
|
||
<!-- Add notes to reviewers if applicable --> |
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
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,43 @@ | ||
name: publish helm chart | ||
|
||
# for manual running in case we need to update the chart without releasing the dashboard app | ||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
HELM_REP: helm-charts | ||
GH_OWNER: komodorio | ||
CHART_DIR: charts/helm-dashboard | ||
|
||
jobs: | ||
publish_chart: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Bump versions | ||
run: | | ||
git config user.email komi@komodor.io | ||
git config user.name komodor-bot | ||
git fetch --tags | ||
git checkout main | ||
sh ./ci/bump-versions.sh | ||
git add charts/helm-dashboard/Chart.yaml | ||
git commit -m "Increment chart versions [skip ci]" || echo "Already up-to-date" | ||
git push -f || echo "Nothing to push!" | ||
env: | ||
APP_VERSION: ${{ needs.pre_release.outputs.release_tag }} | ||
- name: Push folder to helm-charts repository | ||
uses: crykn/copy_folder_to_another_repo_action@v1.0.6 | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.KOMI_WORKFLOW_TOKEN }} | ||
with: | ||
source_folder: "charts/helm-dashboard" | ||
destination_repo: "komodorio/helm-charts" | ||
destination_folder: "charts/helm-dashboard" | ||
user_email: "komi@komodor.io" | ||
user_name: "komodor-bot" | ||
destination_branch: "master" | ||
commit_msg: "feat(helm-dashboard): update chart" #important!! don't change this commit message unless you change the condition in pipeline.yml on helm-charts repo |
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
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 |
---|---|---|
|
@@ -24,3 +24,6 @@ go.work | |
|
||
/bin | ||
/.idea/ | ||
|
||
.DS_Store | ||
.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,55 @@ | ||
# Contributing to Helm Dashboard | ||
|
||
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: | ||
|
||
- Reporting a bug | ||
- Discussing the current state of the code | ||
- Submitting a fix | ||
- Proposing new features | ||
|
||
## We Develop with GitHub | ||
|
||
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests. | ||
|
||
## First-time contributors | ||
|
||
We've tagged some issues to make it easy to get started :smile: | ||
[Good first issues](https://github.com/komodorio/helm-dashboard/labels/good%20first%20issue) | ||
|
||
Add a comment on the issue and wait for the issue to be assigned before you start working on it. This helps to avoid multiple people working on similar issues. | ||
|
||
## All Code Changes Happen Through Pull Requests | ||
|
||
Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests: | ||
|
||
1. Fork the repo and create your branch from `main`. | ||
2. If you've added code that should be tested, add tests. | ||
3. Ensure the test suite passes. | ||
4. Make sure your code lints. | ||
5. Issue that pull request! | ||
|
||
## Any contributions you make will be under the Apache License 2.0 | ||
|
||
In short, when you submit code changes, your submissions are understood to be under the same [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) that covers the project. | ||
|
||
## Report bugs using GitHub's [issues](https://github.com/komodorio/helm-dashboard/issues) | ||
|
||
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/komodorio/helm-dashboard/issues/new) and labeling it with the `bug` label. It's that easy! | ||
|
||
**Great Bug Reports** tend to have: | ||
|
||
- A quick summary and/or background | ||
- Steps to reproduce | ||
- Be specific! | ||
- Give sample code if you can. | ||
- What you expected would happen | ||
- What actually happens | ||
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work) | ||
|
||
## License | ||
|
||
By contributing, you agree that your contributions will be licensed under its Apache License 2.0. | ||
|
||
## Questions? | ||
|
||
Contact us on [Slack](https://join.slack.com/t/komodorkommunity/shared_invite/zt-1dm3cnkue-ov1Yh~_95teA35QNx5yuMg). |
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,45 @@ | ||
# Stage - builder | ||
FROM golang as builder | ||
|
||
|
||
ENV GOOS=linux | ||
ENV GOARCH=amd64 | ||
ENV CGO_ENABLED=0 | ||
|
||
WORKDIR /build | ||
|
||
COPY go.mod ./ | ||
COPY go.sum ./ | ||
COPY main.go ./ | ||
RUN go mod download | ||
|
||
ARG VER=0.0.0 | ||
ENV VERSION=${VER} | ||
|
||
ADD . src | ||
|
||
WORKDIR /build/src | ||
|
||
RUN make build | ||
|
||
# Stage - runner | ||
FROM alpine/helm | ||
|
||
# Python | ||
RUN apk add --update --no-cache python3 && python3 -m ensurepip && pip3 install --upgrade pip setuptools | ||
|
||
# kubectl | ||
RUN curl -o /bin/kubectl -vf -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && chmod +x /bin/kubectl && kubectl --help | ||
|
||
# Trivy | ||
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.18.3 | ||
RUN trivy --version | ||
|
||
# Checkov scanner | ||
RUN pip3 install checkov packaging==21.3 && checkov --version | ||
|
||
COPY --from=builder /build/src/bin/dashboard /bin/helm-dashboard | ||
|
||
ENTRYPOINT ["/bin/helm-dashboard", "--no-browser", "--bind=0.0.0.0"] | ||
|
||
# docker build . -t komodorio/helm-dashboard:0.0.0 && kind load docker-image komodorio/helm-dashboard:0.0.0 |
Oops, something went wrong.