Skip to content

Commit

Permalink
[v2] post merge: change apiversion to keda.sh (kedacore#843)
Browse files Browse the repository at this point in the history
Signed-off-by: Zbynek Roubalik zroubali@redhat.com
  • Loading branch information
zroubalik authored and Zbynek Roubalik committed Jul 7, 2020
1 parent 0cdf6b7 commit 64f6688
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 22 deletions.
2 changes: 1 addition & 1 deletion deploy/crds/keda.sh_v1alpha1_scaledobject_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: keda.k8s.io/v1alpha1
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: example-scaledobject
Expand Down
2 changes: 1 addition & 1 deletion deploy/crds/keda.sh_v1alpha1_triggerauthentication_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: keda.k8s.io/v1alpha1
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: example-triggerauthentication
Expand Down
6 changes: 3 additions & 3 deletions tests/scalers/prometheus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ test.after.always.cb('clean up prometheus deployment', t => {
'deployment.apps/test-app',
'deployment.apps/keda-test-app',
'service/test-app',
'scaledobject.keda.k8s.io/prometheus-scaledobject',
'scaledobject.keda.sh/prometheus-scaledobject',
'job/generate-requests',
]

Expand Down Expand Up @@ -179,13 +179,13 @@ spec:
selector:
type: keda-testing
---
apiVersion: keda.k8s.io/v1alpha1
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: prometheus-scaledobject
spec:
scaleTargetRef:
deploymentName: keda-test-app
name: keda-test-app
minReplicaCount: 0
maxReplicaCount: 5
pollingInterval: 5
Expand Down
8 changes: 3 additions & 5 deletions tests/scalers/rabbitmq-queue-amqp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ test.after.always.cb('clean up rabbitmq-queue deployment', t => {
const resources = [
'secret/test-secrets',
'deployment.apps/test-deployment',
'scaledobject.keda.k8s.io/test-scaledobject',
'scaledobject.keda.sh/test-scaledobject',
]

for (const resource of resources) {
Expand Down Expand Up @@ -109,15 +109,13 @@ spec:
- secretRef:
name: test-secrets
---
apiVersion: keda.k8s.io/v1alpha1
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: test-scaledobject
labels:
deploymentName: test-deployment
spec:
scaleTargetRef:
deploymentName: test-deployment
name: test-deployment
pollingInterval: 5
cooldownPeriod: 10
minReplicaCount: 0
Expand Down
8 changes: 3 additions & 5 deletions tests/scalers/rabbitmq-queue-http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test.after.always.cb('clean up rabbitmq-queue deployment', t => {
const resources = [
'secret/test-secrets-api',
'deployment.apps/test-deployment',
'scaledobject.keda.k8s.io/test-scaledobject',
'scaledobject.keda.sh/test-scaledobject',
]

for (const resource of resources) {
Expand Down Expand Up @@ -111,15 +111,13 @@ spec:
- secretRef:
name: test-secrets-api
---
apiVersion: keda.k8s.io/v1alpha1
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: test-scaledobject
labels:
deploymentName: test-deployment
spec:
scaleTargetRef:
deploymentName: test-deployment
name: test-deployment
pollingInterval: 5
cooldownPeriod: 10
minReplicaCount: 0
Expand Down
12 changes: 5 additions & 7 deletions tests/scalers/rabbitmq-queue-trigger-auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ test.after.always.cb('clean up rabbitmq-queue deployment', t => {
const resources = [
'secret/test-secrets',
'deployment.apps/test-deployment',
'scaledobject.keda.k8s.io/test-scaledobject',
'triggerauthentications.keda.k8s.io/rabbitmq-trigger-auth',
'scaledobject.keda.sh/test-scaledobject',
'triggerauthentications.keda.sh/rabbitmq-trigger-auth',
]

for (const resource of resources) {
Expand Down Expand Up @@ -109,7 +109,7 @@ spec:
args:
- '{{CONNECTION_STRING}}'
---
apiVersion: keda.k8s.io/v1alpha1
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: rabbitmq-trigger-auth
Expand All @@ -119,15 +119,13 @@ spec:
name: rabbitmq-test-secret
key: RabbitMqHost
---
apiVersion: keda.k8s.io/v1alpha1
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: test-scaledobject
labels:
deploymentName: test-deployment
spec:
scaleTargetRef:
deploymentName: test-deployment
name: test-deployment
pollingInterval: 5
cooldownPeriod: 10
minReplicaCount: 0
Expand Down

0 comments on commit 64f6688

Please sign in to comment.