-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumping versions, more devcontainer initialization (#36)
* .devcontainer nats, env Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com> * align .github Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com> * bump go to 1.21, bump deps Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com> * generate test client Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com> * regenerate Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com> * bump common, reloader charts Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com> --------- Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
- Loading branch information
Showing
32 changed files
with
367 additions
and
171 deletions.
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
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,32 @@ | ||
server_name: nats | ||
|
||
# Client port of 4222 on all interfaces | ||
port: 4222 | ||
|
||
# HTTP monitoring port | ||
monitor_port: 8222 | ||
|
||
# # This is for clustering multiple servers together. | ||
# cluster { | ||
# name: "cluster1" | ||
# listen: 0.0.0.0:6222 | ||
# routes = [nats://127.0.0.1:6222] | ||
# cluster_advertise: nats-server:6222 | ||
# connect_retries: 0 | ||
# } | ||
|
||
jetstream: enabled | ||
jetstream { | ||
store_dir: /data/jetstream | ||
max_mem: 10M | ||
max_file: 1G | ||
} | ||
|
||
debug: true | ||
logtime: true | ||
|
||
max_payload: 4MB | ||
lame_duck_grace_period: 10s | ||
lame_duck_duration: 30s | ||
|
||
include "resolver.conf" |
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,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
.devcontainer/scripts/nats_account.sh | ||
|
||
sleep infinity |
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,35 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# script to bootstrap a nats operator environment | ||
|
||
if nsc describe operator; then | ||
echo "operator exists, not overwriting config" | ||
exit 0 | ||
fi | ||
|
||
echo "Cleaning up NATS environment" | ||
rm -rf /nsc/* | ||
|
||
echo "Creating NATS operator" | ||
nsc add operator --generate-signing-key --sys --name LOCAL | ||
nsc edit operator -u 'nats://nats:4222' | ||
nsc list operators | ||
nsc describe operator | ||
|
||
export OPERATOR_SIGNING_KEY_ID=`nsc describe operator -J | jq -r '.nats.signing_keys | first'` | ||
|
||
echo "Creating NATS account for resource-provider-api" | ||
nsc add account -n RESP -K ${OPERATOR_SIGNING_KEY_ID} | ||
nsc edit account RESP --sk generate --js-mem-storage -1 --js-disk-storage -1 --js-streams -1 --js-consumer -1 | ||
nsc describe account RESP | ||
|
||
export ACCOUNTS_SIGNING_KEY_ID=`nsc describe account RESP -J | jq -r '.nats.signing_keys | first'` | ||
|
||
echo "Creating NATS user for resource-provider-api" | ||
nsc add user -n USER -K ${ACCOUNTS_SIGNING_KEY_ID} | ||
nsc describe user USER | ||
|
||
echo "Generating NATS resolver.conf" | ||
nsc generate config --mem-resolver --sys-account SYS --config-file /nats/resolver.conf --force |
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
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
dependencies: | ||
- name: common | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 2.4.0 | ||
version: 2.13.3 | ||
- name: reloader | ||
repository: https://stakater.github.io/stakater-charts | ||
version: v1.0.26 | ||
digest: sha256:3c3375ee126dbeb45635c24e7810c06d1f5f77ffabefd21c94d9822d8ec88660 | ||
generated: "2023-07-27T13:04:02.420252-04:00" | ||
version: 1.0.44 | ||
digest: sha256:55346e2ff2ccd1d67e6a57784d9e5aa5cd15dac5aecbb32112daf66c7de88f5d | ||
generated: "2023-10-18T23:37:47.165852064Z" |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.