Skip to content

Commit

Permalink
Merge branch 'main' into add-new-flux-version
Browse files Browse the repository at this point in the history
  • Loading branch information
bigkevmcd authored Dec 30, 2023
2 parents 57cdc0a + a38fbec commit e0b62c7
Show file tree
Hide file tree
Showing 26 changed files with 1,739 additions and 568 deletions.
43 changes: 43 additions & 0 deletions api/core/core.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,30 @@ service Core {
};
}

/*
* ListRuntimeObjects lists Weave GitOps runtime components.
* Weave GitOps runtime is composed of Flux runtime but also other components
* in the ecosystem like TF-controller or Policy Agent.
*/
rpc ListRuntimeObjects(ListRuntimeObjectsRequest)
returns (ListRuntimeObjectsResponse) {
option (google.api.http) = {
get: "/v1/runtime_objects"
};
}

/*
* ListRuntimeCrds lists Weave GitOps runtime components CRDs.
* Weave GitOps runtime is composed of Flux runtime but also other components
* in the ecosystem like TF-controller or Policy Agent.
*/
rpc ListRuntimeCrds(ListRuntimeCrdsRequest)
returns (ListRuntimeCrdsResponse) {
option (google.api.http) = {
get: "/v1/runtime_crds"
};
}

/*
* GetReconciledObjects returns a list of objects that were created
* as a result of reconciling a Flux automation.
Expand Down Expand Up @@ -318,6 +342,16 @@ message ListFluxRuntimeObjectsResponse {
repeated ListError errors = 2;
}

message ListRuntimeObjectsRequest {
string namespace = 1;
string clusterName = 2;
}

message ListRuntimeObjectsResponse {
repeated Deployment deployments = 1;
repeated ListError errors = 2;
}

message ListFluxCrdsRequest {
string clusterName = 1;
}
Expand All @@ -327,6 +361,15 @@ message ListFluxCrdsResponse {
repeated ListError errors = 2;
}

message ListRuntimeCrdsRequest {
string clusterName = 1;
}

message ListRuntimeCrdsResponse {
repeated Crd crds = 1;
repeated ListError errors = 2;
}

message GetObjectRequest {
string name = 1;
string namespace = 2;
Expand Down
102 changes: 102 additions & 0 deletions api/core/core.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,74 @@
]
}
},
"/v1/runtime_crds": {
"get": {
"summary": "ListRuntimeCrds lists Weave GitOps runtime components CRDs.\nWeave GitOps runtime is composed of Flux runtime but also other components\nin the ecosystem like TF-controller or Policy Agent.",
"operationId": "Core_ListRuntimeCrds",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1ListRuntimeCrdsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "clusterName",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"Core"
]
}
},
"/v1/runtime_objects": {
"get": {
"summary": "ListRuntimeObjects lists Weave GitOps runtime components.\nWeave GitOps runtime is composed of Flux runtime but also other components\nin the ecosystem like TF-controller or Policy Agent.",
"operationId": "Core_ListRuntimeObjects",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1ListRuntimeObjectsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "namespace",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "clusterName",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"Core"
]
}
},
"/v1/session_logs": {
"post": {
"summary": "GetSessionLogs returns the logs for a given session",
Expand Down Expand Up @@ -1319,6 +1387,40 @@
}
}
},
"v1ListRuntimeCrdsResponse": {
"type": "object",
"properties": {
"crds": {
"type": "array",
"items": {
"$ref": "#/definitions/v1Crd"
}
},
"errors": {
"type": "array",
"items": {
"$ref": "#/definitions/v1ListError"
}
}
}
},
"v1ListRuntimeObjectsResponse": {
"type": "object",
"properties": {
"deployments": {
"type": "array",
"items": {
"$ref": "#/definitions/v1Deployment"
}
},
"errors": {
"type": "array",
"items": {
"$ref": "#/definitions/v1ListError"
}
}
}
},
"v1LogEntry": {
"type": "object",
"properties": {
Expand Down
5 changes: 5 additions & 0 deletions charts/gitops-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ envVars:
value: "true"
- name: WEAVE_GITOPS_FEATURE_CLUSTER
value: "false"
# -- Enable this feature flag if you want to expand Flux Runtime UI with other Weave GitOps components like Policy Agent or TF-Controller.
# Ensure that Weave GitOps Deployment and CRDs have the label 'app.kubernetes.io/part-of=weave-gitops'. See https://docs.gitops.weave.works/docs/open-source/getting-started/install-OSS for more info.
- name: WEAVE_GITOPS_FEATURE_GITOPS_RUNTIME
value: "false"

# -- Annotations to add to the deployment
annotations: {}
# Should the 'oidc-auth' secret be created. For a detailed
Expand Down
Loading

0 comments on commit e0b62c7

Please sign in to comment.