Skip to content

Commit

Permalink
[nats helm] Release 1.0.0 chart (#770)
Browse files Browse the repository at this point in the history
* NATS 1.x Helm Chart (#704)

* nats-next helm chart

Signed-off-by: Caleb Lloyd <[email protected]>

* volume claim templates

Signed-off-by: Caleb Lloyd <[email protected]>

* persistence

Signed-off-by: Caleb Lloyd <[email protected]>

* load merge patch pattern

Signed-off-by: Caleb Lloyd <[email protected]>

* support nats config vars, units, and include

Signed-off-by: Caleb Lloyd <[email protected]>

* re-work jetstream values

Signed-off-by: Caleb Lloyd <[email protected]>

* reset merged values

Signed-off-by: Caleb Lloyd <[email protected]>

* separate jetstream config and pvc

* disable cluster advertisements by default

* tls

Signed-off-by: Caleb Lloyd <[email protected]>

* reloader

Signed-off-by: Caleb Lloyd <[email protected]>

* reorg config

Signed-off-by: Caleb Lloyd <[email protected]>

* nats box

Signed-off-by: Caleb Lloyd <[email protected]>

* nats protocol is always enabled

Signed-off-by: Caleb Lloyd <[email protected]>

* nest nats resources

Signed-off-by: Caleb Lloyd <[email protected]>

* un-nest nats

Signed-off-by: Caleb Lloyd <[email protected]>

* standardize pvc size

Signed-off-by: Caleb Lloyd <[email protected]>

* pvc names

Signed-off-by: Caleb Lloyd <[email protected]>

* allow overriding resource names

Signed-off-by: Caleb Lloyd <[email protected]>

* add websocket ingress

Signed-off-by: Caleb Lloyd <[email protected]>

* extra resources

Signed-off-by: Caleb Lloyd <[email protected]>

* update tplYaml

Signed-off-by: Caleb Lloyd <[email protected]>

* update extraResources example

Signed-off-by: Caleb Lloyd <[email protected]>

* test beginnings

Signed-off-by: Caleb Lloyd <[email protected]>

* more tests

Signed-off-by: Caleb Lloyd <[email protected]>

* default values test

Signed-off-by: Caleb Lloyd <[email protected]>

* ports test

Signed-off-by: Caleb Lloyd <[email protected]>

* port and config tests

Signed-off-by: Caleb Lloyd <[email protected]>

* tls test

Signed-off-by: Caleb Lloyd <[email protected]>

* resource merge/patch tests

Signed-off-by: Caleb Lloyd <[email protected]>

* global image section

Signed-off-by: Caleb Lloyd <[email protected]>

* nats box tests

Signed-off-by: Caleb Lloyd <[email protected]>

* includes test

Signed-off-by: Caleb Lloyd <[email protected]>

* extra resources test

Signed-off-by: Caleb Lloyd <[email protected]>

* rename nats-next to nats

Signed-off-by: Caleb Lloyd <[email protected]>

* fix nats-box test

Signed-off-by: Caleb Lloyd <[email protected]>

* fix linting

Signed-off-by: Caleb Lloyd <[email protected]>

* fix nindent check

Signed-off-by: Caleb Lloyd <[email protected]>

* bump test k8s versions

Signed-off-by: Caleb Lloyd <[email protected]>

* disable cluster and js by default

Signed-off-by: Caleb Lloyd <[email protected]>

* fix lint

Signed-off-by: Caleb Lloyd <[email protected]>

* CI updates

Signed-off-by: Caleb Lloyd <[email protected]>

* move ingress under config.websocket

Signed-off-by: Caleb Lloyd <[email protected]>

* remove cluster replica check

gateways could be configured which would enable single replica cluster to work

Signed-off-by: Caleb Lloyd <[email protected]>

* upgrade to nats 2.9.16

Signed-off-by: Caleb Lloyd <[email protected]>

* POD_NAME env var

* documentation

Signed-off-by: Caleb Lloyd <[email protected]>

* add optional service accounts

Signed-off-by: Caleb Lloyd <[email protected]>

* default enableServiceLinks: false

service discovery uses DNS; don't need service env vars

Signed-off-by: Caleb Lloyd <[email protected]>

* fix lint

Signed-off-by: Caleb Lloyd <[email protected]>

* add global labels

Signed-off-by: Caleb Lloyd <[email protected]>

* nats-box non-polling sleep

Signed-off-by: Caleb Lloyd <[email protected]>

* add helpers for secretNames

Signed-off-by: Caleb Lloyd <[email protected]>

* make include example clearer

Signed-off-by: Caleb Lloyd <[email protected]>

* natsBox: only create contents secret if used

Signed-off-by: Caleb Lloyd <[email protected]>

* tls key does not support contents

Signed-off-by: Caleb Lloyd <[email protected]>

---------

Signed-off-by: Caleb Lloyd <[email protected]>

* [nats helm 1.x] add Beta notice to README.md (#714)

* [nats helm 1.x] add Beta notice to README.md

Signed-off-by: Caleb Lloyd <[email protected]>

* bump to 1.0.0-beta.1 so this hits ArtifactHub

Signed-off-by: Caleb Lloyd <[email protected]>

---------

Signed-off-by: Caleb Lloyd <[email protected]>

* [nats helm 1.x] remove break statement (#715)

* [nats helm 1.x] remove break statement

Signed-off-by: Caleb Lloyd <[email protected]>

* jsonpatch fix

Signed-off-by: Caleb Lloyd <[email protected]>

---------

Signed-off-by: Caleb Lloyd <[email protected]>

* [nats helm 1.x] fix JS mount (#717)

* [nats helm 1.x] fix JS mount

Signed-off-by: Caleb Lloyd <[email protected]>

* default max_file_store to pvc size

Signed-off-by: Caleb Lloyd <[email protected]>

---------

Signed-off-by: Caleb Lloyd <[email protected]>

* remove 1.0.0-beta.3 fix (#719)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] leafnode -> leafnodes (#720)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] upgrade nats to 2.9.17 (#728)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] config.serverNamePrefix option (#732)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] config.cluster.routeURLs options (#746)

* [helm nats 1.x] config.cluster.routeURLs options

Signed-off-by: Caleb Lloyd <[email protected]>

* update comments

Signed-off-by: Caleb Lloyd <[email protected]>

---------

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] add pod disruption budget (#747)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] 0.x -> 1.x upgrade guide (#743)

* [helm nats 1.x] 0.x -> 1.x upgrade guide

Signed-off-by: Caleb Lloyd <[email protected]>

* add TLS considerations

Signed-off-by: Caleb Lloyd <[email protected]>

* update instructions

Signed-off-by: Caleb Lloyd <[email protected]>

---------

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] upgrade NATS to 2.9.19 (#749)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] add namespaceOverride (#755)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] publish 1.0.0-rc.0 (#756)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] remove tls.ca options (#758)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] add appProtocol to services (#762)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] add tlsCA option (#763)

Signed-off-by: Caleb Lloyd <[email protected]>

* [helm nats 1.x] upgrade nats to 2.9.20 (#765)

Signed-off-by: Caleb Lloyd <[email protected]>

* release 1.0.0

Signed-off-by: Caleb Lloyd <[email protected]>

---------

Signed-off-by: Caleb Lloyd <[email protected]>
  • Loading branch information
caleblloyd authored Aug 1, 2023
1 parent f87652b commit 89d66c4
Show file tree
Hide file tree
Showing 74 changed files with 5,880 additions and 3,514 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/nats-helm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: nats-helm

on:
pull_request:
paths:
- 'helm/charts/nats/**'
- .github/workflows/nats-helm.yml

jobs:
test:
runs-on: ubuntu-latest
steps:

- name: Setup repo
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
check-latest: true
cache: true
cache-dependency-path: helm/charts/nats/test/go.sum

- name: Test
working-directory: helm/charts/nats/test
run: go test
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- helm-nats-1.x

jobs:
release:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
pull_request:
paths:
- 'helm/charts/**'
- '!helm/charts/index.yaml'
- '.github/workflows/test.yaml'

jobs:
Expand All @@ -15,9 +14,9 @@ jobs:
fail-fast: false
matrix:
k8s:
- "1.23"
- "1.22"
- "1.21"
- "1.26"
- "1.25"
- "1.24"
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -57,6 +56,8 @@ jobs:
helm/charts/stan \
-type f \
-not -name "*.md" \
-not -name "*.go" \
-not -name "_tplYaml.tpl" \
| xargs grep -E "^[ ]*\{[^\}]+nindent $i" \
| grep -Ev "^[^:]+:[ ]{$i}\{"; then
echo "invalid nindent $i found; nindent should match template indentation"
Expand All @@ -68,8 +69,7 @@ jobs:
- name: Create k8s cluster
run: |-
sudo snap install microk8s --channel="${{ matrix.k8s }}/stable" --classic
sudo microk8s.enable dns
sudo microk8s.enable storage
sudo microk8s.enable dns hostpath-storage
sudo microk8s.kubectl wait --for=condition=ready --timeout=60s node --all
sudo microk8s.kubectl wait --for=condition=ready --timeout=120s --namespace=kube-system pod --all
mkdir -p ~/.kube
Expand Down
4 changes: 4 additions & 0 deletions helm/charts/nats/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

# template tests
/test
5 changes: 2 additions & 3 deletions helm/charts/nats/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
apiVersion: v2
appVersion: 2.9.20
description: A Helm chart for the NATS.io High Speed Cloud Native Distributed Communications
Technology.
description: A Helm chart for the NATS.io High Speed Cloud Native Distributed Communications Technology.
name: nats
keywords:
- nats
- messaging
- cncf
version: 0.19.17
version: 1.0.0
home: http://github.com/nats-io/k8s
maintainers:
- email: [email protected]
Expand Down
Loading

0 comments on commit 89d66c4

Please sign in to comment.