-
Notifications
You must be signed in to change notification settings - Fork 75
K8SPG-943: check operator panic in e2e test #1441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
c4cba6b
6fa21f8
1d16eb1
1418e39
da35bb5
a2afa87
185e187
5f64d22
e5e159c
ecd71ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,14 @@ create_namespace() { | |
| fi | ||
| } | ||
|
|
||
| check_operator_panic() { | ||
| local operator_pod=$(get_operator_pod) | ||
| if kubectl logs -n "${OPERATOR_NS:-$NAMESPACE}" "$operator_pod" -c operator | grep -q "Observed a panic"; then | ||
| echo "Detected panic in operator" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. detected panic but what is the panic? grep -q will suppress any output. we need to print the panic and the stacktrace if possible |
||
| exit 1 | ||
| fi | ||
| } | ||
|
Comment on lines
+40
to
+49
|
||
|
|
||
| deploy_operator() { | ||
| local cw_prefix="" | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,5 +24,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,5 +24,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,5 +17,6 @@ commands: | |
| source ../../functions | ||
|
|
||
| remove_all_finalizers | ||
| check_operator_panic | ||
| destroy_operator | ||
| timeout: 60 | ||
Uh oh!
There was an error while loading. Please reload this page.