Skip to content

Commit

Permalink
Add FluxRuntime handler and UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jpellizzari committed Feb 16, 2022
1 parent 3f83763 commit 65799bf
Show file tree
Hide file tree
Showing 22 changed files with 1,182 additions and 713 deletions.
31 changes: 26 additions & 5 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 @@ -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 65799bf

Please sign in to comment.