Beispiel #1
0
 def get_release_status(self, name):
     stub = ReleaseServiceStub(self.channel)
     req = GetReleaseStatusRequest(name=name)
     release_status = stub.GetReleaseStatus(req,
                                            self.timeout,
                                            metadata=self.metadata)
     return release_status
Beispiel #2
0
 def get_release_status(self, release, version=None):
     """
     Gets a release's status
     """
     stub = ReleaseServiceStub(self._channel)
     status_request = GetReleaseStatusRequest(name=release, version=version)
     return stub.GetReleaseStatus(status_request,
                                  self._timeout,
                                  metadata=self.metadata)
Beispiel #3
0
    def get_release_status(self, name):
        """获得具体release的状态
        Args:
            name: release名称
        Returns:
            Release状态
        """

        stub = ReleaseServiceStub(self.channel)
        req = GetReleaseStatusRequest(name=name)
        release_status = stub.GetReleaseStatus(req,
                                               self.timeout,
                                               metadata=self.metadata)
        return release_status
Beispiel #4
0
    def get_release_status(self, release, version=0):
        '''
        :param release - name of release to test
        :param version - version of release status

        '''

        try:
            stub = ReleaseServiceStub(self.channel)
            status_request = GetReleaseStatusRequest(
                name=release, version=version)

            return stub.GetReleaseStatus(
                status_request, self.timeout, metadata=self.metadata)

        except Exception:
            raise ex.GetReleaseStatusException(release, version)
Beispiel #5
0
    def get_release_status(self, release, version=0):
        '''
        :param release: name of release to test
        :param version: version of release status
        '''

        LOG.debug('Helm getting release status for release=%s, version=%s',
                  release, version)
        try:
            stub = ReleaseServiceStub(self.channel)
            status_request = GetReleaseStatusRequest(name=release,
                                                     version=version)

            release_status = stub.GetReleaseStatus(status_request,
                                                   self.timeout,
                                                   metadata=self.metadata)
            LOG.debug('GetReleaseStatus= %s', release_status)
            return release_status

        except Exception:
            raise ex.GetReleaseStatusException(release, version)