Skip to content

Commit

Permalink
add testing/linting ci jobs; add CRDs repo; sync CRDs; fix some chart…
Browse files Browse the repository at this point in the history
… issues; make webhooks toggleable
  • Loading branch information
mhoffm-aiven committed Sep 3, 2021
1 parent d71d32c commit 7710e94
Show file tree
Hide file tree
Showing 19 changed files with 348 additions and 197 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test Charts

on: pull_request

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0

- uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Set up chart-testing
uses: helm/[email protected]

- name: Create kind cluster
uses: helm/[email protected]

- name: Install aiven-kubernetes-operator CRDs
run: helm install charts/aiven-kubernetes-operator-crds --generate-name

- name: Test aiven-kubernetes-operator chart
run: ct install --charts charts/aiven-kubernetes-operator
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
my-values.yaml
my-values.*.yaml
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,24 @@ helm add repo aiven https://aiven-helm-charts.github.io && helm repo update

## Installing a chart from the repository

### Installing the aiven-kubernetes-operator-crds chart

```bash
helm install aiven/aiven-kubernetes-operator-crds --generate-name
```

### Installing the aiven-kubernetes-operator chart

Before installing the `aiven-kubernetes-operator` chart, please make sure to have the CRDs chart installed.

Installation with webhooks enabled ( requires a cert-manager deployment in the cluster ):

```bash
helm install aiven/aiven-kubernetes-operator --generate-name
```

Without webhooks enabled:

```bash
helm install \
aiven/aiven-kubernetes-operator \
--generate-name \
--namespace aiven-kubernetes-operator-system \
--create-namespace
helm install aiven/aiven-kubernetes-operator --generate-name --set webhooks.enabled=false
```
23 changes: 23 additions & 0 deletions charts/aiven-kubernetes-operator-crds/.helmignore
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/
9 changes: 9 additions & 0 deletions charts/aiven-kubernetes-operator-crds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v2
name: aiven-kubernetes-operator-crds
description: A Helm chart to deploy the aiven k8s operator custom resource definitions
type: application
version: v0.1.0
appVersion: v0.0.1
maintainers:
- name: mhoffm-aiven
url: https://www.aiven.io
Loading

0 comments on commit 7710e94

Please sign in to comment.