Skip to content

Commit

Permalink
Add changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 15, 2024
1 parent 1f801f6 commit 2d125a1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pnap_rancher_solution_api/docs/ClustersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ with pnap_rancher_solution_api.ApiClient(configuration) as api_client:
location="PHX",
node_pools=[
NodePool(
name="Rancher Server node pool.",
name="rancher-server-node-pool",
node_count=1,
server_type="s0.d1.small",
ssh_config=NodePoolSshConfig(None),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ class NodePool(ModelNormal):
}

validations = {
('name',): {
'max_length': 100,
'min_length': 1,
'regex': {
'pattern': r'^(?=.*[a-zA-Z])([a-zA-Z0-9().-])+$', # noqa: E501
},
},
}

@cached_property
Expand Down
11 changes: 7 additions & 4 deletions specs/pnap_rancher_solution_api.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ paths:
username: admin
password: 1234567890abcd!
nodePools:
- name: Rancher Server Node Pool
- name: rancher-server-node-pool
nodeCount: 1
serverType: s0.d1.small
nodes:
Expand Down Expand Up @@ -153,7 +153,7 @@ paths:
location: PHX
initialClusterVersion: v2.5.9
nodePools:
- name: Rancher Server Node Pool
- name: rancher-server-node-pool
nodeCount: 1
serverType: s0.d1.small
nodes:
Expand All @@ -164,7 +164,7 @@ paths:
location: ASH
initialClusterVersion: v2.5.9
nodePools:
- name: Rancher Server Node Pool
- name: rancher-server-node-pool
nodeCount: 1
serverType: s0.d1.small
nodes:
Expand Down Expand Up @@ -298,7 +298,10 @@ components:
name:
description: The name of the node pool.
type: string
example: Rancher Server node pool.
example: rancher-server-node-pool
minLength: 1
maxLength: 100
pattern: ^(?=.*[a-zA-Z])([a-zA-Z0-9().-])+$
nodeCount:
description: Number of configured nodes, currently only node counts of 1 and 3 are possible.
type: integer
Expand Down

0 comments on commit 2d125a1

Please sign in to comment.