Skip to content

Commit 070529f

Browse files
committed
initial commit
1 parent abc95e0 commit 070529f

14 files changed

+1486
-60
lines changed

.github/workflows/publish-helm.yaml

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: Publish Helm
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
HELM_VERSION: v3.11.3
9+
CHART_DIR: chart
10+
REGISTRY: ghcr.io
11+
12+
defaults:
13+
run:
14+
shell: bash
15+
16+
jobs:
17+
publish-to-pages:
18+
permissions:
19+
contents: write
20+
pages: write
21+
id-token: write
22+
concurrency:
23+
group: "pages"
24+
cancel-in-progress: false
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.publish-index.outputs.page_url }}
28+
runs-on: ubuntu-22.04
29+
30+
steps:
31+
- uses: azure/setup-helm@v3
32+
with:
33+
version: ${{ env.HELM_VERSION }}
34+
35+
- name: Checkout
36+
uses: actions/checkout@v3
37+
38+
- name: Checkout
39+
uses: actions/checkout@v3
40+
with:
41+
ref: helm-index
42+
path: index
43+
44+
- name: Setup Pages
45+
uses: actions/configure-pages@v3
46+
47+
- name: Create package
48+
run: |
49+
helm package --version ${{ github.event.release.tag_name }} $CHART_DIR
50+
51+
- name: Create index
52+
run: |
53+
helm repo index --url ${{ github.server_url }}/${{ github.repository }}/releases/download/${{ github.event.release.tag_name }} --merge ./index/index.yaml .
54+
mv index.yaml index
55+
cd index
56+
git config user.name github-actions
57+
git config user.email [email protected]
58+
git add index.yaml
59+
git commit -m "Release ${{ github.event.release.tag_name }}"
60+
git push
61+
62+
- name: Upload package
63+
run: |
64+
upload_url="${{ github.event.release.upload_url }}"
65+
upload_url=${upload_url%%\{*\}}
66+
chart_name=$(yq .name $CHART_DIR/Chart.yaml)
67+
file=$chart_name-${{ github.event.release.tag_name }}.tgz
68+
echo "Uploading $file to $upload_url ..."
69+
curl -sSf \
70+
-H "Accept: application/vnd.github+json" \
71+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
72+
-H "Content-Type: $(file -b --mime-type $file)" \
73+
--data-binary @$file \
74+
"$upload_url?name=$(basename $file)"
75+
76+
- name: Upload index
77+
uses: actions/upload-pages-artifact@v1
78+
with:
79+
path: index
80+
81+
- name: Publish index
82+
id: publish-index
83+
uses: actions/deploy-pages@v2
84+
85+
publish-to-packages:
86+
permissions:
87+
contents: read
88+
packages: write
89+
runs-on: ubuntu-22.04
90+
91+
steps:
92+
- uses: azure/setup-helm@v3
93+
with:
94+
version: ${{ env.HELM_VERSION }}
95+
96+
- name: Checkout
97+
uses: actions/checkout@v3
98+
99+
- name: Create package
100+
run: |
101+
helm package --version ${{ github.event.release.tag_name }} $CHART_DIR
102+
103+
- name: Login to the OCI registry
104+
run: |
105+
helm --registry-config $RUNNER_TEMP/helm-config.json registry login $REGISTRY -u ${{ github.actor }} --password-stdin <<< ${{ secrets.GITHUB_TOKEN }}
106+
107+
- name: Upload package
108+
run: |
109+
chart_name=$(yq .name $CHART_DIR/Chart.yaml)
110+
file=$chart_name-${{ github.event.release.tag_name }}.tgz
111+
repository=${{ github.repository }}
112+
helm --registry-config $RUNNER_TEMP/helm-config.json push $file oci://$REGISTRY/${repository,,}

.reuse/dep5

+5-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2-
Upstream-Name: <YOUR-REPO-NAME>
3-
Upstream-Contact: <YOUR-CONTACT (MAIL ADDRESS ETC.)>
4-
Source: <https://github.com/sap/YOUR-REPO-NAME>
2+
Upstream-Name: cf-service-operator-helm
3+
Upstream-Contact: [email protected]
4+
Source: https://github.com/sap/cf-service-operator-helm
55
Disclaimer: The code in this project may include calls to APIs ("API Calls") of
66
SAP or third-party products or services developed outside of this project
77
("External Products").
@@ -24,14 +24,6 @@ Disclaimer: The code in this project may include calls to APIs ("API Calls") of
2424
you any rights to use or access any SAP External Product, or provide any third
2525
parties the right to use of access any SAP External Product, through API Calls.
2626

27-
Files: <YOUR-FILE-OR-FOLDER-LIST>
28-
Copyright: <YEARS-RELEVANT-FOR-YOUR-PROJECT> SAP SE or an SAP affiliate company and <YOUR-PROJECT-NAME> contributors
27+
Files: **
28+
Copyright: 2023 SAP SE or an SAP affiliate company and cf-service-operator-helm contributors
2929
License: Apache-2.0
30-
31-
Files: <THIRD-PARTY-FILE-OR-FOLDER-LIST>
32-
Copyright: <COPYRIGHT-OF-THIRD-PARTY-CODE>
33-
License: <LICENSE-OF-THIRD-PARTY-CODE>
34-
35-
Files: <ANOTHER-THIRD-PARTY-FILE-OR-FOLDER-LIST>
36-
Copyright: <COPYRIGHT-OF-ANOTHER-THIRD-PARTY-CODE>
37-
License: <LICENSE-OF-ANOTHER- THIRD-PARTY-CODE>

