Skip to content

Commit 2da7a49

Browse files
committed
feat: Work on docs and disable ban ts comment in case of generated lib
1 parent 5a2473f commit 2da7a49

9 files changed

Lines changed: 38 additions & 31 deletions

File tree

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,6 @@
101101
"[helm]": {
102102
"editor.tabSize": 2,
103103
"editor.defaultFormatter": "tim-koehler.helm-intellisense"
104-
}
104+
},
105+
"sarif-viewer.connectToGithubCodeScanning": "on"
105106
}

eslint.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,10 @@ export default [
3939
// Override or add rules here
4040
rules: {},
4141
},
42+
{
43+
files: ['libs/front/front-api/**/*.ts'],
44+
rules: {
45+
'@typescript-eslint/ban-ts-comment': 0,
46+
},
47+
},
4248
];

libs/cli/client_api/docs/ProxyClustersApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Name | Type | Description | Required | Notes
2626
------------- | ------------- | ------------- | ------------- | -------------
2727
**ns** | **String** | Namespace | [required] |
2828
**cluster** | **String** | Cluster name | [required] |
29-
**path** | **String** | Path to resource | [required] |
29+
**path** | **String** | Corresponding path to resource given to the kube api server | [required] |
3030

3131
### Return type
3232

@@ -58,7 +58,7 @@ Name | Type | Description | Required | Notes
5858
------------- | ------------- | ------------- | ------------- | -------------
5959
**ns** | **String** | Namespace | [required] |
6060
**cluster** | **String** | Cluster name | [required] |
61-
**path** | **String** | Path to resource | [required] |
61+
**path** | **String** | Corresponding path to resource given to the kube api server | [required] |
6262

6363
### Return type
6464

@@ -90,7 +90,7 @@ Name | Type | Description | Required | Notes
9090
------------- | ------------- | ------------- | ------------- | -------------
9191
**ns** | **String** | Namespace | [required] |
9292
**cluster** | **String** | Cluster name | [required] |
93-
**path** | **String** | Path to resource | [required] |
93+
**path** | **String** | Corresponding path to resource given to the kube api server | [required] |
9494

9595
### Return type
9696

@@ -122,7 +122,7 @@ Name | Type | Description | Required | Notes
122122
------------- | ------------- | ------------- | ------------- | -------------
123123
**ns** | **String** | Namespace | [required] |
124124
**cluster** | **String** | Cluster name | [required] |
125-
**path** | **String** | Path to resource | [required] |
125+
**path** | **String** | Corresponding path to resource given to the kube api server | [required] |
126126

127127
### Return type
128128

@@ -154,7 +154,7 @@ Name | Type | Description | Required | Notes
154154
------------- | ------------- | ------------- | ------------- | -------------
155155
**ns** | **String** | Namespace | [required] |
156156
**cluster** | **String** | Cluster name | [required] |
157-
**path** | **String** | Path to resource | [required] |
157+
**path** | **String** | Corresponding path to resource given to the kube api server | [required] |
158158

159159
### Return type
160160

libs/cli/client_api/src/models/visible_cluster.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use crate::models;
1212
use serde::{Deserialize, Serialize};
1313

