Codota Logo
Tiller
Code IndexAdd Codota to your IDE (free)

How to use
Tiller
in
org.microbean.helm

Best Java code snippets using org.microbean.helm.Tiller (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: vmware/admiral

@Override
public void close() throws IOException {
  super.close();
  if (client != null) {
    client.close();
  }
}
origin: org.microbean/microbean-helm

/**
 * Creates a new {@link Tiller} that will use information from the
 * supplied {@link LocalPortForward} to establish a communications
 * channel with the Tiller server.
 *
 * @param portForward the {@link LocalPortForward} to use; must not
 * be {@code null}
 *
 * @exception NullPointerException if {@code portForward} is {@code
 * null}
 */
public Tiller(final LocalPortForward portForward) {
 super();
 Objects.requireNonNull(portForward);
 this.config = null;
 this.portForward = null; // yes, null
 this.channel = this.buildChannel(portForward);
}
origin: org.microbean/microbean-helm

public VersionOrBuilder getVersion() throws IOException {
 final ReleaseServiceBlockingStub stub = this.getReleaseServiceBlockingStub();
 assert stub != null;
 final GetVersionResponse response = stub.getVersion(null);
 assert response != null;
 return response.getVersion();
}

origin: vmware/admiral

@Test
public void testNewTiller() throws Throwable {
  for (TillerConnectionType connectionType : TillerConnectionType.values()) {
    Tiller tiller = TillerFactory.newTiller(buildTillerConfig(connectionType));
    assertNotNull(tiller);
    assertNotNull(tiller.getHealthStub());
    tiller.close();
  }
}
origin: org.microbean/microbean-helm

/**
 * Uninstalls (deletes) a previously installed release.
 *
 * <p>This method never returns {@code null}.</p>
 *
 * <p>Overrides of this method must not return {@code null}.</p>
 *
 * @param request the {@link UninstallReleaseRequest} describing the
 * release; must not be {@code null}
 *
 * @return a {@link Future} containing a {@link
 * UninstallReleaseResponse} that has the information requested;
 * never {@code null}
 *
 * @exception NullPointerException if {@code request} is {@code
 * null}
 */
public Future<UninstallReleaseResponse> uninstall(final UninstallReleaseRequest request)
 throws IOException {
 Objects.requireNonNull(request);
 validate(request);
 final ReleaseServiceFutureStub stub = this.getTiller().getReleaseServiceFutureStub();
 assert stub != null;
 return stub.uninstallRelease(request);
}
origin: microbean/microbean-helm

final Tiller tiller = new Tiller((T)this.kubernetesClient, namespace, -1 /* use default */, labels);
final HealthBlockingStub health = tiller.getHealthBlockingStub();
assert health != null;
final HealthCheckRequest.Builder builder = HealthCheckRequest.newBuilder();
origin: org.microbean/microbean-helm

 final io.fabric8.kubernetes.client.Config configuration = this.getTiller().getConfiguration();
 if (configuration == null) {
  requestBuilder.setNamespace("default");
final ReleaseServiceFutureStub stub = this.getTiller().getReleaseServiceFutureStub();
assert stub != null;
return stub.installRelease(requestBuilder.build());
origin: vmware/admiral

@Override
public CompletableFuture<Void> healthCheck() {
  ensureNotClosed();
  CompletableFuture<HealthCheckResponse> completableFuture = new CompletableFuture<>();
  StreamObserver<HealthCheckResponse> observer = createUnaryCallStreamObserverForCompletableFuture(
      completableFuture);
  tiller.getHealthStub().check(HealthCheckRequest.getDefaultInstance(), observer);
  return completableFuture.thenAccept(response -> {
    if (response.getStatus() != ServingStatus.SERVING) {
      throw new TillerClientException(String.format(HEALTH_CHECK_STATUS_MESSAGE_FORMAT,
          response.getStatus().toString()));
    }
  });
}
origin: org.microbean/microbean-helm

/**
 * Returns the history of a given Helm release.
 *
 * <p>This method never returns {@code null}.</p>
 *
 * <p>Overrides of this method must not return {@code null}.</p>
 *
 * @param request the {@link GetHistoryRequest}
 * describing the release; must not be {@code null}
 *
 * @return a {@link Future} containing a {@link
 * GetHistoryResponse} that has the information requested;
 * never {@code null}
 *
 * @exception NullPointerException if {@code request} is {@code
 * null}
 */
public Future<GetHistoryResponse> getHistory(final GetHistoryRequest request) throws IOException {
 Objects.requireNonNull(request);
 validate(request);
 final ReleaseServiceFutureStub stub = this.getTiller().getReleaseServiceFutureStub();
 assert stub != null;
 return stub.getHistory(request);
}
origin: org.microbean/microbean-helm

final Tiller tiller = new Tiller((T)this.kubernetesClient, namespace, -1 /* use default */, labels);
final HealthBlockingStub health = tiller.getHealthBlockingStub();
assert health != null;
final HealthCheckRequest.Builder builder = HealthCheckRequest.newBuilder();
origin: microbean/microbean-helm

 final io.fabric8.kubernetes.client.Config configuration = this.getTiller().getConfiguration();
 if (configuration == null) {
  requestBuilder.setNamespace("default");
final ReleaseServiceFutureStub stub = this.getTiller().getReleaseServiceFutureStub();
assert stub != null;
return stub.installRelease(requestBuilder.build());
origin: microbean/microbean-helm

/**
 * Calls {@link Tiller#close() close()} on the {@link Tiller}
 * instance {@linkplain #ReleaseManager(Tiller) supplied at
 * construction time}.
 *
 * @exception IOException if an error occurs
 */
@Override
public void close() throws IOException {
 this.getTiller().close();
}
origin: org.microbean/microbean-helm

/**
 * Returns the status of a given Helm release.
 *
 * <p>This method never returns {@code null}.</p>
 *
 * <p>Overrides of this method must not return {@code null}.</p>
 *
 * @param request the {@link GetReleaseStatusRequest} describing the
 * release; must not be {@code null}
 *
 * @return a {@link Future} containing a {@link
 * GetReleaseStatusResponse} that has the information requested;
 * never {@code null}
 *
 * @exception NullPointerException if {@code request} is {@code
 * null}
 */
public Future<GetReleaseStatusResponse> getStatus(final GetReleaseStatusRequest request) throws IOException {
 Objects.requireNonNull(request);
 validate(request);
 final ReleaseServiceFutureStub stub = this.getTiller().getReleaseServiceFutureStub();
 assert stub != null;
 return stub.getReleaseStatus(request);
}   

origin: microbean/microbean-helm

public VersionOrBuilder getVersion() throws IOException {
 final ReleaseServiceBlockingStub stub = this.getReleaseServiceBlockingStub();
 assert stub != null;
 final GetVersionResponse response = stub.getVersion(null);
 assert response != null;
 return response.getVersion();
}

origin: microbean/microbean-helm

/**
 * Creates a new {@link Tiller} that will use information from the
 * supplied {@link LocalPortForward} to establish a communications
 * channel with the Tiller server.
 *
 * @param portForward the {@link LocalPortForward} to use; must not
 * be {@code null}
 *
 * @exception NullPointerException if {@code portForward} is {@code
 * null}
 */
public Tiller(final LocalPortForward portForward) {
 super();
 Objects.requireNonNull(portForward);
 this.config = null;
 this.portForward = null; // yes, null
 this.channel = this.buildChannel(portForward);
}
origin: org.microbean/microbean-helm

/**
 * Calls {@link Tiller#close() close()} on the {@link Tiller}
 * instance {@linkplain #ReleaseManager(Tiller) supplied at
 * construction time}.
 *
 * @exception IOException if an error occurs
 */
@Override
public void close() throws IOException {
 this.getTiller().close();
}
origin: org.microbean/microbean-helm

/**
 * Rolls back a previously installed release.
 *
 * <p>This method never returns {@code null}.</p>
 *
 * <p>Overrides of this method must not return {@code null}.</p>
 *
 * @param request the {@link RollbackReleaseRequest} describing the
 * release; must not be {@code null}
 *
 * @return a {@link Future} containing a {@link
 * RollbackReleaseResponse} that has the information requested;
 * never {@code null}
 *
 * @exception NullPointerException if {@code request} is {@code
 * null}
 */
public Future<RollbackReleaseResponse> rollback(final RollbackReleaseRequest request)
 throws IOException {
 Objects.requireNonNull(request);
 validate(request);
 final ReleaseServiceFutureStub stub = this.getTiller().getReleaseServiceFutureStub();
 assert stub != null;
 return stub.rollbackRelease(request);
}
origin: org.microbean/microbean-helm

/**
 * Returns information about tests run on a given Helm release.
 *
 * <p>This method never returns {@code null}.</p>
 *
 * <p>Overrides of this method must not return {@code null}.</p>
 *
 * @param request the {@link TestReleaseRequest} describing the
 * release to be tested; must not be {@code null}
 *
 * @return an {@link Iterator} of {@link TestReleaseResponse}
 * objects comprising the information requested; never {@code null}
 *
 * @exception NullPointerException if {@code request} is {@code
 * null}
 */
public Iterator<TestReleaseResponse> test(final TestReleaseRequest request) {
 Objects.requireNonNull(request);
 validate(request);
 final ReleaseServiceBlockingStub stub = this.getTiller().getReleaseServiceBlockingStub();
 assert stub != null;
 return stub.runReleaseTest(request);
}
origin: microbean/microbean-helm

 throw new TillerException("Could not forward port to a Ready Tiller pod's port " + tillerPort + " in namespace " + namespaceHousingTiller + " with labels " + tillerLabels);
this.channel = this.buildChannel(this.portForward);
origin: vmware/admiral

@Override
public void close() {
  ensureNotClosed();
  try {
    tiller.close();
    closed = true;
  } catch (IOException e) {
    throw new TillerClientException("Failed to close tiller instance", e);
  }
}
org.microbean.helmTiller

Javadoc

A convenience class for communicating with a Tiller server.

Most used methods

  • close
    Closes this Tiller after use; any LocalPortForward or ManagedChannel used or created by or for this
  • getHealthStub
  • <init>
    Creates a new Tiller that will use the supplied ManagedChannel for communication.
  • buildChannel
    Creates a ManagedChannel for communication with Tiller from the information contained in the supplie
  • getConfiguration
    Returns any Config available at construction time.This method may return null.
  • getHealthBlockingStub
  • getReleaseServiceBlockingStub
    Returns the gRPC-generated ReleaseServiceBlockingStubobject that represents the capabilities of the
  • getReleaseServiceFutureStub
    Returns the gRPC-generated ReleaseServiceFutureStubobject that represents the capabilities of the Ti

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now