Open Peefy opened 1 week ago
schema Deployment: name: str volumes?: [Volume] image: str replica: int = 1 command: [str] labels?: {str:str} schema Volume: name: str mountPath: str hostPath: str nginx = Deployment { name = "my-nginx" image = "nginx:1.14.2" volumes = [Volume { name = "mydir" mountPath = "/test-pd" hostPath = "/data" # enter newline here. }] command = ["nginx"] labels.run = "my-nginx" labels.env = "pre-prod" }
import k8s.api.apps.v1 as appsv1 import k8s.api.core.v1 as corev1 statefulSet = appsv1.StatefulSet { spec: appsv1.StatefulSetSpec{ serviceName: "foo" template: corev1.PodTemplateSpec{} selector: {# Enter newline here} } }
Expected items are ["matchExpressions", "matchLabels"]
["matchExpressions", "matchLabels"]
import k8s.api.apps.v1 as appsv1 import k8s.api.core.v1 as corev1 statefulSet = appsv1.StatefulSet { spec: appsv1.StatefulSetSpec{ serviceName: "foo" template: corev1.PodTemplateSpec{} selector: { # Enter newline here } } }
Enhancement
Case 1
Case 2
Expected items are
["matchExpressions", "matchLabels"]
Case 3
Expected items are
["matchExpressions", "matchLabels"]