-
Notifications
You must be signed in to change notification settings - Fork 405
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
Adjust application-operator for mtls #3666
Changes from 1 commit
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 |
---|---|---|
|
@@ -25,3 +25,13 @@ spec: | |
- name: MOCK_SERVICE_PORT | ||
value: "8080" | ||
restartPolicy: Never | ||
--- | ||
apiVersion: "networking.istio.io/v1alpha3" | ||
kind: "DestinationRule" | ||
metadata: | ||
name: {{.Release.Name }}-mtls-disable | ||
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. I do not think that this is a proper name as the |
||
spec: | ||
host: {{.Release.Name }}-gateway-test-mock-service.{{ .Release.Namespace }}.svc.cluster.local | ||
trafficPolicy: | ||
tls: | ||
mode: DISABLE |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ import ( | |
|
||
"k8s.io/apimachinery/pkg/labels" | ||
|
||
"k8s.io/api/core/v1" | ||
v1 "k8s.io/api/core/v1" | ||
|
||
"github.com/kyma-project/kyma/tests/application-operator-tests/test/testkit" | ||
"github.com/stretchr/testify/require" | ||
|
@@ -147,7 +147,16 @@ func (ts *TestSuite) getLogsAndCleanup(t *testing.T) { | |
} | ||
|
||
func (ts *TestSuite) getPodLogs(t *testing.T, pod v1.Pod) { | ||
req := ts.k8sClient.GetLogs(pod.Name, &v1.PodLogOptions{}) | ||
|
||
var testContainer string | ||
for _, c := range pod.Spec.Containers { | ||
if strings.HasPrefix(c.Name, "test-operator-app-test") { | ||
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. Only one of the tests pods has such prefix, and it is not really clear. I would suggest changing container name in |
||
testContainer = c.Name | ||
} | ||
} | ||
req := ts.k8sClient.GetLogs(pod.Name, &v1.PodLogOptions{ | ||
Container: testContainer, | ||
}) | ||
|
||
reader, err := req.Stream() | ||
require.NoError(t, err) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest moving it to separate file.