-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[50] Helm-chart initial commit (#78)
- Loading branch information
1 parent
1058ba5
commit 1c851a6
Showing
26 changed files
with
3,054 additions
and
1 deletion.
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,60 @@ | ||
name: Helm publish | ||
|
||
on: | ||
push: | ||
# Publish semver tags as releases. | ||
tags: [ 'v*.*.*' ] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
CHARTS_REPOSITORY: ${{ github.repository_owner }}/charts | ||
CHART_NAME: etcd-operator | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: read | ||
packages: write | ||
# This is used to complete the identity challenge | ||
# with sigstore/fulcio when running outside of PRs. | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: Install Helm | ||
uses: azure/[email protected] | ||
with: | ||
version: 'v3.14.3' | ||
|
||
- name: Get latest tag | ||
run: | | ||
TAG=${{ github.ref_name }} | ||
echo "Tag for packaging chart is $TAG" | ||
echo "LATEST_TAG=${TAG}" >> $GITHUB_ENV | ||
echo "LATEST_TAG_TRIMMED_V=${TAG#v}" >> $GITHUB_ENV | ||
- name: Helm login registry | ||
working-directory: charts | ||
run: | | ||
helm registry login \ | ||
--username ${{ github.actor }} \ | ||
--password ${{ secrets.GITHUB_TOKEN }} \ | ||
${{ env.REGISTRY }}/${{ env.CHARTS_REPOSITORY }} | ||
- name: Helm package chart | ||
working-directory: charts | ||
run: | | ||
helm package ${{ env.CHART_NAME }} \ | ||
--version ${LATEST_TAG_TRIMMED_V} \ | ||
--app-version ${LATEST_TAG} \ | ||
--dependency-update | ||
- name: Helm push chart | ||
working-directory: charts | ||
run: | | ||
helm push ${{ env.CHART_NAME }}-${LATEST_TAG_TRIMMED_V}.tgz \ | ||
oci://${{ env.REGISTRY }}/${{ env.CHARTS_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
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,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,5 @@ | ||
apiVersion: v2 | ||
name: etcd-operator | ||
type: application | ||
version: 0.0.0 # Placeholder, the actual version will be set in the release pipeline. | ||
appVersion: "v0.0.0" # Placeholder, the actual version will be set in the release pipeline. |
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,63 @@ | ||
# etcd-operator | ||
|
||
![Version: 0.0.0](https://img.shields.io/badge/Version-0.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.0.0](https://img.shields.io/badge/AppVersion-v0.0.0-informational?style=flat-square) | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| affinity | object | `{}` | | | ||
| etcdOperator.args[0] | string | `"--health-probe-bind-address=:8081"` | | | ||
| etcdOperator.args[1] | string | `"--metrics-bind-address=127.0.0.1:8080"` | | | ||
| etcdOperator.args[2] | string | `"--leader-elect"` | | | ||
| etcdOperator.envVars | object | `{}` | | | ||
| etcdOperator.image.pullPolicy | string | `"IfNotPresent"` | | | ||
| etcdOperator.image.repository | string | `"ghcr.io/aenix-io/etcd-operator"` | | | ||
| etcdOperator.image.tag | string | `""` | | | ||
| etcdOperator.livenessProbe.httpGet.path | string | `"/healthz"` | | | ||
| etcdOperator.livenessProbe.httpGet.port | int | `8081` | | | ||
| etcdOperator.livenessProbe.initialDelaySeconds | int | `15` | | | ||
| etcdOperator.livenessProbe.periodSeconds | int | `20` | | | ||
| etcdOperator.readinessProbe.httpGet.path | string | `"/readyz"` | | | ||
| etcdOperator.readinessProbe.httpGet.port | int | `8081` | | | ||
| etcdOperator.readinessProbe.initialDelaySeconds | int | `5` | | | ||
| etcdOperator.readinessProbe.periodSeconds | int | `10` | | | ||
| etcdOperator.resources.limits.cpu | string | `"500m"` | | | ||
| etcdOperator.resources.limits.memory | string | `"128Mi"` | | | ||
| etcdOperator.resources.requests.cpu | string | `"100m"` | | | ||
| etcdOperator.resources.requests.memory | string | `"64Mi"` | | | ||
| etcdOperator.securityContext.allowPrivilegeEscalation | bool | `false` | | | ||
| etcdOperator.securityContext.capabilities.drop[0] | string | `"ALL"` | | | ||
| etcdOperator.service.port | int | `9443` | | | ||
| etcdOperator.service.type | string | `"ClusterIP"` | | | ||
| fullnameOverride | string | `""` | | | ||
| imagePullSecrets | list | `[]` | | | ||
| kubeRbacProxy.args[0] | string | `"--secure-listen-address=0.0.0.0:8443"` | | | ||
| kubeRbacProxy.args[1] | string | `"--upstream=http://127.0.0.1:8080/"` | | | ||
| kubeRbacProxy.args[2] | string | `"--logtostderr=true"` | | | ||
| kubeRbacProxy.args[3] | string | `"--v=0"` | | | ||
| kubeRbacProxy.image.pullPolicy | string | `"IfNotPresent"` | | | ||
| kubeRbacProxy.image.repository | string | `"gcr.io/kubebuilder/kube-rbac-proxy"` | | | ||
| kubeRbacProxy.image.tag | string | `"v0.15.0"` | | | ||
| kubeRbacProxy.livenessProbe | object | `{}` | | | ||
| kubeRbacProxy.readinessProbe | object | `{}` | | | ||
| kubeRbacProxy.resources.limits.cpu | string | `"500m"` | | | ||
| kubeRbacProxy.resources.limits.memory | string | `"128Mi"` | | | ||
| kubeRbacProxy.resources.requests.cpu | string | `"100m"` | | | ||
| kubeRbacProxy.resources.requests.memory | string | `"64Mi"` | | | ||
| kubeRbacProxy.securityContext.allowPrivilegeEscalation | bool | `false` | | | ||
| kubeRbacProxy.securityContext.capabilities.drop[0] | string | `"ALL"` | | | ||
| kubeRbacProxy.service.port | int | `8443` | | | ||
| kubeRbacProxy.service.type | string | `"ClusterIP"` | | | ||
| kubernetesClusterDomain | string | `"cluster.local"` | | | ||
| nameOverride | string | `""` | | | ||
| nodeSelector | object | `{}` | | | ||
| podAnnotations | object | `{}` | | | ||
| podLabels | object | `{}` | | | ||
| podSecurityContext | object | `{}` | | | ||
| replicaCount | int | `1` | | | ||
| securityContext.runAsNonRoot | bool | `true` | | | ||
| serviceAccount.annotations | object | `{}` | | | ||
| serviceAccount.create | bool | `true` | | | ||
| tolerations | list | `[]` | | | ||
|
Oops, something went wrong.