Skip to content

Commit

Permalink
Fixed CRD issues and added update strategy (#183)
Browse files Browse the repository at this point in the history
Signed-off-by: Arjun Naik <[email protected]>
  • Loading branch information
arjunrn authored Dec 20, 2019
1 parent b046043 commit 6c3c120
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 113 deletions.
108 changes: 52 additions & 56 deletions docs/stack_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ spec:
properties:
spec:
properties:
version:
type: string
replicas:
type: integer
format: int32
Expand Down Expand Up @@ -90,8 +88,6 @@ spec:
properties:
key:
type: string
x-kubernetes-patch-merge-key: key
x-kubernetes-patch-strategy: merge
operator:
type: string
values:
Expand All @@ -105,12 +101,12 @@ spec:
type: object
targetAverageValue:
# quantity type is string or int
oneOf:
anyOf:
- type: string
- type: integer
targetValue:
# quantity type is string or int
oneOf:
anyOf:
- type: string
- type: integer
object:
Expand All @@ -127,7 +123,7 @@ spec:
type: string
targetValue:
# quantity type is string or int
oneOf:
anyOf:
- type: string
- type: integer
pods:
Expand All @@ -136,7 +132,7 @@ spec:
type: string
targetAverageValue:
# quantity type is string or int
oneOf:
anyOf:
- type: string
- type: integer
resource:
Expand All @@ -148,7 +144,7 @@ spec:
type: integer
targetAverageValue:
# quantity type is string or int
oneOf:
anyOf:
- type: string
- type: integer
type:
Expand All @@ -163,8 +159,10 @@ spec:
properties:
minReplicas:
type: integer
format: int32
maxReplicas:
type: integer
format: int32
metrics:
type: array
items:
Expand All @@ -175,18 +173,22 @@ spec:
type: string
endpoint:
properties:
name:
type: string
port:
type: integer
format: int32
path:
type: string
key:
type: string
required:
- name
- port
- path
- key
average:
oneOf:
anyOf:
- type: integer
- type: string
queue:
Expand All @@ -200,23 +202,7 @@ spec:
- region
averageUtilization:
type: integer
check:
properties:
id:
type: integer
key:
type: string
entities:
properties:
application:
type: string
type:
type: string
required:
- id
- key
- entities

format: int32
service:
properties:
metadata:
Expand Down Expand Up @@ -245,9 +231,27 @@ spec:
type: string
targetPort:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
strategy:
properties:
rollingUpdate:
properties:
maxSurge:
anyOf:
- type: integer
- type: string
x-kubernetes-int-or-string: true
maxUnavailable:
anyOf:
- type: integer
- type: string
x-kubernetes-int-or-string: true
type: object
type:
type: string
type: object
podTemplate:
properties:
metadata:
Expand Down Expand Up @@ -346,8 +350,6 @@ spec:
properties:
key:
type: string
x-kubernetes-patch-merge-key: key
x-kubernetes-patch-strategy: merge
operator:
type: string
values:
Expand Down Expand Up @@ -379,8 +381,6 @@ spec:
properties:
key:
type: string
x-kubernetes-patch-merge-key: key
x-kubernetes-patch-strategy: merge
operator:
type: string
values:
Expand Down Expand Up @@ -413,8 +413,6 @@ spec:
properties:
key:
type: string
x-kubernetes-patch-merge-key: key
x-kubernetes-patch-strategy: merge
operator:
type: string
values:
Expand Down Expand Up @@ -446,8 +444,6 @@ spec:
properties:
key:
type: string
x-kubernetes-patch-merge-key: key
x-kubernetes-patch-strategy: merge
operator:
type: string
values:
Expand Down Expand Up @@ -567,7 +563,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
scheme:
Expand All @@ -578,7 +574,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
preStop:
Expand All @@ -605,7 +601,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
scheme:
Expand All @@ -616,7 +612,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
livenessProbe:
Expand Down Expand Up @@ -646,7 +642,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
scheme:
Expand All @@ -666,7 +662,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
timeoutSeconds:
Expand Down Expand Up @@ -717,7 +713,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
scheme:
Expand All @@ -737,7 +733,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
timeoutSeconds:
Expand All @@ -748,14 +744,14 @@ spec:
limits:
additionalProperties:
# quantity type is string or int
oneOf:
anyOf:
- type: string
- type: integer
type: object
requests:
additionalProperties:
# quantity type is string or int
oneOf:
anyOf:
- type: string
- type: integer
type: object
Expand Down Expand Up @@ -973,7 +969,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
scheme:
Expand All @@ -984,7 +980,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
preStop:
Expand All @@ -1011,7 +1007,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
scheme:
Expand All @@ -1022,7 +1018,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
livenessProbe:
Expand Down Expand Up @@ -1052,7 +1048,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
scheme:
Expand All @@ -1072,7 +1068,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
timeoutSeconds:
Expand Down Expand Up @@ -1123,7 +1119,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
scheme:
Expand All @@ -1143,7 +1139,7 @@ spec:
type: string
port:
# TODO: int-or-string
oneOf:
anyOf:
- type: string
- type: integer
timeoutSeconds:
Expand All @@ -1154,14 +1150,14 @@ spec:
limits:
additionalProperties:
# quantity type is string or int
oneOf:
anyOf:
- type: string
- type: integer
type: object
requests:
additionalProperties:
# quantity type is string or int
oneOf:
anyOf:
- type: string
- type: integer
type: object
Expand Down
Loading

0 comments on commit 6c3c120

Please sign in to comment.