14-
/// VisibleCluster : Model representing a cluster visible to the user
14+
/// VisibleCluster : Model representing a cluster visible to the user.
1515
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
1616
pub struct VisibleCluster {
1717
#[serde(rename = "enabled")]
@@ -32,7 +32,7 @@ pub struct VisibleCluster {
3232
}
3333

3434
impl VisibleCluster {
35-
/// Model representing a cluster visible to the user
35+
/// Model representing a cluster visible to the user.
3636
pub fn new(
3737
enabled: bool,
3838
name: String,

libs/front/front-api/src/lib/types.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export type ClientOptions = {
55
};
66

77
/**
8-
* Model representing a cluster visible to the user
8+
* Model representing a cluster visible to the user.
99
*/
1010
export type VisibleCluster = {
1111
enabled: boolean;

libs/server/api/src/api/get_all_visible_cluster_model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crd::ProxyKubeApi;
22
use serde::{Deserialize, Serialize};
33
use utoipa::ToSchema;
44

5-
/// Model representing a cluster visible to the user
5+
/// Model representing a cluster visible to the user.
66
#[derive(Serialize, Deserialize, Debug, Clone, ToSchema)]
77
pub struct VisibleCluster {
88
pub enabled: bool,

libs/server/api/src/api_doc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ impl Modify for SecurityAddons {
3636
),
3737
),
3838
tags(
39-
(name = "health", description = "Health check endpoints."),
4039
(name = "api_clusters", description = "API endpoints used by the front."),
41-
(name = "proxy_clusters", description = "Proxy cluster endpoints."),
4240
(name = "auth_clusters", description = "Authentication endpoints for clusters."),
41+
(name = "health", description = "Health check endpoints."),
42+
(name = "proxy_clusters", description = "Proxy cluster endpoints."),
4343
),
4444
modifiers(&SecurityAddons)
4545
)]

libs/server/api/src/cluster/redirect/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub mod kube_redirect;
2020
params(
2121
("ns" = String, description = "Namespace"),
2222
("cluster" = String, description = "Cluster name"),
23-
("path" = String, description = "Path to resource")
23+
("path" = String, description = "Corresponding path to resource given to the kube api server")
2424
)
2525
)]
2626
#[get("/{ns}/{cluster}/{path:.*}")]
@@ -48,7 +48,7 @@ pub async fn get_redirect(
4848
params(
4949
("ns" = String, description = "Namespace"),
5050
("cluster" = String, description = "Cluster name"),
51-
("path" = String, description = "Path to resource")
51+
("path" = String, description = "Corresponding path to resource given to the kube api server")
5252
)
5353
)]
5454
#[post("/{ns}/{cluster}/{path:.*}")]
@@ -76,7 +76,7 @@ pub async fn post_redirect(
7676
params(
7777
("ns" = String, description = "Namespace"),
7878
("cluster" = String, description = "Cluster name"),
79-
("path" = String, description = "Path to resource")
79+
("path" = String, description = "Corresponding path to resource given to the kube api server")
8080
)
8181
)]
8282
#[put("/{ns}/{cluster}/{path:.*}")]
@@ -104,7 +104,7 @@ pub async fn put_redirect(
104104
params(
105105
("ns" = String, description = "Namespace"),
106106
("cluster" = String, description = "Cluster name"),
107-
("path" = String, description = "Path to resource")
107+
("path" = String, description = "Corresponding path to resource given to the kube api server")
108108
)
109109
)]
110110
#[patch("/{ns}/{cluster}/{path:.*}")]
@@ -132,7 +132,7 @@ pub async fn patch_redirect(
132132
params(
133133
("ns" = String, description = "Namespace"),
134134
("cluster" = String, description = "Cluster name"),
135-
("path" = String, description = "Path to resource")
135+
("path" = String, description = "Corresponding path to resource given to the kube api server")
136136
)
137137
)]
138138
#[delete("/{ns}/{cluster}/{path:.*}")]

swagger.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
{
246246
"name": "path",
247247
"in": "path",
248-
"description": "Path to resource",
248+
"description": "Corresponding path to resource given to the kube api server",
249249
"required": true,
250250
"schema": {
251251
"type": "string"
@@ -293,7 +293,7 @@
293293
{
294294
"name": "path",
295295
"in": "path",
296-
"description": "Path to resource",
296+
"description": "Corresponding path to resource given to the kube api server",
297297
"required": true,
298298
"schema": {
299299
"type": "string"
@@ -341,7 +341,7 @@
341341
{
342342
"name": "path",
343343
"in": "path",
344-
"description": "Path to resource",
344+
"description": "Corresponding path to resource given to the kube api server",
345345
"required": true,
346346
"schema": {
347347
"type": "string"
@@ -389,7 +389,7 @@
389389
{
390390
"name": "path",
391391
"in": "path",
392-
"description": "Path to resource",
392+
"description": "Corresponding path to resource given to the kube api server",
393393
"required": true,
394394
"schema": {
395395
"type": "string"
@@ -437,7 +437,7 @@
437437
{
438438
"name": "path",
439439
"in": "path",
440-
"description": "Path to resource",
440+
"description": "Corresponding path to resource given to the kube api server",
441441
"required": true,
442442
"schema": {
443443
"type": "string"
@@ -521,7 +521,7 @@
521521
},
522522
"VisibleCluster": {
523523
"type": "object",
524-
"description": "Model representing a cluster visible to the user",
524+
"description": "Model representing a cluster visible to the user.",
525525
"required": [
526526
"enabled",
527527
"namespace",
@@ -559,21 +559,21 @@
559559
}
560560
},
561561
"tags": [
562-
{
563-
"name": "health",
564-
"description": "Health check endpoints."
565-
},
566562
{
567563
"name": "api_clusters",
568564
"description": "API endpoints used by the front."
569565
},
570-
{
571-
"name": "proxy_clusters",
572-
"description": "Proxy cluster endpoints."
573-
},
574566
{
575567
"name": "auth_clusters",
576568
"description": "Authentication endpoints for clusters."
569+
},
570+
{
571+
"name": "health",
572+
"description": "Health check endpoints."
573+
},
574+
{
575+
"name": "proxy_clusters",
576+
"description": "Proxy cluster endpoints."
577577
}
578578
]
579579
}

0 commit comments

Comments
 (0)