Fix Cassandra e2e test
@@ -196,6 +196,25 @@ spec:
`
const nginxDeployYaml = `
+---
+apiVersion: v1
+kind: Secret
+metadata:
+ name: cassandra-secrets
+type: Opaque
+data:
+ cassandra_password: Y2Fzc2FuZHJhCg==
+---
+apiVersion: keda.sh/v1alpha1
+kind: TriggerAuthentication
+metadata:
+ name: keda-trigger-auth-cassandra-secret
+spec:
+ secretTargetRef:
+ - parameter: password
+ name: cassandra-secrets
+ key: cassandra_password
+---
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -237,27 +256,10 @@ spec:
consistency: "Quorum"
protocolVersion: "4"
port: "9042"
+ keyspace: "${cassandraKeyspace}"
query: "SELECT COUNT(*) FROM ${cassandraKeyspace}.${cassandraTableName};"
targetQueryValue: "1"
metricName: "${cassandraKeyspace}"
authenticationRef:
name: keda-trigger-auth-cassandra-secret
----
-apiVersion: v1
-kind: Secret
-metadata:
- name: cassandra-secrets
-type: Opaque
-data:
- cassandra_password: Y2Fzc2FuZHJhCg==
----
-apiVersion: keda.sh/v1alpha1
-kind: TriggerAuthentication
-metadata:
- name: keda-trigger-auth-cassandra-secret
-spec:
- secretTargetRef:
- - parameter: password
- name: cassandra-secrets
- key: cassandra_password
`
