Skip to content

Commit

Permalink
feat: ingress.className added (#75)
Browse files Browse the repository at this point in the history
add ingress.ingressClassName which replaces kubernetes.io/ingress.class annotation deprecated in Kubernetes 1.18

---------

Co-authored-by: shelbert <[email protected]>
Co-authored-by: Will Holley <[email protected]>
  • Loading branch information
3 people authored Apr 4, 2023
1 parent 4f31b20 commit 9afabd4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion couchdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: couchdb
version: 4.2.0
version: 4.3.0
appVersion: 3.2.1
description: A database featuring seamless multi-master sync, that scales from
big data to mobile, with an intuitive HTTP/JSON API and designed for
Expand Down
4 changes: 4 additions & 0 deletions couchdb/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# NEWS

## 4.3.0

- Use Ingress `className` instead of `kubernetes.io/ingress.class` annotation which has been deprecated since Kubernetes 1.18+ ([#69](https://github.com/apache/couchdb-helm/issues/69))

## 4.1.0

- Added the `autoSetup` to automatically finalize the cluster after installation
Expand Down
2 changes: 2 additions & 0 deletions couchdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ required options to set:
A variety of other parameters are also configurable. See the comments in the
`values.yaml` file for further details:


| Parameter | Default |
| -------------------------------------- | ------------------------------------------------ |
| `adminUsername` | admin |
Expand All @@ -180,6 +181,7 @@ A variety of other parameters are also configurable. See the comments in the
| `initImage.tag` | latest |
| `initImage.pullPolicy` | Always |
| `ingress.enabled` | false |
| `ingress.className` | |
| `ingress.hosts` | chart-example.local |
| `ingress.annotations` | |
| `ingress.path` | / |
Expand Down
3 changes: 3 additions & 0 deletions couchdb/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ metadata:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
rules:
{{- range $host := .Values.ingress.hosts }}
- host: {{ $host }}
Expand Down
6 changes: 2 additions & 4 deletions couchdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ service:
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
ingress:
enabled: false
# className: nginx
hosts:
- chart-example.local
path: /
Expand All @@ -161,8 +162,7 @@ ingress:

## Optional resource requests and limits for the CouchDB container
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
resources:
{}
resources: {}
# requests:
# cpu: 100m
# memory: 128Mi
Expand Down Expand Up @@ -199,7 +199,6 @@ couchdbConfig:
# httpd:
# WWW-Authenticate: "Basic realm=\"administrator\""


# Kubernetes local cluster domain.
# This is used to generate FQDNs for peers when joining the CouchDB cluster.
dns:
Expand Down Expand Up @@ -244,7 +243,6 @@ sidecars: {}
# - name: database-storage
# mountPath: /opt/couchdb/data/


# Placement manager to annotate each document in the nodes DB with "zone" attribute
# recording the zone where node has been scheduled
# Ref: https://docs.couchdb.org/en/stable/cluster/sharding.html#specifying-database-placement
Expand Down

0 comments on commit 9afabd4

Please sign in to comment.