-
Notifications
You must be signed in to change notification settings - Fork 15
[50] Helm-chart initial commit #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
bdac603
[50] Put kustomize manifests as is
hiddenmarten 7c53cc5
[50] Write a simple helm chart from kustomize manifests
hiddenmarten ed062ec
[50] Remove unnecessary def from helpers
hiddenmarten 2cdb83a
[50] Add helm-lint to pre-commit
hiddenmarten d58901e
[50] Add jsom schema
hiddenmarten e066182
[50] Fix pre-commit
hiddenmarten 9f40a2b
[50] Add helm-docs
hiddenmarten 114e511
[50] Move into charts directory
hiddenmarten c03800f
[50] Add github release workflow
hiddenmarten 83df66f
[50] Update workflow name
hiddenmarten 44f0165
[50] Update gha workflow, fix chart destination
hiddenmarten 07b70d9
[50] Remove latest tag
hiddenmarten 218ed7b
[50] Remove appVersion from kube-rbac-proxy image tag
hiddenmarten 651ac73
[50] Remove comment from values, kube-rbac-proxy image tag
hiddenmarten b93fe66
[50] Add kubernetesClusterDomain
hiddenmarten fb84fde
[50] Update requests/limits
hiddenmarten 65c619e
[50] Pipeline should use exact tag name
hiddenmarten 0a16bef
[50] Updated echo message to job stdout
hiddenmarten 49eb7c4
[50] Remova unnecessary comments from gha workflow
hiddenmarten 0432b59
[50] Merge develop
hiddenmarten d3d0a46
[50] Update Chart.yaml, placeholder versions and comment
hiddenmarten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
name: Helm publish | ||
|
||
on: | ||
push: | ||
# Publish semver tags as releases. | ||
tags: [ 'v*.*.*' ] | ||
|
||
env: | ||
# Use docker.io for Docker Hub if empty | ||
REGISTRY: ghcr.io | ||
# github.repository as <account>/<repo> | ||
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: | | ||
git fetch --tags | ||
TAG=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
echo "Latest tag on current commit 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.1 | ||
appVersion: "v0.0.1" |
This file contains hidden or 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,62 @@ | ||
# etcd-operator | ||
|
||
   | ||
hiddenmarten marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## 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 | `"latest"` | | | ||
sircthulhu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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 | `"10m"` | | | ||
| 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 | `"5m"` | | | ||
| 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"` | | | ||
| 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.