private void exec(String command) { KubectlExtension extension = getExtension(); KubectlExecSpec spec = new KubectlExecSpec(); spec.setCommandLine(command); extension.exec(spec); }
public KubectlExecResult exec(String command) { KubectlExecSpec spec = new KubectlExecSpec(); spec.setCommandLine(command); return exec(spec); }
@Override public void duplicate(KubectlExecSpec duplicate) { // nothing more to do super.duplicate(duplicate); }
public String getToken(String serviceAccount) { KubectlExecSpec spec = new KubectlExecSpec(); spec.setCommandLine(client.getBinName() + " describe serviceaccount " + serviceAccount); KubectlExecResult result = exec(spec); String tokenName = result.getProperty("tokens"); spec.setCommandLine(client.getBinName() + " describe secret " + tokenName); result = exec(spec); return result.getProperty("token"); }
public KubectlExecResult exec(Closure<KubectlExecSpec> closure) { KubectlExecSpec spec = new KubectlExecSpec(); project.configure(spec, closure); return exec(spec); } }
public KubectlExecBase() { setGroup("kubernetes"); spec = createSpec(); }
@Override public KubectlExecResult exec(KubectlExecSpec execSpec) { return super.exec(execSpec); }
public Credentials getCredentials() { init(); return credentials; }
public KubectlStartProxyTask() { // TODO // retrieveSpec().getPortMappings().put(8001, 8001); // by default the proxy binds to loopback which cannot be exposed with docker commandLine("kubectl proxy --address=\"0.0.0.0\""); //http://localhost:8001/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/#!/secret/default // /container-registry-secrets?namespace=default } }
@Override protected KubectlExecSpec newSpec() { return new KubectlExecSpec(); }
public OcExecResult getResult() { return (OcExecResult) super.getResult(); }
@Override protected void setProject(Project project) { super.setProject(project); }
public String getToken(String serviceAccount) { KubectlExecSpec spec = new KubectlExecSpec(); spec.setCommandLine(client.getBinName() + " describe serviceaccount " + serviceAccount); KubectlExecResult result = exec(spec); String tokenName = result.getProperty("tokens"); spec.setCommandLine(client.getBinName() + " describe secret " + tokenName); result = exec(spec); return result.getProperty("token"); }
private void exec(String command) { KubectlExtension extension = getExtension(); KubectlExecSpec spec = new KubectlExecSpec(); spec.setCommandLine(command); extension.exec(spec); }
public KubectlExecResult exec(String command) { KubectlExecSpec spec = new KubectlExecSpec(); spec.setCommandLine(command); return exec(spec); }
public KubectlExecResult exec(Closure<KubectlExecSpec> closure) { KubectlExecSpec spec = new KubectlExecSpec(); project.configure(spec, closure); return exec(spec); } }
public Credentials getCredentials() { init(); return credentials; }
public KubectlStartProxyTask() { // TODO // retrieveSpec().getPortMappings().put(8001, 8001); // by default the proxy binds to loopback which cannot be exposed with docker commandLine("kubectl proxy --address=\"0.0.0.0\""); //http://localhost:8001/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/#!/secret/default // /container-registry-secrets?namespace=default } }
@Override protected KubectlExecSpec newSpec() { return new KubectlExecSpec(); }
public String getNamespace() { init(); return namespace; }