-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migration to 2.0: replace SURREAL_AUTH env var with SURREAL_UNAUTHENT…
…ICATED (#9) Co-authored-by: Gerard Guillemas Martos <[email protected]> Co-authored-by: Gerard Guillemas Martos <[email protected]> Co-authored-by: Yusuke Kuoka <[email protected]>
- Loading branch information
1 parent
ba85538
commit 3064fe9
Showing
10 changed files
with
296 additions
and
7 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
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
62 changes: 62 additions & 0 deletions
62
tests/testdata/snapshots/deployment.yaml/disable auth using deprecated surrealdb.auth
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,62 @@ | ||
--- | ||
# Source: surrealdb/templates/deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: testrelease-surrealdb | ||
labels: | ||
helm.sh/chart: surrealdb-0.3.5 | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
app.kubernetes.io/version: "1.0.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
spec: | ||
serviceAccountName: testrelease-surrealdb | ||
securityContext: | ||
{} | ||
containers: | ||
- name: surrealdb | ||
securityContext: | ||
{} | ||
image: "surrealdb/surrealdb:1.0.0" | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- start | ||
env: | ||
- name: SURREAL_NO_BANNER | ||
value: "true" | ||
- name: SURREAL_PATH | ||
value: memory | ||
- name: SURREAL_LOG | ||
value: info | ||
- name: SURREAL_BIND | ||
value: 0.0.0.0:8000 | ||
- name: SURREAL_AUTH | ||
value: "false" | ||
- name: SURREAL_UNAUTHENTICATED | ||
value: "true" | ||
ports: | ||
- name: http | ||
containerPort: 8000 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
resources: | ||
{} |
62 changes: 62 additions & 0 deletions
62
tests/testdata/snapshots/deployment.yaml/disable auth using surrealdb.unauhenticated
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,62 @@ | ||
--- | ||
# Source: surrealdb/templates/deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: testrelease-surrealdb | ||
labels: | ||
helm.sh/chart: surrealdb-0.3.5 | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
app.kubernetes.io/version: "1.0.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
spec: | ||
serviceAccountName: testrelease-surrealdb | ||
securityContext: | ||
{} | ||
containers: | ||
- name: surrealdb | ||
securityContext: | ||
{} | ||
image: "surrealdb/surrealdb:1.0.0" | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- start | ||
env: | ||
- name: SURREAL_NO_BANNER | ||
value: "true" | ||
- name: SURREAL_PATH | ||
value: memory | ||
- name: SURREAL_LOG | ||
value: info | ||
- name: SURREAL_BIND | ||
value: 0.0.0.0:8000 | ||
- name: SURREAL_AUTH | ||
value: "false" | ||
- name: SURREAL_UNAUTHENTICATED | ||
value: "true" | ||
ports: | ||
- name: http | ||
containerPort: 8000 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
resources: | ||
{} |
62 changes: 62 additions & 0 deletions
62
...s/deployment.yaml/release deployed using pre v0.3.5 chart with the default surrealdb.auth
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,62 @@ | ||
--- | ||
# Source: surrealdb/templates/deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: testrelease-surrealdb | ||
labels: | ||
helm.sh/chart: surrealdb-0.3.5 | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
app.kubernetes.io/version: "1.0.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
spec: | ||
serviceAccountName: testrelease-surrealdb | ||
securityContext: | ||
{} | ||
containers: | ||
- name: surrealdb | ||
securityContext: | ||
{} | ||
image: "surrealdb/surrealdb:1.0.0" | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- start | ||
env: | ||
- name: SURREAL_NO_BANNER | ||
value: "true" | ||
- name: SURREAL_PATH | ||
value: memory | ||
- name: SURREAL_LOG | ||
value: info | ||
- name: SURREAL_BIND | ||
value: 0.0.0.0:8000 | ||
- name: SURREAL_AUTH | ||
value: "true" | ||
- name: SURREAL_UNAUTHENTICATED | ||
value: "false" | ||
ports: | ||
- name: http | ||
containerPort: 8000 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
resources: | ||
{} |
62 changes: 62 additions & 0 deletions
62
tests/testdata/snapshots/deployment.yaml/surrealdb.unauthenticated=false has no effect
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,62 @@ | ||
--- | ||
# Source: surrealdb/templates/deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: testrelease-surrealdb | ||
labels: | ||
helm.sh/chart: surrealdb-0.3.5 | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
app.kubernetes.io/version: "1.0.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: surrealdb | ||
app.kubernetes.io/instance: testrelease | ||
spec: | ||
serviceAccountName: testrelease-surrealdb | ||
securityContext: | ||
{} | ||
containers: | ||
- name: surrealdb | ||
securityContext: | ||
{} | ||
image: "surrealdb/surrealdb:1.0.0" | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- start | ||
env: | ||
- name: SURREAL_NO_BANNER | ||
value: "true" | ||
- name: SURREAL_PATH | ||
value: memory | ||
- name: SURREAL_LOG | ||
value: info | ||
- name: SURREAL_BIND | ||
value: 0.0.0.0:8000 | ||
- name: SURREAL_AUTH | ||
value: "true" | ||
- name: SURREAL_UNAUTHENTICATED | ||
value: "false" | ||
ports: | ||
- name: http | ||
containerPort: 8000 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
resources: | ||
{} |