summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/music/charts/music-cassandra-job/resources/cql/admin.cql
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/common/music/charts/music-cassandra-job/resources/cql/admin.cql')
-rw-r--r--kubernetes/common/music/charts/music-cassandra-job/resources/cql/admin.cql19
1 files changed, 19 insertions, 0 deletions
diff --git a/kubernetes/common/music/charts/music-cassandra-job/resources/cql/admin.cql b/kubernetes/common/music/charts/music-cassandra-job/resources/cql/admin.cql
new file mode 100644
index 0000000000..a76d774bd3
--- /dev/null
+++ b/kubernetes/common/music/charts/music-cassandra-job/resources/cql/admin.cql
@@ -0,0 +1,19 @@
+CREATE KEYSPACE IF NOT EXISTS admin
+ WITH REPLICATION = {
+ 'class' : '{{.Values.cql.keyspace.replicationClass}}',
+ 'replication_factor': {{.Values.cql.keyspace.replicationFactor}}
+ }
+ AND DURABLE_WRITES = true;
+
+CREATE TABLE IF NOT EXISTS admin.keyspace_master (
+ uuid uuid,
+ keyspace_name text,
+ application_name text,
+ is_api boolean,
+ password text,
+ username text,
+ is_aaf boolean,
+ PRIMARY KEY (uuid)
+);
+
+describe keyspaces;