[
https://issues.apache.org/jira/browse/FLINK-31717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matyas Orhidi updated FLINK-31717:
----------------------------------
Description:
Some unit tests are using local kube environment. This can be dangerous when
pointing to sensitive clusters e.g. in prod.
{quote}2023-04-03 12:32:53,956 i.f.k.c.Config [DEBUG] Found for
Kubernetes config at: [/Users/<redacted>/.kube/config].
{quote}
A misconfigured kube config environment revealed the issue:
{quote}[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:
0.012 s <<< FAILURE! - in org.apache.flink.kubernetes.operator.FlinkOperatorTest
[ERROR]
org.apache.flink.kubernetes.operator.FlinkOperatorTest.testConfigurationPassedToJOSDK
Time elapsed: 0.008 s <<< ERROR!
java.lang.NullPointerException
at
org.apache.flink.kubernetes.operator.FlinkOperatorTest.testConfigurationPassedToJOSDK(FlinkOperatorTest.java:63)
[ERROR]
org.apache.flink.kubernetes.operator.FlinkOperatorTest.testLeaderElectionConfig
Time elapsed: 0.004 s <<< ERROR!
java.lang.NullPointerException
at
org.apache.flink.kubernetes.operator.FlinkOperatorTest.testLeaderElectionConfig(FlinkOperatorTest.java:108){quote}
was:
Some unit tests are using local kube environment. This can be dangerous when
pointing to sensitive clusters e.g. in prod.
{{2023-04-03 12:32:53,956 i.f.k.c.Config [DEBUG] Found for
Kubernetes config at: [/Users/<redacted>/.kube/config].
}}
A misconfigured kube config environment revealed the issue:
{{[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.012
s <<< FAILURE! - in org.apache.flink.kubernetes.operator.FlinkOperatorTest
[ERROR]
org.apache.flink.kubernetes.operator.FlinkOperatorTest.testConfigurationPassedToJOSDK
Time elapsed: 0.008 s <<< ERROR!
java.lang.NullPointerException
at
org.apache.flink.kubernetes.operator.FlinkOperatorTest.testConfigurationPassedToJOSDK(FlinkOperatorTest.java:63)
[ERROR]
org.apache.flink.kubernetes.operator.FlinkOperatorTest.testLeaderElectionConfig
Time elapsed: 0.004 s <<< ERROR!
java.lang.NullPointerException
at
org.apache.flink.kubernetes.operator.FlinkOperatorTest.testLeaderElectionConfig(FlinkOperatorTest.java:108)
}}
move ~/.kube/config
> Unit tests running with local kube config
> -----------------------------------------
>
> Key: FLINK-31717
> URL: https://issues.apache.org/jira/browse/FLINK-31717
> Project: Flink
> Issue Type: New Feature
> Components: Kubernetes Operator
> Reporter: Matyas Orhidi
> Priority: Critical
>
> Some unit tests are using local kube environment. This can be dangerous when
> pointing to sensitive clusters e.g. in prod.
> {quote}2023-04-03 12:32:53,956 i.f.k.c.Config [DEBUG] Found
> for Kubernetes config at: [/Users/<redacted>/.kube/config].
> {quote}
> A misconfigured kube config environment revealed the issue:
> {quote}[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time
> elapsed: 0.012 s <<< FAILURE! - in
> org.apache.flink.kubernetes.operator.FlinkOperatorTest
> [ERROR]
> org.apache.flink.kubernetes.operator.FlinkOperatorTest.testConfigurationPassedToJOSDK
> Time elapsed: 0.008 s <<< ERROR!
> java.lang.NullPointerException
> at
> org.apache.flink.kubernetes.operator.FlinkOperatorTest.testConfigurationPassedToJOSDK(FlinkOperatorTest.java:63)
> [ERROR]
> org.apache.flink.kubernetes.operator.FlinkOperatorTest.testLeaderElectionConfig
> Time elapsed: 0.004 s <<< ERROR!
> java.lang.NullPointerException
> at
> org.apache.flink.kubernetes.operator.FlinkOperatorTest.testLeaderElectionConfig(FlinkOperatorTest.java:108){quote}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)