chore(questions); fix HPA and networkPolicies UI (#4018)

* chore(questions); fix HPA

* fix netPolicies

* make HPA a list

* make netPolicy a list

* make names required and bump an app to test scale catalog
This commit is contained in:
Stavros Kois
2022-10-07 19:46:09 +02:00
committed by GitHub
parent 9becaa3494
commit 2ec0b2eec8
+430 -406
View File
@@ -1,406 +1,430 @@
# - variable: autoscaling - variable: horizontalPodAutoscaler
# group: Advanced group: Advanced
# label: (Advanced) Horizontal Pod Autoscaler label: (Advanced) Horizontal Pod Autoscaler
# schema: schema:
# additional_attrs: true type: list
# type: dict default: []
# attrs: items:
# - variable: enabled - variable: hpaEntry
# label: Enabled label: HPA Entry
# schema: schema:
# type: boolean additional_attrs: true
# default: false type: dict
# show_subquestions_if: true attrs:
# subquestions: - variable: name
# - variable: target label: Name
# label: Target schema:
# description: Deployment name, Defaults to Main Deployment type: string
# schema: required: true
# type: string default: ""
# default: "" - variable: enabled
# - variable: minReplicas label: Enabled
# label: Minimum Replicas schema:
# schema: type: boolean
# type: int default: false
# default: 1 show_subquestions_if: true
# - variable: maxReplicas subquestions:
# label: Maximum Replicas - variable: target
# schema: label: Target
# type: int description: Deployment name, Defaults to Main Deployment
# default: 5 schema:
# - variable: targetCPUUtilizationPercentage type: string
# label: Target CPU Utilization Percentage default: ""
# schema: - variable: minReplicas
# type: int label: Minimum Replicas
# default: 80 schema:
# - variable: targetMemoryUtilizationPercentage type: int
# label: Target Memory Utilization Percentage default: 1
# schema: - variable: maxReplicas
# type: int label: Maximum Replicas
# default: 80 schema:
# - variable: networkPolicy type: int
# group: Advanced default: 5
# label: (Advanced) Network Policy - variable: targetCPUUtilizationPercentage
# schema: label: Target CPU Utilization Percentage
# additional_attrs: true schema:
# type: dict type: int
# attrs: default: 80
# - variable: enabled - variable: targetMemoryUtilizationPercentage
# label: Enabled label: Target Memory Utilization Percentage
# schema: schema:
# type: boolean type: int
# default: false default: 80
# show_subquestions_if: true - variable: networkPolicy
# subquestions: group: Advanced
# - variable: policyType label: (Advanced) Network Policy
# label: Policy Type schema:
# schema: type: list
# type: string default: []
# default: "" items:
# enum: - variable: netPolicyEntry
# - value: "" label: Network Policy Entry
# description: Default schema:
# - value: ingress additional_attrs: true
# description: Ingress type: dict
# - value: egress attrs:
# description: Egress - variable: name
# - value: ingress-egress label: Name
# description: Ingress and Egress schema:
# - variable: egress type: string
# label: Egress required: true
# schema: default: ""
# type: list - variable: enabled
# default: [] label: Enabled
# items: schema:
# - variable: egressEntry type: boolean
# label: "" default: false
# schema: show_subquestions_if: true
# additional_attrs: true subquestions:
# type: dict - variable: policyType
# attrs: label: Policy Type
# - variable: to schema:
# label: To type: string
# schema: default: ""
# type: list enum:
# default: [] - value: ""
# items: description: Default
# - variable: toEntry - value: ingress
# label: "" description: Ingress
# schema: - value: egress
# additional_attrs: true description: Egress
# type: dict - value: ingress-egress
# attrs: description: Ingress and Egress
# - variable: ipBlock - variable: egress
# label: IP Block label: Egress
# schema: schema:
# additional_attrs: true type: list
# type: dict default: []
# attrs: items:
# - variable: cidr - variable: egressEntry
# label: CIDR label: ""
# schema: schema:
# type: string additional_attrs: true
# default: "" type: dict
# - variable: except attrs:
# label: Except - variable: to
# schema: label: To
# type: list schema:
# default: [] type: list
# items: default: []
# - variable: exceptint items:
# label: "" - variable: toEntry
# schema: label: ""
# type: string schema:
# - variable: namespaceSelector additional_attrs: true
# label: Namespace Selector type: dict
# schema: attrs:
# additional_attrs: true - variable: ipBlock
# type: dict label: IP Block
# attrs: schema:
# - variable: matchExpressions additional_attrs: true
# label: Match Expressions type: dict
# schema: attrs:
# type: list - variable: cidr
# default: [] label: CIDR
# items: schema:
# - variable: expressionEntry type: string
# label: "" default: ""
# schema: - variable: except
# additional_attrs: true label: Except
# type: dict schema:
# attrs: type: list
# - variable: key default: []
# label: Key items:
# schema: - variable: exceptint
# type: string label: ""
# - variable: operator schema:
# label: Operator type: string
# schema: - variable: namespaceSelector
# type: string label: Namespace Selector
# default: TCP schema:
# enum: additional_attrs: true
# - value: In type: dict
# description: In attrs:
# - value: NotIn - variable: matchExpressions
# description: NotIn label: Match Expressions
# - value: Exists schema:
# description: Exists type: list
# - value: DoesNotExist default: []
# description: DoesNotExist items:
# - variable: values - variable: expressionEntry
# label: Values label: ""
# schema schema:
# type: list additional_attrs: true
# default: [] type: dict
# items: attrs:
# - variable: value - variable: key
# label: "" label: Key
# schema: schema:
# type: string type: string
# - variable: podSelector - variable: operator
# label: "" label: Operator
# schema: schema:
# additional_attrs: true type: string
# type: dict default: TCP
# attrs: enum:
# - variable: matchExpressions - value: In
# label: Match Expressions description: In
# schema: - value: NotIn
# type: list description: NotIn
# default: [] - value: Exists
# items: description: Exists
# - variable: expressionEntry - value: DoesNotExist
# label: "" description: DoesNotExist
# schema: - variable: values
# additional_attrs: true label: Values
# type: dict schema:
# attrs: type: list
# - variable: key default: []
# label: Key items:
# schema: - variable: value
# type: string label: ""
# - variable: operator schema:
# label: Operator type: string
# schema: - variable: podSelector
# type: string label: ""
# default: TCP schema:
# enum: additional_attrs: true
# - value: In type: dict
# description: In attrs:
# - value: NotIn - variable: matchExpressions
# description: NotIn label: Match Expressions
# - value: Exists schema:
# description: Exists type: list
# - value: DoesNotExist default: []
# description: DoesNotExist items:
# - variable: values - variable: expressionEntry
# label: Values label: ""
# schema: schema:
# type: list additional_attrs: true
# default: [] type: dict
# items: attrs:
# - variable: value - variable: key
# label: "" label: Key
# schema: schema:
# type: string type: string
# - variable: ports - variable: operator
# label: Ports label: Operator
# schema: schema:
# type: list type: string
# default: [] default: TCP
# items: enum:
# - variable: portsEntry - value: In
# label: "" description: In
# schema: - value: NotIn
# additional_attrs: true description: NotIn
# type: dict - value: Exists
# attrs: description: Exists
# - variable: port - value: DoesNotExist
# label: Port description: DoesNotExist
# schema: - variable: values
# type: int label: Values
# - variable: endPort schema:
# label: End Port type: list
# schema: default: []
# type: int items:
# - variable: protocol - variable: value
# label: Protocol label: ""
# schema: schema:
# type: string type: string
# default: TCP - variable: ports
# enum: label: Ports
# - value: TCP schema:
# description: TCP type: list
# - value: UDP default: []
# description: UDP items:
# - value: SCTP - variable: portsEntry
# description: SCTP label: ""
# - variable: ingress schema:
# label: Ingress additional_attrs: true
# schema: type: dict
# type: list attrs:
# default: [] - variable: port
# items: label: Port
# - variable: ingressEntry schema:
# label: "" type: int
# schema: - variable: endPort
# additional_attrs: true label: End Port
# type: dict schema:
# attrs: type: int
# - variable: from - variable: protocol
# label: From label: Protocol
# schema: schema:
# type: list type: string
# default: [] default: TCP
# items: enum:
# - variable: fromEntry - value: TCP
# label: "" description: TCP
# schema: - value: UDP
# additional_attrs: true description: UDP
# type: dict - value: SCTP
# attrs: description: SCTP
# - variable: ipBlock - variable: ingress
# label: IP Block label: Ingress
# schema: schema:
# additional_attrs: true type: list
# type: dict default: []
# attrs: items:
# - variable: cidr - variable: ingressEntry
# label: CIDR label: ""
# schema: schema:
# type: string additional_attrs: true
# default: "" type: dict
# - variable: except attrs:
# label: Except - variable: from
# schema: label: From
# type: list schema:
# default: [] type: list
# items: default: []
# - variable: exceptint items:
# label: "" - variable: fromEntry
# schema: label: ""
# type: string schema:
# - variable: namespaceSelector additional_attrs: true
# label: Namespace Selector type: dict
# schema: attrs:
# additional_attrs: true - variable: ipBlock
# type: dict label: IP Block
# attrs: schema:
# - variable: matchExpressions additional_attrs: true
# label: Match Expressions type: dict
# schema: attrs:
# type: list - variable: cidr
# default: [] label: CIDR
# items: schema:
# - variable: expressionEntry type: string
# label: "" default: ""
# schema: - variable: except
# additional_attrs: true label: Except
# type: dict schema:
# attrs: type: list
# - variable: key default: []
# label: Key items:
# schema: - variable: exceptint
# type: string label: ""
# - variable: operator schema:
# label: Operator type: string
# schema: - variable: namespaceSelector
# type: string label: Namespace Selector
# default: TCP schema:
# enum: additional_attrs: true
# - value: In type: dict
# description: In attrs:
# - value: NotIn - variable: matchExpressions
# description: NotIn label: Match Expressions
# - value: Exists schema:
# description: Exists type: list
# - value: DoesNotExist default: []
# description: DoesNotExist items:
# - variable: values - variable: expressionEntry
# label: Values label: ""
# schema: schema:
# type: list additional_attrs: true
# default: [] type: dict
# items: attrs:
# - variable: value - variable: key
# label: "" label: Key
# schema: schema:
# type: string type: string
# - variable: podSelector - variable: operator
# label: "" label: Operator
# schema: schema:
# additional_attrs: true type: string
# type: dict default: TCP
# attrs: enum:
# - variable: matchExpressions - value: In
# label: Match Expressions description: In
# schema: - value: NotIn
# type: list description: NotIn
# default: [] - value: Exists
# items: description: Exists
# - variable: expressionEntry - value: DoesNotExist
# label: "" description: DoesNotExist
# schema: - variable: values
# additional_attrs: true label: Values
# type: dict schema:
# attrs: type: list
# - variable: key default: []
# label: Key items:
# schema: - variable: value
# type: string label: ""
# - variable: operator schema:
# label: Operator type: string
# schema: - variable: podSelector
# type: string label: ""
# default: TCP schema:
# enum: additional_attrs: true
# - value: In type: dict
# description: In attrs:
# - value: NotIn - variable: matchExpressions
# description: NotIn label: Match Expressions
# - value: Exists schema:
# description: Exists type: list
# - value: DoesNotExist default: []
# description: DoesNotExist items:
# - variable: values - variable: expressionEntry
# label: Values label: ""
# schema: schema:
# type: list additional_attrs: true
# default: [] type: dict
# items: attrs:
# - variable: value - variable: key
# label: "" label: Key
# schema: schema:
# type: string type: string
# - variable: ports - variable: operator
# label: Ports label: Operator
# schema: schema:
# type: list type: string
# default: [] default: TCP
# items: enum:
# - variable: portsEntry - value: In
# label: "" description: In
# schema: - value: NotIn
# additional_attrs: true description: NotIn
# type: dict - value: Exists
# attrs: description: Exists
# - variable: port - value: DoesNotExist
# label: Port description: DoesNotExist
# schema: - variable: values
# type: int label: Values
# - variable: endPort schema:
# label: End Port type: list
# schema: default: []
# type: int items:
# - variable: protocol - variable: value
# label: Protocol label: ""
# schema: schema:
# type: string type: string
# default: TCP - variable: ports
# enum: label: Ports
# - value: TCP schema:
# description: TCP type: list
# - value: UDP default: []
# description: UDP items:
# - value: SCTP - variable: portsEntry
# description: SCTP label: ""
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: Port
schema:
type: int
- variable: endPort
label: End Port
schema:
type: int
- variable: protocol
label: Protocol
schema:
type: string
default: TCP
enum:
- value: TCP
description: TCP
- value: UDP
description: UDP
- value: SCTP
description: SCTP