Skip to content

Commit

Permalink
feat(bolt): Provision default cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelOnFira committed Apr 17, 2024
1 parent 38b7e5d commit 321ce8c
Show file tree
Hide file tree
Showing 54 changed files with 4,226 additions and 117 deletions.
9 changes: 9 additions & 0 deletions errors/api/admin/cluster/cluster-not-found.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name = "CLUSTER_NOT_FOUND"
description = "The requested cluster was not found."
http_status = 404
---

# API Not Found

The requested cluster was not found.
13 changes: 13 additions & 0 deletions fern/definition/admin/cluster/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ service:
cluster_id:
type: uuid
method: DELETE
get:
path: /{cluster_id}
path-parameters:
cluster_id:
type: uuid
method: GET
response: GetResponse

types:
GetServerIpsResponse:
Expand All @@ -40,3 +47,9 @@ types:
CreateResponse:
properties:
cluster_id: uuid
GetResponse:
properties:
cluster_id: uuid
name_id: string
create_ts: long
owner_team_id: optional<uuid>
25 changes: 24 additions & 1 deletion fern/definition/admin/cluster/datacenter/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,26 @@ service:
datacenter_name_id:
type: string
method: DELETE
update:
path: /{datacenter_id}
path-parameters:
datacenter_id:
type: uuid
method: PUT
request:
body: UpdateRequest
taint:
path: /{datacenter_name_id}/taint
path-parameters:
datacenter_name_id:
type: string
method: POST
response: TaintResponse
getDatacenters:
path: ""
method: GET
docs: List all datacenters that are part of the cluster.
response: ListResponse

types:
CreateRequest:
Expand All @@ -43,6 +56,16 @@ types:
datacenter_name_id: string
# TaintRequest:
# properties:
UpdateRequest:
properties:
pool_type: localCommons.PoolType
hardware: list<localCommons.Hardware>
desired_count: optional<integer>
max_count: optional<integer>
drain_timeout: optional<long>
TaintResponse:
properties:
datacenter_name_id: string
datacenter_name_id: string
ListResponse:
properties:
datacenters: list<localCommons.Datacenter>
9 changes: 9 additions & 0 deletions fern/definition/admin/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ types:
Hardware:
properties:
provider_hardware: string
Datacenter:
properties:
datacenter_id: uuid
display_name: string
provider: Provider
provider_datacenter_name: string
pools: list<Pool>
build_deliver_method: BuildDeliveryMethod
drain_timeout: long
Loading

0 comments on commit 321ce8c

Please sign in to comment.