@Override public KubectlExecResult exec(KubectlExecSpec execSpec) { return super.exec(execSpec); }
public Credentials getCredentials() { init(); return credentials; }
@Override protected void setProject(Project project) { super.setProject(project); }
return createResult(output); leftSpec.setCommandLine(commandLine.subList(0, pipeIndex)); leftSpec.setOutputFormat(OutputFormat.TEXT); KubectlExecResult leftResult = exec(leftSpec); return exec(rightSpec);
public KubectlExtensionBase() { credentials = new Credentials(this); client = createClient(); }
return createResult(output); leftSpec.setCommandLine(commandLine.subList(0, pipeIndex)); leftSpec.setOutputFormat(OutputFormat.TEXT); KubectlExecResult leftResult = exec(leftSpec); return exec(rightSpec);
public KubectlExtensionBase() { credentials = new Credentials(this); client = createClient(); }
public OcExecResult exec(OcExecSpec spec) { return (OcExecResult) super.exec(spec); }
public Credentials getCredentials() { init(); return credentials; }
@Override public KubectlExecResult exec(KubectlExecSpec execSpec) { return super.exec(execSpec); }
public String getNamespace() { init(); return namespace; }
public KubectlExecResult exec(String command) { KubectlExecSpec spec = new KubectlExecSpec(); spec.setCommandLine(command); return exec(spec); }
public String getUrl() { init(); return url; }
public KubectlExecResult exec(String command) { KubectlExecSpec spec = new KubectlExecSpec(); spec.setCommandLine(command); return exec(spec); }
public String getNamespace() { init(); return namespace; }
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 String getUrl() { init(); return url; }
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"); }