Skip to content

Commit

Permalink
Merge pull request #1451 from weaveworks/jp-v2-releases-page
Browse files Browse the repository at this point in the history
Add releases and flux runtime pages
  • Loading branch information
jpellizzari committed Feb 17, 2022
2 parents a9f6dda + 41b6d51 commit c8c743f
Show file tree
Hide file tree
Showing 29 changed files with 1,401 additions and 1,407 deletions.
33 changes: 27 additions & 6 deletions api/app/apps.proto
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,21 @@ message RemoveAppResponse {
bool success = 1;
}

message Deployment {
string name = 1;
string namespace = 2;
repeated Condition conditions = 3;
repeated string images = 4;
}

message ListFluxRuntimeObjectsReq {
string namespace = 1;
}

message ListFluxRuntimeObjectsRes {
repeated Deployment deployments = 1;
}

service Apps {
/*
* AddApplication adds an Application to a cluster via GitOps.
Expand Down Expand Up @@ -119,7 +134,7 @@ service Apps {
*/
rpc ListKustomizations(ListKustomizationsReq) returns (ListKustomizationsRes) {
option (google.api.http) = {
get : "/v1/namespace/{namespace}/app/{app_name}/kustomization"
get : "/v1/kustomizations"
};
}

Expand Down Expand Up @@ -147,7 +162,7 @@ service Apps {
*/
rpc ListGitRepositories(ListGitRepositoryReq) returns (ListGitRepositoryRes) {
option (google.api.http) = {
get : "/v1/namespace/{namespace}/app/{app_name}/gitrepository"
get : "/v1/gitrepository"
};
}

Expand All @@ -166,7 +181,7 @@ service Apps {
*/
rpc ListHelmRepositories(ListHelmRepositoryReq) returns (ListHelmRepositoryRes) {
option (google.api.http) = {
get : "/v1/namespace/{namespace}/app/{app_name}/helmrepository"
get : "/v1/helmrepository"
};
}

Expand All @@ -185,7 +200,7 @@ service Apps {
*/
rpc ListHelmCharts(ListHelmChartReq) returns (ListHelmChartRes) {
option (google.api.http) = {
get : "/v1/namespace/{namespace}/app/{app_name}/helmchart"
get : "/v1/helmchart"
};
}

Expand All @@ -204,7 +219,7 @@ service Apps {
*/
rpc ListBuckets(ListBucketReq) returns (ListBucketRes) {
option (google.api.http) = {
get : "/v1/namespace/{namespace}/app/{app_name}/bucket"
get : "/v1/bucket"
};
}

Expand All @@ -223,7 +238,13 @@ service Apps {
*/
rpc ListHelmReleases(ListHelmReleaseReq) returns (ListHelmReleaseRes) {
option (google.api.http) = {
get : "/v1/namespace/{namespace}/app/{app_name}/helmrelease"
get : "/v1/helmrelease"
};
}

rpc ListFluxRuntimeObjects(ListFluxRuntimeObjectsReq) returns (ListFluxRuntimeObjectsRes) {
option (google.api.http) = {
get : "/v1/flux_runtime"
};
}
}

0 comments on commit c8c743f

Please sign in to comment.