Skip to content

Commit

Permalink
Upgrade api rules for k8s compatibility tests
Browse files Browse the repository at this point in the history
Currently, k8s compatiblity tests are not being exposed properly and
test are failing.
  • Loading branch information
muralov committed Jul 25, 2024
1 parent 308bb0c commit 4c226dd
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions hack/e2e/scripts/expose_epp_and_sink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,47 +24,51 @@ validate_and_default() {

create_api_rule_for_epp() {
cat <<EOF | kubectl apply -f -
apiVersion: gateway.kyma-project.io/v1beta1
apiVersion: gateway.kyma-project.io/v2alpha1
kind: APIRule
metadata:
name: epp-e2e-tests
namespace: default
spec:
host: epp-e2e-tests.$DOMAIN_TO_EXPOSE_WORKLOADS
hosts:
- epp-e2e-tests.$DOMAIN_TO_EXPOSE_WORKLOADS
service:
name: eventing-publisher-proxy
namespace: kyma-system
port: 80
gateway: $API_RULE_GATEWAY
rules:
- path: /.*
methods: ["GET", "POST"]
accessStrategies:
- handler: allow
config: {}
methods: ["GET"]
noAuth: true
- path: /post
methods: ["POST"]
noAuth: true
EOF
}

create_api_rule_for_sink() {
cat <<EOF | kubectl apply -f -
apiVersion: gateway.kyma-project.io/v1beta1
apiVersion: gateway.kyma-project.io/v2alpha1
kind: APIRule
metadata:
name: sink-e2e-tests
namespace: default
spec:
host: sink-e2e-tests.$DOMAIN_TO_EXPOSE_WORKLOADS
hosts:
- sink-e2e-tests.$DOMAIN_TO_EXPOSE_WORKLOADS
service:
name: test-sink
namespace: eventing-tests
port: 80
gateway: $API_RULE_GATEWAY
rules:
- path: /.*
methods: ["GET", "POST"]
accessStrategies:
- handler: allow
config: {}
methods: ["GET"]
noAuth: true
- path: /post
methods: ["POST"]
noAuth: true
EOF
}

Expand Down

0 comments on commit 4c226dd

Please sign in to comment.