Example #1
0
 def get_release_content(self, name):
     """
     Release content
     """
     stub = ReleaseServiceStub(self.channel)
     req = GetReleaseContentRequest(name=name)
     release_content = stub.GetReleaseContent(req,
                                              self.timeout,
                                              metadata=self.metadata)
     return release_content
Example #2
0
 def get_release_content(self, release_name, version):
     '''
     Get Helm Release content
     '''
     stub = ReleaseServiceStub(self.channel)
     req = GetReleaseContentRequest(name=release_name, version=version)
     release_content = stub.GetReleaseContent(req,
                                              self.timeout,
                                              metadata=self.metadata)
     return release_content
Example #3
0
 def get_release_content(self, release, version=None):
     """
     Gets a release's content
     """
     stub = ReleaseServiceStub(self._channel)
     status_request = GetReleaseContentRequest(name=release,
                                               version=version)
     return stub.GetReleaseContent(status_request,
                                   self._timeout,
                                   metadata=self.metadata)
Example #4
0
    def get_release_content(self, release, version=0):
        '''
        :param release - name of release to test
        :param version - version of release status

        '''

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

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

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

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

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

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