use of org.apache.flink.kubernetes.kubeclient.FlinkKubeClientFactory in project flink by apache.
the class KubernetesResource method before.
@Override
public void before() {
checkEnv();
configuration = new Configuration();
configuration.set(KubernetesConfigOptions.KUBE_CONFIG_FILE, kubeConfigFile);
configuration.setString(KubernetesConfigOptions.CLUSTER_ID, CLUSTER_ID);
final FlinkKubeClientFactory kubeClientFactory = new FlinkKubeClientFactory();
flinkKubeClient = kubeClientFactory.fromConfiguration(configuration, "testing");
}
Aggregations