generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
b2542a5
commit 21aad66
Showing
15 changed files
with
2,734 additions
and
62 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,112 @@ | ||
name: Publish Helm | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
HELM_VERSION: v3.11.3 | ||
CHART_DIR: chart | ||
REGISTRY: ghcr.io | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
publish-to-pages: | ||
permissions: | ||
contents: write | ||
pages: write | ||
id-token: write | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.publish-index.outputs.page_url }} | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: azure/setup-helm@v3 | ||
with: | ||
version: ${{ env.HELM_VERSION }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: helm-index | ||
path: index | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: Create package | ||
run: | | ||
helm package --version ${{ github.event.release.tag_name }} $CHART_DIR | ||
- name: Create index | ||
run: | | ||
helm repo index --url ${{ github.server_url }}/${{ github.repository }}/releases/download/${{ github.event.release.tag_name }} --merge ./index/index.yaml . | ||
mv index.yaml index | ||
cd index | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add index.yaml | ||
git commit -m "Release ${{ github.event.release.tag_name }}" | ||
git push | ||
- name: Upload package | ||
run: | | ||
upload_url="${{ github.event.release.upload_url }}" | ||
upload_url=${upload_url%%\{*\}} | ||
chart_name=$(yq .name $CHART_DIR/Chart.yaml) | ||
file=$chart_name-${{ github.event.release.tag_name }}.tgz | ||
echo "Uploading $file to $upload_url ..." | ||
curl -sSf \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "Content-Type: $(file -b --mime-type $file)" \ | ||
--data-binary @$file \ | ||
"$upload_url?name=$(basename $file)" | ||
- name: Upload index | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: index | ||
|
||
- name: Publish index | ||
id: publish-index | ||
uses: actions/deploy-pages@v2 | ||
|
||
publish-to-packages: | ||
permissions: | ||
contents: read | ||
packages: write | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: azure/setup-helm@v3 | ||
with: | ||
version: ${{ env.HELM_VERSION }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create package | ||
run: | | ||
helm package --version ${{ github.event.release.tag_name }} $CHART_DIR | ||
- name: Login to the OCI registry | ||
run: | | ||
helm --registry-config $RUNNER_TEMP/helm-config.json registry login $REGISTRY -u ${{ github.actor }} --password-stdin <<< ${{ secrets.GITHUB_TOKEN }} | ||
- name: Upload package | ||
run: | | ||
chart_name=$(yq .name $CHART_DIR/Chart.yaml) | ||
file=$chart_name-${{ github.event.release.tag_name }}.tgz | ||
repository=${{ github.repository }} | ||
helm --registry-config $RUNNER_TEMP/helm-config.json push $file oci://$REGISTRY/${repository,,} |
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,7 +1,7 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: <YOUR-REPO-NAME> | ||
Upstream-Contact: <YOUR-CONTACT (MAIL ADDRESS ETC.)> | ||
Source: <https://github.com/sap/YOUR-REPO-NAME> | ||
Upstream-Name: redis-operator-helm | ||
Upstream-Contact: [email protected] | ||
Source: https://github.com/sap/redis-operator-helm | ||
Disclaimer: The code in this project may include calls to APIs ("API Calls") of | ||
SAP or third-party products or services developed outside of this project | ||
("External Products"). | ||
|
@@ -24,14 +24,6 @@ Disclaimer: The code in this project may include calls to APIs ("API Calls") of | |
you any rights to use or access any SAP External Product, or provide any third | ||
parties the right to use of access any SAP External Product, through API Calls. | ||
|
||
Files: <YOUR-FILE-OR-FOLDER-LIST> | ||
Copyright: <YEARS-RELEVANT-FOR-YOUR-PROJECT> SAP SE or an SAP affiliate company and <YOUR-PROJECT-NAME> contributors | ||
Files: ** | ||
Copyright: 2023 SAP SE or an SAP affiliate company and redis-operator-helm contributors | ||
License: Apache-2.0 | ||
|
||
Files: <THIRD-PARTY-FILE-OR-FOLDER-LIST> | ||
Copyright: <COPYRIGHT-OF-THIRD-PARTY-CODE> | ||
License: <LICENSE-OF-THIRD-PARTY-CODE> | ||
|
||
Files: <ANOTHER-THIRD-PARTY-FILE-OR-FOLDER-LIST> | ||
Copyright: <COPYRIGHT-OF-ANOTHER-THIRD-PARTY-CODE> | ||
License: <LICENSE-OF-ANOTHER- THIRD-PARTY-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
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,37 +1,17 @@ | ||
# SAP Repository Template | ||
|
||
Default templates for SAP open source repositories, including LICENSE, .reuse/dep5, Code of Conduct, etc... All repositories on github.com/SAP will be created based on this template. | ||
|
||
## To-Do | ||
|
||
In case you are the maintainer of a new SAP open source project, these are the steps to do with the template files: | ||
|
||
- Check if the default license (Apache 2.0) also applies to your project. A license change should only be required in exceptional cases. If this is the case, please change the [license file](LICENSE). | ||
- Enter the correct metadata for the REUSE tool. See our [wiki page](https://wiki.wdf.sap.corp/wiki/display/ospodocs/Using+the+Reuse+Tool+of+FSFE+for+Copyright+and+License+Information) for details how to do it. You can find an initial .reuse/dep5 file to build on. Please replace the parts inside the single angle quotation marks < > by the specific information for your repository and be sure to run the REUSE tool to validate that the metadata is correct. | ||
- Adjust the contribution guidelines (e.g. add coding style guidelines, pull request checklists, different license if needed etc.) | ||
- Add information about your project to this README (name, description, requirements etc). Especially take care for the <your-project> placeholders - those ones need to be replaced with your project name. See the sections below the horizontal line and [our guidelines on our wiki page](https://wiki.wdf.sap.corp/wiki/display/ospodocs/Guidelines+for+README.md+file) what is required and recommended. | ||
- Remove all content in this README above and including the horizontal line ;) | ||
|
||
*** | ||
|
||
# Our new open source project | ||
# Redis Operator Helm Chart | ||
|
||
## About this project | ||
|
||
*Insert a short description of your project here...* | ||
|
||
## Requirements and Setup | ||
|
||
*Insert a short description what is required to get your project running...* | ||
Helm chart for [https://github.com/sap/redis-operator](https://github.com/sap/redis-operator) | ||
|
||
## Support, Feedback, Contributing | ||
|
||
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/<your-project>/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md). | ||
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/redis-operator-helm/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md). | ||
|
||
## Code of Conduct | ||
|
||
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its [Code of Conduct](https://github.com/SAP/.github/blob/main/CODE_OF_CONDUCT.md) at all times. | ||
|
||
## Licensing | ||
|
||
Copyright (20xx-)20xx SAP SE or an SAP affiliate company and <your-project> contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/<your-project>). | ||
Copyright 2023 SAP SE or an SAP affiliate company and redis-operator-helm contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/redis-operator-helm). |
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,6 @@ | ||
apiVersion: v2 | ||
name: redis-operator | ||
description: A Helm chart for https://github.com/sap/redis-operator | ||
type: application | ||
version: 0.1.0 | ||
appVersion: v0.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,38 @@ | ||
# redis-operator | ||
|
||
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square) | ||
|
||
A Helm chart for https://github.com/sap/redis-operator | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| fullnameOverride | string | `""` | Override full name | | ||
| nameOverride | string | `""` | Override name | | ||
| replicaCount | int | `1` | Replica count | | ||
| image.repository | string | `"ghcr.io/sap/redis-operator"` | Image repository | | ||
| image.tag | string | `""` | Image tag (defauls to .Chart.AppVersion) | | ||
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy | | ||
| imagePullSecrets | list | `[]` | Image pull secrets | | ||
| podLabels | object | `{}` | Additional pod labels | | ||
| podAnnotations | object | `{}` | Additional pod annotations | | ||
| nodeSelector | object | `{}` | Node selector | | ||
| affinity | object | `{}` | Affinity settings | | ||
| topologySpreadConstraints | list | `[]` | Topology spread constraints (if unspecified, default constraints for hostname and zone will be generated) | | ||
| defaultHostNameSpreadPolicy | string | `"ScheduleAnyway"` | Default topology spread policy for hostname | | ||
| defaultZoneSpreadPolicy | string | `"ScheduleAnyway"` | Default topology spread policy for zone | | ||
| tolerations | list | `[]` | Tolerations | | ||
| priorityClassName | string | `""` | Priority class | | ||
| podSecurityContext | object | `{}` | Pod security context | | ||
| securityContext | object | `{}` | Container security context | | ||
| resources.limits.cpu | string | `"100m"` | CPU limit | | ||
| resources.limits.memory | string | `"128Mi"` | Memory limit | | ||
| resources.requests.cpu | string | `"100m"` | CPU request | | ||
| resources.requests.memory | string | `"128Mi"` | Memory request | | ||
| service.type | string | `"ClusterIP"` | Service type | | ||
| service.port | int | `443` | Service port | | ||
| webhook.certManager.enabled | bool | `false` | | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) |
Oops, something went wrong.