Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
feat: current state of ancientt integration
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Dec 1, 2023
1 parent eb37a6f commit e534dea
Show file tree
Hide file tree
Showing 18 changed files with 576 additions and 233 deletions.
6 changes: 2 additions & 4 deletions api/services/cluster/v1/cluster.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ message StartNetworkTestResponse {
bool already_running = 1;
}

message CancelNetworkTestRequest {
bool force = 1;
}
message CancelNetworkTestRequest {}

message CancelNetworkTestResponse {
bool none_running = 1;
bool not_running = 1;
}

message GetNetworkTestResultsRequest {}
Expand Down
2 changes: 1 addition & 1 deletion charts/data-control-center/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.7
version: 0.2.8

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
41 changes: 40 additions & 1 deletion charts/data-control-center/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ rules:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "data-control-center.serviceAccountName" . }}
name: {{ include "data-control-center.serviceAccountName" . }}-cluster
labels:
{{- include "data-control-center.labels" . | nindent 4 }}
{{- with .Values.rbac.annotations }}
Expand All @@ -116,4 +116,43 @@ roleRef:
kind: ClusterRole
name: {{ include "data-control-center.serviceAccountName" . }}-cluster
apiGroup: rbac.authorization.k8s.io
{{- if .Values.rbac.ancientt }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "data-control-center.serviceAccountName" . }}-ancientt
labels:
{{- include "data-control-center.labels" . | nindent 4 }}
{{- with .Values.rbac.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
# Get nodes for, e.g., status
- apiGroups: [""]
resources: ["nodes"]
verbs:
- get
- list
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "data-control-center.serviceAccountName" . }}-ancientt
labels:
{{- include "data-control-center.labels" . | nindent 4 }}
{{- with .Values.rbac.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
subjects:
- kind: ServiceAccount
name: {{ include "data-control-center.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: {{ include "data-control-center.serviceAccountName" . }}-ancientt
apiGroup: rbac.authorization.k8s.io
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/data-control-center/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ rbac:
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
# Enable ancientt RBAC
ancientt: true

podAnnotations: {}

Expand Down
7 changes: 1 addition & 6 deletions docs/grpc-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -975,11 +975,6 @@ https://golang.org/pkg/database/sql/driver/#Valuer



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| force | [bool](#bool) | | |





Expand All @@ -992,7 +987,7 @@ https://golang.org/pkg/database/sql/driver/#Valuer

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| none_running | [bool](#bool) | | |
| not_running | [bool](#bool) | | |



Expand Down
205 changes: 97 additions & 108 deletions gen/go/api/services/cluster/v1/cluster.pb.go

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions gen/go/api/services/cluster/v1/cluster.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions gen/ts/api/services/cluster/v1/cluster_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ export declare class StartNetworkTestResponse extends Message<StartNetworkTestRe
* @generated from message api.services.cluster.v1.CancelNetworkTestRequest
*/
export declare class CancelNetworkTestRequest extends Message<CancelNetworkTestRequest> {
/**
* @generated from field: bool force = 1;
*/
force: boolean;

constructor(data?: PartialMessage<CancelNetworkTestRequest>);

static readonly runtime: typeof proto3;
Expand All @@ -165,9 +160,9 @@ export declare class CancelNetworkTestRequest extends Message<CancelNetworkTestR
*/
export declare class CancelNetworkTestResponse extends Message<CancelNetworkTestResponse> {
/**
* @generated from field: bool none_running = 1;
* @generated from field: bool not_running = 1;
*/
noneRunning: boolean;
notRunning: boolean;

constructor(data?: PartialMessage<CancelNetworkTestResponse>);

Expand Down
6 changes: 2 additions & 4 deletions gen/ts/api/services/cluster/v1/cluster_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ export const StartNetworkTestResponse = proto3.makeMessageType(
*/
export const CancelNetworkTestRequest = proto3.makeMessageType(
"api.services.cluster.v1.CancelNetworkTestRequest",
() => [
{ no: 1, name: "force", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
],
[],
);

/**
Expand All @@ -76,7 +74,7 @@ export const CancelNetworkTestRequest = proto3.makeMessageType(
export const CancelNetworkTestResponse = proto3.makeMessageType(
"api.services.cluster.v1.CancelNetworkTestResponse",
() => [
{ no: 1, name: "none_running", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 1, name: "not_running", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
],
);

Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"cephapidummy": "npx ts-node-esm ./node/server.ts"
},
"dependencies": {
"@bufbuild/protobuf": "^1.4.2",
"@bufbuild/protoc-gen-es": "^1.4.2",
"@bufbuild/protobuf": "^1.5.0",
"@bufbuild/protoc-gen-es": "^1.5.0",
"@connectrpc/connect": "^1.1.3",
"@connectrpc/connect-node": "^1.1.3",
"@connectrpc/connect-web": "^1.1.3",
Expand All @@ -27,8 +27,8 @@
"@nuxtjs/robots": "^3.0.0",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@pinia/nuxt": "^0.5.1",
"@vee-validate/nuxt": "^4.12.1",
"@vee-validate/rules": "^4.12.1",
"@vee-validate/nuxt": "^4.12.2",
"@vee-validate/rules": "^4.12.2",
"@vueuse/core": "^10.6.1",
"apexcharts": "^3.44.0",
"d3": "^7.8.5",
Expand All @@ -40,7 +40,7 @@
"postcss-nesting": "^12.0.1",
"slugify": "^1.6.6",
"uuid": "^9.0.1",
"vee-validate": "^4.12.1",
"vee-validate": "^4.12.2",
"vue-template-compiler": "^2.7.15",
"vue3-apexcharts": "^1.4.4"
},
Expand All @@ -55,7 +55,7 @@
"@total-typescript/ts-reset": "^0.5.1",
"@types/d3": "^7.4.3",
"@types/google-protobuf": "^3.15.12",
"@types/node": "^20.10.0",
"@types/node": "^20.10.1",
"@types/uuid": "^9.0.7",
"@unhead/vue": "^1.8.8",
"@vitejs/plugin-vue": "^4.5.0",
Expand All @@ -65,7 +65,7 @@
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-vue": "^9.18.1",
"eslint-plugin-vue": "^9.19.2",
"nuxi": "^3.10.0",
"nuxt": "^3.8.2",
"nuxt-typed-router": "^3.4.0",
Expand All @@ -80,9 +80,9 @@
"tailwindcss": "^3.3.5",
"ts-node": "^10.9.1",
"typescript": "^5.3.2",
"vite": "^5.0.3",
"vite": "^5.0.4",
"vue": "^3.3.9",
"vue-router": "^4.2.5",
"vue-tsc": "^1.8.22"
"vue-tsc": "^1.8.24"
}
}
Loading

0 comments on commit e534dea

Please sign in to comment.