- loader.py: STANDS dict, get_services/get_ops_index per stand, POLYGON_STANDS env
- mock_state.py: get_state(stand_id) — ленивая инициализация
- app.py: StandMiddleware — перезапись PATH_INFO до Flask-роутинга
- Все роуты: LocalProxy(state), LocalProxy(SERVICES/OPS_INDEX) через g.stand_id
- openapi.py: _build_servers() — по одному серверу на стенд
- services/stand{1,2,3}/ — 37 YAML на стенд из STANDS/dev и STANDS/test
- tests/test_api.py: +4 multi-stand теста (изоляция, fail-next, OpenAPI servers)
- Обратная совместимость: /api/v1/svc/... → стенд по умолчанию
178 lines
3.8 KiB
YAML
178 lines
3.8 KiB
YAML
name: k8s_velero
|
|
service_id: 86
|
|
service_display_name: Velero
|
|
service_short_name: k8sVelero
|
|
lifecycle:
|
|
suspendOnDestroyDefault: true
|
|
adoptExistingOnCreateDefault: false
|
|
operations:
|
|
- svcOperationId: 332
|
|
operation: create
|
|
kind: instance
|
|
action: create
|
|
- svcOperationId: 331
|
|
operation: delete
|
|
kind: instance
|
|
action: delete
|
|
- svcOperationId: 334
|
|
operation: modify
|
|
kind: instance
|
|
action: modify
|
|
- svcOperationId: 336
|
|
operation: reconcile
|
|
kind: action
|
|
action: reconcile
|
|
- svcOperationId: 335
|
|
operation: resume
|
|
kind: instance
|
|
action: resume
|
|
- svcOperationId: 333
|
|
operation: suspend
|
|
kind: instance
|
|
action: suspend
|
|
stateOut: {}
|
|
cfsParams:
|
|
- svcOperationCfsParamId: 962
|
|
svcOperationCfsParam: clusterConfiguration
|
|
dataType: map-fixed
|
|
isRequired: true
|
|
defaultValue: ''
|
|
isModifiable: true
|
|
dataDescriptor:
|
|
cpu:
|
|
dataType: integer > 0
|
|
defaultValue: '1000'
|
|
isRequired: true
|
|
isModifiable: false
|
|
memory:
|
|
dataType: integer > 0
|
|
defaultValue: '2048'
|
|
isRequired: true
|
|
isModifiable: false
|
|
replicas:
|
|
dataType: integer > 0
|
|
defaultValue: '1'
|
|
isRequired: true
|
|
isModifiable: false
|
|
valueList:
|
|
- '1'
|
|
- '2'
|
|
- '3'
|
|
- svcOperationCfsParamId: 963
|
|
svcOperationCfsParam: startupConfiguration
|
|
dataType: map-fixed
|
|
isRequired: true
|
|
defaultValue: ''
|
|
isModifiable: false
|
|
dataDescriptor:
|
|
resourceRealm:
|
|
dataType: string
|
|
defaultValue: ''
|
|
isRequired: true
|
|
isModifiable: false
|
|
valueList:
|
|
- iot-naeel
|
|
- k8s-3-sandbox-nubes-ru
|
|
- k8s-4-sandbox-nubes-ru
|
|
- naeel-test-3
|
|
- svcOperationCfsParamId: 964
|
|
svcOperationCfsParam: nodeAgentConfiguration
|
|
dataType: map-fixed
|
|
isRequired: true
|
|
defaultValue: ''
|
|
isModifiable: true
|
|
dataDescriptor:
|
|
cpu:
|
|
dataType: integer > 0
|
|
defaultValue: '2000'
|
|
isRequired: true
|
|
isModifiable: false
|
|
memory:
|
|
dataType: integer > 0
|
|
defaultValue: '2048'
|
|
isRequired: true
|
|
isModifiable: false
|
|
- svcOperationCfsParamId: 1076
|
|
svcOperationCfsParam: backupConfiguration
|
|
dataType: map-fixed
|
|
isRequired: true
|
|
defaultValue: ''
|
|
isModifiable: false
|
|
dataDescriptor:
|
|
s3BucketUid:
|
|
dataType: uuid
|
|
defaultValue: ''
|
|
isRequired: true
|
|
isModifiable: false
|
|
- svcOperationCfsParamId: 1082
|
|
svcOperationCfsParam: deleteS3Bucket
|
|
dataType: boolean
|
|
isRequired: true
|
|
defaultValue: 'false'
|
|
isModifiable: true
|
|
valueList:
|
|
- 'false'
|
|
- 'true'
|
|
- svcOperationCfsParamId: 965
|
|
svcOperationCfsParam: clusterConfiguration
|
|
dataType: map-fixed
|
|
isRequired: true
|
|
defaultValue: ''
|
|
isModifiable: true
|
|
dataDescriptor:
|
|
cpu:
|
|
dataType: integer > 0
|
|
defaultValue: ''
|
|
isRequired: true
|
|
isModifiable: false
|
|
memory:
|
|
dataType: integer > 0
|
|
defaultValue: ''
|
|
isRequired: true
|
|
isModifiable: false
|
|
replicas:
|
|
dataType: integer > 0
|
|
defaultValue: ''
|
|
isRequired: true
|
|
isModifiable: false
|
|
valueList:
|
|
- '1'
|
|
- '2'
|
|
- '3'
|
|
- svcOperationCfsParamId: 966
|
|
svcOperationCfsParam: nodeAgentConfiguration
|
|
dataType: map-fixed
|
|
isRequired: true
|
|
defaultValue: ''
|
|
isModifiable: true
|
|
dataDescriptor:
|
|
cpu:
|
|
dataType: integer > 0
|
|
defaultValue: ''
|
|
isRequired: true
|
|
isModifiable: false
|
|
memory:
|
|
dataType: integer > 0
|
|
defaultValue: ''
|
|
isRequired: true
|
|
isModifiable: false
|
|
cfsParamsByOp:
|
|
332:
|
|
- 962
|
|
- 963
|
|
- 964
|
|
- 1076
|
|
331:
|
|
- 1082
|
|
334:
|
|
- 965
|
|
- 966
|
|
336: []
|
|
335: []
|
|
333: []
|
|
stateParams:
|
|
clusterConfiguration: '{"cpu": 1000, "memory": 2048, "replicas": 1}'
|
|
startupConfiguration: '{"resourceRealm": ""}'
|
|
nodeAgentConfiguration: '{"cpu": 2000, "memory": 2048}'
|
|
backupConfiguration: '{"s3BucketUid": ""}'
|