Skip to content

Commit

Permalink
charts: move serverName to toplevel of values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Sep 14, 2024
1 parent 1b55d75 commit fe84b3f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/magout/templates/gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ data:
server {
listen 80;
listen [::]:80;
server_name {{ .Values.gateway.serverName }};
server_name {{ .Values.serverName }};
keepalive_timeout 70;
sendfile on;
Expand Down
3 changes: 2 additions & 1 deletion charts/magout/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

fullnameOverride: ""

serverName: "" # CHANGE HERE

mastodonVersion:
image: ghcr.io/mastodon/mastodon:v4.2.12
streamingImage: ghcr.io/mastodon/mastodon:v4.2.12
Expand Down Expand Up @@ -120,7 +122,6 @@ controller:
affinity: {}

gateway:
serverName: "" # CHANGE HERE
deploy:
replicas: 1
image: nginx:1
Expand Down
5 changes: 2 additions & 3 deletions test/e2e/testdata/values-v4.2.12.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
fullnameOverride: "mastodon0"

serverName: mastodon.test

mastodonVersion:
image: ghcr.io/mastodon/mastodon:v4.2.12
streamingImage: ghcr.io/mastodon/mastodon:v4.2.12

gateway:
serverName: mastodon.test

mastodonServer:
sidekiq:
annotations:
Expand Down
5 changes: 2 additions & 3 deletions test/e2e/testdata/values-v4.3.0b1-restart.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
fullnameOverride: "mastodon0"

serverName: mastodon.test

mastodonVersion:
image: ghcr.io/mastodon/mastodon:4.3.0b1
streamingImage: ghcr.io/mastodon/mastodon-streaming:4.3.0b1

gateway:
serverName: mastodon.test

mastodonServer:
sidekiq:
annotations:
Expand Down
5 changes: 2 additions & 3 deletions test/e2e/testdata/values-v4.3.0b1.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
fullnameOverride: "mastodon0"

serverName: mastodon.test

mastodonVersion:
image: ghcr.io/mastodon/mastodon:4.3.0b1
streamingImage: ghcr.io/mastodon/mastodon-streaming:4.3.0b1

gateway:
serverName: mastodon.test

mastodonServer:
sidekiq:
annotations:
Expand Down

0 comments on commit fe84b3f

Please sign in to comment.