LICENSE

-25
Original file line numberDiff line numberDiff line change
@@ -174,28 +174,3 @@
174174
of your accepting any such warranty or additional liability.
175175

176176
END OF TERMS AND CONDITIONS
177-
178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
Copyright [yyyy] [name of copyright owner]
190-
191-
Licensed under the Apache License, Version 2.0 (the "License");
192-
you may not use this file except in compliance with the License.
193-
You may obtain a copy of the License at
194-
195-
http://www.apache.org/licenses/LICENSE-2.0
196-
197-
Unless required by applicable law or agreed to in writing, software
198-
distributed under the License is distributed on an "AS IS" BASIS,
199-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200-
See the License for the specific language governing permissions and
201-
limitations under the License.

README.md

+6-22
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,21 @@
1-
# SAP Repository Template
1+
# Cloud Foundry™ Service Operator Helm Chart
22

3-
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.
3+
[![REUSE status](https://api.reuse.software/badge/github.com/SAP/cf-service-operator-helm)](https://api.reuse.software/info/github.com/SAP/cf-service-operator-helm)
44

5-
## To-Do
6-
7-
In case you are the maintainer of a new SAP open source project, these are the steps to do with the template files:
8-
9-
- 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).
10-
- 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.
11-
- Adjust the contribution guidelines (e.g. add coding style guidelines, pull request checklists, different license if needed etc.)
12-
- 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.
13-
- Remove all content in this README above and including the horizontal line ;)
14-
15-
***
16-
17-
# Our new open source project
5+
Cloud Foundry is a registered trademark of THE LINUX FOUNDATION. Any rights therein are reserved to THE LINUX FOUNDATION. Any use by this project is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between CloudFoundry and this project.
186

197
## About this project
208

21-
*Insert a short description of your project here...*
22-
23-
## Requirements and Setup
24-
25-
*Insert a short description what is required to get your project running...*
9+
Helm chart for [https://github.com/sap/cf-service-operator](https://github.com/sap/cf-service-operator)
2610

2711
## Support, Feedback, Contributing
2812

29-
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).
13+
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/cf-service-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).
3014

3115
## Code of Conduct
3216

3317
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.
3418

3519
## Licensing
3620

37-
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>).
21+
Copyright 2023 SAP SE or an SAP affiliate company and cf-service-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/cf-service-operator-helm).

chart/.helmignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

chart/Chart.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v2
2+
name: cf-service-operator
3+
description: A Helm chart for https://github.com/sap/cf-service-operator
4+
type: application
5+
version: 0.3.0
6+
appVersion: v0.3.0

chart/README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# cf-service-operator
2+
3+
![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.3.0](https://img.shields.io/badge/AppVersion-v0.3.0-informational?style=flat-square)
4+
5+
A Helm chart for https://github.com/sap/cf-service-operator
6+
7+
## Values
8+
9+
| Key | Type | Default | Description |
10+
|-----|------|---------|-------------|
11+
| fullnameOverride | string | `""` | Override full name |
12+
| nameOverride | string | `""` | Override name |
13+
| replicaCount | int | `1` | Replica count |
14+
| image.repository | string | `"ghcr.io/sap/cf-service-operator"` | Image repository |
15+
| image.tag | string | `""` | Image tag (defauls to .Chart.AppVersion) |
16+
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
17+
| imagePullSecrets | list | `[]` | Image pull secrets |
18+
| affinity | object | `{}` | Affinity settings |
19+
| topologySpreadConstraints | list | `[]` | Topology spread constraints (if unspecified, default constraints for hostname and zone will be generated) |
20+
| defaultHostNameSpreadPolicy | string | `"ScheduleAnyway"` | Default topology spread policy for hostname |
21+
| defaultZoneSpreadPolicy | string | `"ScheduleAnyway"` | Default topology spread policy for zone |
22+
| nodeSelector | object | `{}` | Node selector |
23+
| tolerations | list | `[]` | Tolerations |
24+
| priorityClassName | string | `""` | Priority class |
25+
| podSecurityContext | object | `{}` | Pod security context |
26+
| podAnnotations | object | `{}` | Additional pod annotations |
27+
| podLabels | object | `{}` | Additional pod labels |
28+
| securityContext | object | `{}` | Container security context |
29+
| resources.limits.memory | string | `"200Mi"` | Memory limit |
30+
| resources.limits.cpu | float | `0.1` | CPU limit |
31+
| resources.requests.memory | string | `"20Mi"` | Memory request |
32+
| resources.requests.cpu | float | `0.01` | CPU request |
33+
| enableSapBindingMetadata | bool | `false` | Enable SAP binding metadata (per default, can be overridden by annotation service-operator.cf.cs.sap.com/with-sap-binding-metadata) |
34+
35+
----------------------------------------------
36+
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)

0 commit comments

Comments
 (0)