syntax = "proto3"; package hapi.services.tiller; import "hapi/chart/chart.proto"; import "hapi/chart/config.proto"; import "hapi/release/release.proto"; import "hapi/release/info.proto"; option go_package = "services"; // ReleaseService is the service that a helm application uses to mutate, // query, and manage releases. // // Release: A named installation composed of a chart and // config. At any given time a release has one // chart and one config. // // Config: A config is a TOML file that supplies values // to the parametrizable templates of a chart. // // Chart: A chart is a helm package that contains // metadata, a default config, zero or more // optionally parameterizable templates, and // zero or more charts (dependencies). service ReleaseService { // ListReleases retrieves release history. // TODO: Allow filtering the set of releases by // release status. By default, ListAllReleases returns the releases who // current status is "Active". rpc ListReleases(ListReleasesRequest) returns (stream ListReleasesResponse) { } // GetReleasesStatus retrieves status information for the specified release. rpc GetReleaseStatus(GetReleaseStatusRequest) returns (GetReleaseStatusResponse) { } // GetReleaseContent retrieves the release content (chart + value) for the specifed release. rpc GetReleaseContent(GetReleaseContentRequest) returns (GetReleaseContentResponse) { } // UpdateRelease updates release content. rpc UpdateRelease(UpdateReleaseRequest) returns (UpdateReleaseResponse) { } // InstallRelease requests installation of a chart as a new release. rpc InstallRelease(InstallReleaseRequest) returns (InstallReleaseResponse) { } // UninstallRelease requests deletion of a named release. rpc UninstallRelease(UninstallReleaseRequest) returns (UninstallReleaseResponse) { } } // ListReleasesRequest requests a list of releases. // // Releases can be retrieved in chunks by setting limit and offset. // // Releases can be sorted according to a few pre-determined sort stategies. message ListReleasesRequest { // Limit is the maximum number of releases to be returned. int64 limit = 1; // Offset is the last release name that was seen. The next listing // operation will start with the name after this one. // Example: If list one returns albert, bernie, carl, and sets 'next: dennis'. // dennis is the offset. Supplying 'dennis' for the next request should // cause the next batch to return a set of results starting with 'dennis'. string offset = 2; // SortBy is the sort field that the ListReleases server should sort data before returning. ListSort.SortBy sort_by = 3; // Filter is a regular expression used to filter which releases should be listed. // // Anything that matches the regexp will be included in the results. string filter = 4; ListSort.SortOrder sort_order = 5; } // ListSort defines sorting fields on a release list. message ListSort{ // SortBy defines sort operations. enum SortBy { UNKNOWN = 0; NAME = 1; LAST_RELEASED = 2; } // SortOrder defines sort orders to augment sorting operations. enum SortOrder { ASC = 0; DESC = 1; } } // ListReleasesResponse is a list of releases. message ListReleasesResponse { // Count is the expected total number of releases to be returned. int64 count = 1; // Next is the name of the next release. If this is other than an empty // string, it means there are more results. string next = 2; // Total is the total number of queryable releases. int64 total = 3; // Releases is the list of found release objects. repeated hapi.release.Release releases = 4; } // GetReleaseStatusRequest is a request to get the status of a release. message GetReleaseStatusRequest { // Name is the name of the release string name = 1; } // GetReleaseStatusResponse is the response indicating the status of the named release. message GetReleaseStatusResponse { // Name is the name of the release. string name = 1; // Info contains information about the release. hapi.release.Info info = 2; } // GetReleaseContentRequest is a request to get the contents of a release. message GetReleaseContentRequest { // The name of the release string name = 1; } // GetReleaseContentResponse is a response containing the contents of a release. message GetReleaseContentResponse { // The release content hapi.release.Release release = 1; } // UpdateReleaseRequest updates a release. message UpdateReleaseRequest { } // UpdateReleaseResponse is the response to an update request. message UpdateReleaseResponse { } // InstallReleaseRequest is the request for an installation of a chart. message InstallReleaseRequest { // Chart is the protobuf representation of a chart. hapi.chart.Chart chart = 1; // Values is a string containing (unparsed) TOML values. hapi.chart.Config values = 2; // DryRun, if true, will run through the release logic, but neither create // a release object nor deploy to Kubernetes. The release object returned // in the response will be fake. bool dry_run = 3; // Name is the candidate release name. This must be unique to the // namespace, otherwise the server will return an error. If it is not // supplied, the server will autogenerate one. string name = 4; } // InstallReleaseResponse is the response from a release installation. message InstallReleaseResponse { hapi.release.Release release = 1; } // UninstallReleaseRequest represents a request to uninstall a named release. message UninstallReleaseRequest { // Name is the name of the release to delete. string name = 1; } // UninstallReleaseResponse represents a successful response to an uninstall request. message UninstallReleaseResponse { // Release is the release that was marked deleted. hapi.release.Release release = 1; }