File tree Expand file tree Collapse file tree
dinky-gateway/src/main/java/org/dinky/gateway Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,6 +89,10 @@ public void setGatewayConfig(GatewayConfig config) {
8989
9090 protected abstract void init ();
9191
92+ protected boolean removeConfigParas (ConfigOption <String > configOption ) {
93+ return this .configuration .removeConfig (configOption );
94+ }
95+
9296 protected void addConfigParas (Map <String , String > configMap ) {
9397 if (Asserts .isNotNull (configMap )) {
9498 configMap .entrySet ().stream ()
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ public abstract class KubernetesOperatorGateway extends KubernetesGateway {
7272 public void init () {
7373 kubernetesConfiguration = config .getKubernetesConfig ().getConfiguration ();
7474 initConfig ();
75+ // Operator does not need this config; it should be removed to avoid exceptions.
76+ this .removeConfigParas (KubernetesConfigOptions .KUBE_CONFIG_FILE );
77+
7578 initBase ();
7679 initMetadata ();
7780 initSpec ();
You can’t perform that action at this time.
0 commit comments