File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
samples/nginx-www/src/main/java/com/github/containersolutions/operator/sample Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
package com .github .containersolutions .operator .sample ;
2
2
3
3
import com .github .containersolutions .operator .Operator ;
4
+ import io .fabric8 .kubernetes .client .Config ;
5
+ import io .fabric8 .kubernetes .client .ConfigBuilder ;
4
6
import io .fabric8 .kubernetes .client .DefaultKubernetesClient ;
5
7
import org .slf4j .Logger ;
6
8
import org .slf4j .LoggerFactory ;
@@ -18,7 +20,8 @@ public class WebServerOperator {
18
20
public static void main (String [] args ) throws IOException {
19
21
log .info ("WebServer Operator starting" );
20
22
21
- Operator operator = new Operator (new DefaultKubernetesClient ());
23
+ Config config = new ConfigBuilder ().withNamespace (null ).build ();
24
+ Operator operator = new Operator (new DefaultKubernetesClient (config ));
22
25
operator .registerControllerForAllNamespaces (new WebServerController ());
23
26
24
27
new FtBasic (
You can’t perform that action at this time.
0 commit comments