Skip to content

Console yaml#98

Merged
GatewayJ merged 2 commits intorustfs:console-yamlfrom
GatewayJ:console-yaml
Mar 18, 2026
Merged

Console yaml#98
GatewayJ merged 2 commits intorustfs:console-yamlfrom
GatewayJ:console-yaml

Conversation

@GatewayJ
Copy link
Member

No description provided.

- Add GET/PUT encryption and security-context handlers and routes
- Require kmsSecret for Vault backend in reconcile and API validation
- Validate vault.endpoint and kmsSecretName in update_encryption (400 on invalid)
- Apply rustfmt and Prettier formatting

Made-with: Cursor
- Relax Node requirement from >=22 to >=20 for pre-commit in CI/dev
- Add .nvmrc (22) for nvm use
- Apply Prettier to page.tsx, tenants pages, globals.css, topology mock
- Fix useEffect deps: add initialYamlEditable in tenant-detail-client

Made-with: Cursor
@GatewayJ GatewayJ merged commit a5ae69b into rustfs:console-yaml Mar 18, 2026
GatewayJ added a commit that referenced this pull request Mar 20, 2026
)

* feat(console): add GET/PUT tenant YAML API endpoint

Add /api/v1/namespaces/{namespace}/tenants/{name}/yaml for reading and
editing the full Tenant CR as YAML (similar to MinIO operator).

GET: returns the complete Tenant CR serialized as YAML (managedFields
stripped for readability).

PUT: accepts edited YAML, validates name/namespace match, pool
uniqueness, and safely updates only spec/labels/annotations/finalizers
while preserving resourceVersion and immutable metadata.

Also applies Prettier formatting to existing console-web files.

Made-with: Cursor

* fix(console-web): add .dockerignore to fix Docker build (#97)

* feat(console): add GET/PUT tenant YAML API endpoint and PR template

Add /api/v1/namespaces/{namespace}/tenants/{name}/yaml for reading and
editing the full Tenant CR as YAML (similar to MinIO operator).

GET: returns the complete Tenant CR serialized as YAML (managedFields
stripped for readability).

PUT: accepts edited YAML, validates name/namespace match, pool
uniqueness, and safely updates only spec/labels/annotations/finalizers
while preserving resourceVersion and immutable metadata.

Also adds AGENTS.md (global + .github), PR template, and applies
Prettier formatting to existing console-web files.

Made-with: Cursor

* fix(console-web): add .dockerignore to fix Docker build (node_modules copy conflict)

Made-with: Cursor

* feat : Tenant yaml  edit

* feat: add status ,Namespace ,searchbox

* feat: Modify tenant action

* feat: yaml copy  and edit

* fix:  handleUnauthorized logout

* feat(console): add tenant state counts API and state filtering

* feat:Tenant state number

* feat: total card

* feat: remove cluster router

* feat: UI Box

* feat: number count

* feat: topology/overview api

* fix: parseSizeToBytes

* Console yaml (#98)

* feat(console): encryption and security-context APIs with validation

- Add GET/PUT encryption and security-context handlers and routes
- Require kmsSecret for Vault backend in reconcile and API validation
- Validate vault.endpoint and kmsSecretName in update_encryption (400 on invalid)
- Apply rustfmt and Prettier formatting

Made-with: Cursor

* chore(console-web): Node >=20, .nvmrc, Prettier and ESLint fixes

- Relax Node requirement from >=22 to >=20 for pre-commit in CI/dev
- Add .nvmrc (22) for nvm use
- Apply Prettier to page.tsx, tenants pages, globals.css, topology mock
- Fix useEffect deps: add initialYamlEditable in tenant-detail-client

Made-with: Cursor

---------

Co-authored-by: 马登山 <cxymds@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant