Bläddra i källkod

Add min/max to node ports

Waqar Ahmed 4 år sedan
förälder
incheckning
5ec1dc3b6d
2 ändrade filer med 8 tillägg och 4 borttagningar
  1. 4 2
      charts/ix-chart/2012.0.0/questions.yaml
  2. 4 2
      test/ix-chart/2012.0.0/questions.yaml

+ 4 - 2
charts/ix-chart/2012.0.0/questions.yaml

@@ -342,13 +342,15 @@ questions:
               - variable: containerPort
                 label: "Container Port"
                 schema:
-                  type: string
+                  type: int
                   required: true
               - variable: nodePort
                 label: "Node Port"
                 schema:
-                  type: string
+                  type: int
                   required: true
+                  min: 9000
+                  max: 65535
               - variable: protocol
                 label: "Protocol"
                 schema:

+ 4 - 2
test/ix-chart/2012.0.0/questions.yaml

@@ -342,13 +342,15 @@ questions:
               - variable: containerPort
                 label: "Container Port"
                 schema:
-                  type: string
+                  type: int
                   required: true
               - variable: nodePort
                 label: "Node Port"
                 schema:
-                  type: string
+                  type: int
                   required: true
+                  min: 9000
+                  max: 65535
               - variable: protocol
                 label: "Protocol"
                 schema: