-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial release with linuxserver image
- Loading branch information
Stephan Feurer
committed
Nov 24, 2023
1 parent
4b432c2
commit 2cf0009
Showing
13 changed files
with
290 additions
and
308 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// main template for nextcloud | ||
local crdb = import 'lib/cockroach-operator.libsonnet'; | ||
local kap = import 'lib/kapitan.libjsonnet'; | ||
local kube = import 'lib/kube.libjsonnet'; | ||
local prom = import 'lib/prometheus.libsonnet'; | ||
local inv = kap.inventory(); | ||
// The hiera parameters for the component | ||
local params = inv.parameters.nextcloud; | ||
|
||
local hasPrometheus = std.member(inv.applications, 'prometheus'); | ||
local hasOperator = std.member(inv.applications, 'cockroach-operator'); | ||
|
||
|
||
// CockroachDB | ||
|
||
local cockroachdb = crdb.database('database', params.namespace, params.database.spec); | ||
|
||
|
||
// Define outputs below | ||
{ | ||
'10_database': cockroachdb, | ||
} |
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,22 @@ | ||
// main template for nextcloud | ||
local kap = import 'lib/kapitan.libjsonnet'; | ||
local kube = import 'lib/kube.libjsonnet'; | ||
local prom = import 'lib/prometheus.libsonnet'; | ||
local redis = import 'lib/redis-operator.libsonnet'; | ||
local inv = kap.inventory(); | ||
// The hiera parameters for the component | ||
local params = inv.parameters.nextcloud; | ||
|
||
local hasPrometheus = std.member(inv.applications, 'prometheus'); | ||
local hasOperator = std.member(inv.applications, 'redis-operator'); | ||
|
||
|
||
// CockroachDB | ||
|
||
local replication = redis.replication('redis', params.namespace, params.redis.spec); | ||
|
||
|
||
// Define outputs below | ||
{ | ||
'10_redis': replication, | ||
} |
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
37 changes: 37 additions & 0 deletions
37
tests/golden/defaults/nextcloud/nextcloud/10_database.yaml
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,37 @@ | ||
apiVersion: crdb.cockroachlabs.com/v1alpha1 | ||
kind: CrdbCluster | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: database | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: database | ||
name: database | ||
name: database | ||
namespace: syn-nextcloud | ||
spec: | ||
affinity: | ||
podAntiAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchExpressions: | ||
- key: app.kubernetes.io/name | ||
operator: In | ||
values: | ||
- database | ||
topologyKey: kubernetes.io/hostname | ||
dataStore: | ||
pvc: | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: '' | ||
volumeMode: Filesystem | ||
image: | ||
name: docker.io/cockroachdb/cockroach:v23.1.8 | ||
pullPolicy: IfNotPresent | ||
nodes: 3 | ||
tlsEnabled: true |
Oops, something went wrong.