Interface TokenRequestable

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default io.fabric8.kubernetes.api.model.authentication.TokenRequest tokenRequest()
      Request a token to authenticate to the kubernetes api server as the given service account.
      io.fabric8.kubernetes.api.model.authentication.TokenRequest tokenRequest​(io.fabric8.kubernetes.api.model.authentication.TokenRequest tokenRequest)
      Request a token to authenticate to the kubernetes api server as the given service account.
    • Method Detail

      • tokenRequest

        default io.fabric8.kubernetes.api.model.authentication.TokenRequest tokenRequest()
        Request a token to authenticate to the kubernetes api server as the given service account. Creates an opinionated TokenRequest object with default expiration seconds time of 3600.
        Returns:
        TokenRequest object containing token in status
      • tokenRequest

        io.fabric8.kubernetes.api.model.authentication.TokenRequest tokenRequest​(io.fabric8.kubernetes.api.model.authentication.TokenRequest tokenRequest)
        Request a token to authenticate to the kubernetes api server as the given service account.
        Parameters:
        tokenRequest - TokenRequest
        Returns:
        TokenRequest object containing token in status