Browse code

extended: move deployment fixtures in separate directory

Michail Kargakis authored on 2016/10/05 02:14:03
Showing 27 changed files
... ...
@@ -27,19 +27,19 @@ var _ = g.Describe("deploymentconfigs", func() {
27 27
 	defer g.GinkgoRecover()
28 28
 	var (
29 29
 		oc                              = exutil.NewCLI("cli-deployment", exutil.KubeConfigPath())
30
-		deploymentFixture               = exutil.FixturePath("testdata", "test-deployment-test.yaml")
31
-		simpleDeploymentFixture         = exutil.FixturePath("testdata", "deployment-simple.yaml")
32
-		customDeploymentFixture         = exutil.FixturePath("testdata", "custom-deployment.yaml")
33
-		generationFixture               = exutil.FixturePath("testdata", "generation-test.yaml")
34
-		pausedDeploymentFixture         = exutil.FixturePath("testdata", "paused-deployment.yaml")
35
-		failedHookFixture               = exutil.FixturePath("testdata", "failing-pre-hook.yaml")
36
-		brokenDeploymentFixture         = exutil.FixturePath("testdata", "test-deployment-broken.yaml")
37
-		historyLimitedDeploymentFixture = exutil.FixturePath("testdata", "deployment-history-limit.yaml")
38
-		minReadySecondsFixture          = exutil.FixturePath("testdata", "deployment-min-ready-seconds.yaml")
39
-		multipleICTFixture              = exutil.FixturePath("testdata", "deployment-example.yaml")
40
-		tagImagesFixture                = exutil.FixturePath("testdata", "tag-images-deployment.yaml")
41
-		readinessFixture                = exutil.FixturePath("testdata", "readiness-test.yaml")
42
-		envRefDeploymentFixture         = exutil.FixturePath("testdata", "deployment-with-ref-env.yaml")
30
+		deploymentFixture               = exutil.FixturePath("testdata", "deployments", "test-deployment-test.yaml")
31
+		simpleDeploymentFixture         = exutil.FixturePath("testdata", "deployments", "deployment-simple.yaml")
32
+		customDeploymentFixture         = exutil.FixturePath("testdata", "deployments", "custom-deployment.yaml")
33
+		generationFixture               = exutil.FixturePath("testdata", "deployments", "generation-test.yaml")
34
+		pausedDeploymentFixture         = exutil.FixturePath("testdata", "deployments", "paused-deployment.yaml")
35
+		failedHookFixture               = exutil.FixturePath("testdata", "deployments", "failing-pre-hook.yaml")
36
+		brokenDeploymentFixture         = exutil.FixturePath("testdata", "deployments", "test-deployment-broken.yaml")
37
+		historyLimitedDeploymentFixture = exutil.FixturePath("testdata", "deployments", "deployment-history-limit.yaml")
38
+		minReadySecondsFixture          = exutil.FixturePath("testdata", "deployments", "deployment-min-ready-seconds.yaml")
39
+		multipleICTFixture              = exutil.FixturePath("testdata", "deployments", "deployment-example.yaml")
40
+		tagImagesFixture                = exutil.FixturePath("testdata", "deployments", "tag-images-deployment.yaml")
41
+		readinessFixture                = exutil.FixturePath("testdata", "deployments", "readiness-test.yaml")
42
+		envRefDeploymentFixture         = exutil.FixturePath("testdata", "deployments", "deployment-with-ref-env.yaml")
43 43
 	)
44 44
 
45 45
 	g.Describe("when run iteratively", func() {
46 46
deleted file mode 100644
... ...
@@ -1,43 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: custom-deployment
5
-spec:
6
-  replicas: 2
7
-  selector:
8
-    name: custom-deployment
9
-  strategy:
10
-    type: Rolling
11
-    rollingParams:
12
-      pre:
13
-        failurePolicy: Abort
14
-        execNewPod:
15
-          containerName: myapp
16
-          command:
17
-          - /bin/echo
18
-          - test pre hook executed
19
-    customParams:
20
-      command:
21
-      - /bin/sh
22
-      - -c
23
-      - |
24
-        set -e
25
-        openshift-deploy --until=50%
26
-        echo Halfway
27
-        openshift-deploy
28
-        echo Finished
29
-  template:
30
-    metadata:
31
-      labels:
32
-        name: custom-deployment
33
-    spec:
34
-      terminationGracePeriodSeconds: 0
35
-      containers:
36
-      - image: "docker.io/centos:centos7"
37
-        imagePullPolicy: IfNotPresent
38
-        name: myapp
39
-        command:
40
-        - /bin/sleep
41
-        - "100"
42
-  triggers:
43
-  - type: ConfigChange
44 1
deleted file mode 100644
... ...
@@ -1,65 +0,0 @@
1
-apiVersion: v1
2
-items:
3
-- apiVersion: v1
4
-  kind: DeploymentConfig
5
-  metadata:
6
-    labels:
7
-      app: example
8
-    name: example
9
-  spec:
10
-    replicas: 1
11
-    template:
12
-      metadata:
13
-        labels:
14
-          app: example
15
-      spec:
16
-        containers:
17
-        - imagePullPolicy: Always
18
-          name: ruby
19
-          command:
20
-          - /bin/sleep
21
-          - "100"
22
-          ports:
23
-          - containerPort: 8080
24
-            protocol: TCP
25
-          resources: {}
26
-          terminationMessagePath: /dev/termination-log
27
-        - imagePullPolicy: Always
28
-          name: mongodb
29
-          command:
30
-          - /bin/sleep
31
-          - "100"
32
-          ports:
33
-          - containerPort: 5000
34
-            protocol: TCP
35
-          resources: {}
36
-          terminationMessagePath: /dev/termination-log
37
-        dnsPolicy: ClusterFirst
38
-        restartPolicy: Always
39
-        securityContext: {}
40
-        terminationGracePeriodSeconds: 30
41
-    test: false
42
-    triggers:
43
-    - type: ConfigChange
44
-    - imageChangeParams:
45
-        automatic: true
46
-        containerNames:
47
-        - ruby
48
-        from:
49
-          kind: ImageStreamTag
50
-          name: ruby:latest
51
-          namespace: openshift
52
-      type: ImageChange
53
-    - imageChangeParams:
54
-        automatic: true
55
-        containerNames:
56
-        - mongodb
57
-        from:
58
-          kind: ImageStreamTag
59
-          name: mongodb:latest
60
-          namespace: openshift
61
-      type: ImageChange
62
-  status:
63
-    observedGeneration: 1
64
-kind: List
65
-metadata: {}
66 1
deleted file mode 100644
... ...
@@ -1,33 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: history-limit
5
-spec:
6
-  replicas: 1
7
-  selector:
8
-    name: history-limit
9
-  strategy:
10
-    type: Rolling
11
-    rollingParams:
12
-      pre:
13
-        failurePolicy: Abort
14
-        execNewPod:
15
-          containerName: myapp
16
-          command:
17
-          - /bin/echo
18
-          - test pre hook executed
19
-  template:
20
-    metadata:
21
-      labels:
22
-        name: history-limit
23
-    spec:
24
-      containers:
25
-      - image: "docker.io/centos:centos7"
26
-        imagePullPolicy: IfNotPresent
27
-        name: myapp
28
-        command:
29
-        - /bin/sleep
30
-        - "100"
31
-  triggers:
32
-  - type: ConfigChange
33
-  revisionHistoryLimit: 3
34 1
deleted file mode 100644
... ...
@@ -1,22 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: minreadytest
5
-spec:
6
-  replicas: 2
7
-  minReadySeconds: 500
8
-  selector:
9
-    name: minreadytest
10
-  template:
11
-    metadata:
12
-      labels:
13
-        name: minreadytest
14
-    spec:
15
-      terminationGracePeriodSeconds: 0
16
-      containers:
17
-      - image: "docker.io/centos:centos7"
18
-        imagePullPolicy: IfNotPresent
19
-        name: myapp
20
-        command:
21
-        - /bin/sleep
22
-        - "10000"
23 1
deleted file mode 100644
... ...
@@ -1,35 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: deployment-simple
5
-spec:
6
-  replicas: 2
7
-  selector:
8
-    name: deployment-simple
9
-  strategy:
10
-    type: Rolling
11
-    rollingParams:
12
-      #TODO: add a hook for testing
13
-      #pre:
14
-      #  failurePolicy: Abort
15
-      #  execNewPod:
16
-      #    containerName: myapp
17
-      #    command:
18
-      #    - /bin/echo
19
-      #    - test pre hook executed
20
-  template:
21
-    metadata:
22
-      labels:
23
-        name: deployment-simple
24
-    spec:
25
-      containers:
26
-      - image: "docker.io/openshift/deployment-example:v1"
27
-        imagePullPolicy: IfNotPresent
28
-        name: myapp
29
-        readinessProbe:
30
-          httpGet:
31
-            path: /
32
-            port: 8080
33
-            scheme: HTTP
34
-  triggers:
35
-  - type: ConfigChange
36 1
deleted file mode 100644
... ...
@@ -1,33 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: deployment-simple
5
-spec:
6
-  triggers: []
7
-  replicas: 1
8
-  selector:
9
-    name: deployment-simple
10
-  strategy:
11
-    type: Rolling
12
-    rollingParams:
13
-      pre:
14
-        failurePolicy: Abort
15
-        execNewPod:
16
-          containerName: myapp
17
-          env:
18
-            - name: HELLO
19
-              valueFrom:
20
-                configMapKeyRef:
21
-                  name: test
22
-                  key: foo
23
-          command: ["/bin/bash", "-c", "echo hello ${HELLO}"]
24
-  template:
25
-    metadata:
26
-      labels:
27
-        name: deployment-simple
28
-    spec:
29
-      containers:
30
-      - image: "openshift/origin-base:latest"
31
-        args: [ "sleep 120" ]
32
-        imagePullPolicy: IfNotPresent
33
-        name: myapp
34 1
new file mode 100644
... ...
@@ -0,0 +1,43 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: custom-deployment
4
+spec:
5
+  replicas: 2
6
+  selector:
7
+    name: custom-deployment
8
+  strategy:
9
+    type: Rolling
10
+    rollingParams:
11
+      pre:
12
+        failurePolicy: Abort
13
+        execNewPod:
14
+          containerName: myapp
15
+          command:
16
+          - /bin/echo
17
+          - test pre hook executed
18
+    customParams:
19
+      command:
20
+      - /bin/sh
21
+      - -c
22
+      - |
23
+        set -e
24
+        openshift-deploy --until=50%
25
+        echo Halfway
26
+        openshift-deploy
27
+        echo Finished
28
+  template:
29
+    metadata:
30
+      labels:
31
+        name: custom-deployment
32
+    spec:
33
+      terminationGracePeriodSeconds: 0
34
+      containers:
35
+      - image: "docker.io/centos:centos7"
36
+        imagePullPolicy: IfNotPresent
37
+        name: myapp
38
+        command:
39
+        - /bin/sleep
40
+        - "100"
41
+  triggers:
42
+  - type: ConfigChange
0 43
new file mode 100644
... ...
@@ -0,0 +1,65 @@
0
+apiVersion: v1
1
+items:
2
+- apiVersion: v1
3
+  kind: DeploymentConfig
4
+  metadata:
5
+    labels:
6
+      app: example
7
+    name: example
8
+  spec:
9
+    replicas: 1
10
+    template:
11
+      metadata:
12
+        labels:
13
+          app: example
14
+      spec:
15
+        containers:
16
+        - imagePullPolicy: Always
17
+          name: ruby
18
+          command:
19
+          - /bin/sleep
20
+          - "100"
21
+          ports:
22
+          - containerPort: 8080
23
+            protocol: TCP
24
+          resources: {}
25
+          terminationMessagePath: /dev/termination-log
26
+        - imagePullPolicy: Always
27
+          name: mongodb
28
+          command:
29
+          - /bin/sleep
30
+          - "100"
31
+          ports:
32
+          - containerPort: 5000
33
+            protocol: TCP
34
+          resources: {}
35
+          terminationMessagePath: /dev/termination-log
36
+        dnsPolicy: ClusterFirst
37
+        restartPolicy: Always
38
+        securityContext: {}
39
+        terminationGracePeriodSeconds: 30
40
+    test: false
41
+    triggers:
42
+    - type: ConfigChange
43
+    - imageChangeParams:
44
+        automatic: true
45
+        containerNames:
46
+        - ruby
47
+        from:
48
+          kind: ImageStreamTag
49
+          name: ruby:latest
50
+          namespace: openshift
51
+      type: ImageChange
52
+    - imageChangeParams:
53
+        automatic: true
54
+        containerNames:
55
+        - mongodb
56
+        from:
57
+          kind: ImageStreamTag
58
+          name: mongodb:latest
59
+          namespace: openshift
60
+      type: ImageChange
61
+  status:
62
+    observedGeneration: 1
63
+kind: List
64
+metadata: {}
0 65
new file mode 100644
... ...
@@ -0,0 +1,33 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: history-limit
4
+spec:
5
+  replicas: 1
6
+  selector:
7
+    name: history-limit
8
+  strategy:
9
+    type: Rolling
10
+    rollingParams:
11
+      pre:
12
+        failurePolicy: Abort
13
+        execNewPod:
14
+          containerName: myapp
15
+          command:
16
+          - /bin/echo
17
+          - test pre hook executed
18
+  template:
19
+    metadata:
20
+      labels:
21
+        name: history-limit
22
+    spec:
23
+      containers:
24
+      - image: "docker.io/centos:centos7"
25
+        imagePullPolicy: IfNotPresent
26
+        name: myapp
27
+        command:
28
+        - /bin/sleep
29
+        - "100"
30
+  triggers:
31
+  - type: ConfigChange
32
+  revisionHistoryLimit: 3
0 33
new file mode 100644
... ...
@@ -0,0 +1,22 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: minreadytest
4
+spec:
5
+  replicas: 2
6
+  minReadySeconds: 500
7
+  selector:
8
+    name: minreadytest
9
+  template:
10
+    metadata:
11
+      labels:
12
+        name: minreadytest
13
+    spec:
14
+      terminationGracePeriodSeconds: 0
15
+      containers:
16
+      - image: "docker.io/centos:centos7"
17
+        imagePullPolicy: IfNotPresent
18
+        name: myapp
19
+        command:
20
+        - /bin/sleep
21
+        - "10000"
0 22
new file mode 100644
... ...
@@ -0,0 +1,35 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: deployment-simple
4
+spec:
5
+  replicas: 2
6
+  selector:
7
+    name: deployment-simple
8
+  strategy:
9
+    type: Rolling
10
+    rollingParams:
11
+      #TODO: add a hook for testing
12
+      #pre:
13
+      #  failurePolicy: Abort
14
+      #  execNewPod:
15
+      #    containerName: myapp
16
+      #    command:
17
+      #    - /bin/echo
18
+      #    - test pre hook executed
19
+  template:
20
+    metadata:
21
+      labels:
22
+        name: deployment-simple
23
+    spec:
24
+      containers:
25
+      - image: "docker.io/openshift/deployment-example:v1"
26
+        imagePullPolicy: IfNotPresent
27
+        name: myapp
28
+        readinessProbe:
29
+          httpGet:
30
+            path: /
31
+            port: 8080
32
+            scheme: HTTP
33
+  triggers:
34
+  - type: ConfigChange
0 35
new file mode 100644
... ...
@@ -0,0 +1,33 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: deployment-simple
4
+spec:
5
+  triggers: []
6
+  replicas: 1
7
+  selector:
8
+    name: deployment-simple
9
+  strategy:
10
+    type: Rolling
11
+    rollingParams:
12
+      pre:
13
+        failurePolicy: Abort
14
+        execNewPod:
15
+          containerName: myapp
16
+          env:
17
+            - name: HELLO
18
+              valueFrom:
19
+                configMapKeyRef:
20
+                  name: test
21
+                  key: foo
22
+          command: ["/bin/bash", "-c", "echo hello ${HELLO}"]
23
+  template:
24
+    metadata:
25
+      labels:
26
+        name: deployment-simple
27
+    spec:
28
+      containers:
29
+      - image: "openshift/origin-base:latest"
30
+        args: [ "sleep 120" ]
31
+        imagePullPolicy: IfNotPresent
32
+        name: myapp
0 33
new file mode 100644
... ...
@@ -0,0 +1,27 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: hook
4
+spec:
5
+  replicas: 1
6
+  selector:
7
+    name: hook
8
+  strategy:
9
+    type: Rolling
10
+    rollingParams:
11
+      pre:
12
+        failurePolicy: Retry
13
+        execNewPod:
14
+          containerName: myapp
15
+          command:
16
+          - /bin/echo `date`; /bin/true
17
+  template:
18
+    metadata:
19
+      labels:
20
+        name: hook
21
+    spec:
22
+      containers:
23
+      - image: "docker.io/openshift/deployment-example:v1"
24
+        name: myapp
25
+  triggers:
26
+  - type: ConfigChange
0 27
new file mode 100644
... ...
@@ -0,0 +1,32 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: generation-test
4
+spec:
5
+  replicas: 1
6
+  selector:
7
+    name: generation-test
8
+  strategy:
9
+    type: Rolling
10
+    rollingParams:
11
+      pre:
12
+        failurePolicy: Abort
13
+        execNewPod:
14
+          containerName: myapp
15
+          command:
16
+          - /bin/echo
17
+          - test pre hook executed
18
+  template:
19
+    metadata:
20
+      labels:
21
+        name: generation-test
22
+    spec:
23
+      containers:
24
+      - image: "docker.io/centos:centos7"
25
+        imagePullPolicy: IfNotPresent
26
+        name: myapp
27
+        command:
28
+        - /bin/sleep
29
+        - "100"
30
+  triggers:
31
+  - type: ConfigChange
0 32
new file mode 100644
... ...
@@ -0,0 +1,19 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: paused
4
+spec:
5
+  paused: true
6
+  replicas: 1
7
+  template:
8
+    metadata:
9
+      labels:
10
+        name: paused
11
+    spec:
12
+      containers:
13
+      - image: "docker.io/centos:centos7"
14
+        imagePullPolicy: IfNotPresent
15
+        name: myapp
16
+        command:
17
+        - /bin/sleep
18
+        - "100"
0 19
new file mode 100644
... ...
@@ -0,0 +1,27 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: readiness
4
+spec:
5
+  replicas: 1
6
+  strategy:
7
+    rollingParams:
8
+      timeoutSeconds: 30
9
+    type: Rolling
10
+  template:
11
+    metadata:
12
+      labels:
13
+        name: readiness-test
14
+    spec:
15
+      containers:
16
+      - command:
17
+        - /bin/sleep
18
+        - "10000"
19
+        image: docker.io/centos:centos7
20
+        imagePullPolicy: IfNotPresent
21
+        name: never-ready
22
+        readinessProbe:
23
+          exec:
24
+            command:
25
+            - /bin/false
26
+          failureThreshold: 1
0 27
new file mode 100644
... ...
@@ -0,0 +1,36 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: tag-images
4
+spec:
5
+  replicas: 1
6
+  test: true
7
+  selector:
8
+    name: tag-images
9
+  strategy:
10
+    type: Recreate
11
+    recreateParams:
12
+      timeoutSeconds: 600
13
+      post:
14
+        failurePolicy: Abort
15
+        tagImages:
16
+        - containerName: sample-name
17
+          to:
18
+            kind: ImageStreamTag
19
+            name: sample-stream:deployed
20
+  template:
21
+    metadata:
22
+      labels:
23
+        name: tag-images
24
+    spec:
25
+      containers:
26
+      - image: openshift/origin-pod
27
+        imagePullPolicy: IfNotPresent
28
+        name: sample-name
29
+        ports:
30
+        - containerPort: 8080
31
+          protocol: TCP
32
+        resources:
33
+          limits:
34
+            cpu: 100m
35
+            memory: 3Gi
0 36
new file mode 100644
... ...
@@ -0,0 +1,31 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: brokendeployment
4
+spec:
5
+  replicas: 1
6
+  selector:
7
+    name: brokendeployment
8
+  strategy:
9
+    type: Rolling
10
+    rollingParams:
11
+      pre:
12
+        failurePolicy: Abort
13
+        execNewPod:
14
+          containerName: myapp
15
+          command:
16
+          - /bin/false
17
+  template:
18
+    metadata:
19
+      labels:
20
+        name: brokendeployment
21
+    spec:
22
+      containers:
23
+      - image: "docker.io/centos:centos7"
24
+        imagePullPolicy: IfNotPresent
25
+        name: myapp
26
+        command:
27
+        - /bin/sleep
28
+        - "100"
29
+  triggers:
30
+  - type: ConfigChange
0 31
new file mode 100644
... ...
@@ -0,0 +1,34 @@
0
+apiVersion: v1
1
+kind: DeploymentConfig
2
+metadata:
3
+  name: deployment-test
4
+spec:
5
+  replicas: 2
6
+  selector:
7
+    name: deployment-test
8
+  strategy:
9
+    type: Rolling
10
+    rollingParams:
11
+      pre:
12
+        failurePolicy: Abort
13
+        execNewPod:
14
+          containerName: myapp
15
+          command:
16
+          - /bin/echo
17
+          - test pre hook executed
18
+  template:
19
+    metadata:
20
+      labels:
21
+        name: deployment-test
22
+    spec:
23
+      terminationGracePeriodSeconds: 0
24
+      containers:
25
+      - image: "docker.io/centos:centos7"
26
+        imagePullPolicy: IfNotPresent
27
+        name: myapp
28
+        command:
29
+        - /bin/sleep
30
+        - "100"
31
+  test: true
32
+  triggers:
33
+  - type: ConfigChange
0 34
deleted file mode 100644
... ...
@@ -1,27 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: hook
5
-spec:
6
-  replicas: 1
7
-  selector:
8
-    name: hook
9
-  strategy:
10
-    type: Rolling
11
-    rollingParams:
12
-      pre:
13
-        failurePolicy: Retry
14
-        execNewPod:
15
-          containerName: myapp
16
-          command:
17
-          - /bin/echo `date`; /bin/true
18
-  template:
19
-    metadata:
20
-      labels:
21
-        name: hook
22
-    spec:
23
-      containers:
24
-      - image: "docker.io/openshift/deployment-example:v1"
25
-        name: myapp
26
-  triggers:
27
-  - type: ConfigChange
28 1
deleted file mode 100644
... ...
@@ -1,32 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: generation-test
5
-spec:
6
-  replicas: 1
7
-  selector:
8
-    name: generation-test
9
-  strategy:
10
-    type: Rolling
11
-    rollingParams:
12
-      pre:
13
-        failurePolicy: Abort
14
-        execNewPod:
15
-          containerName: myapp
16
-          command:
17
-          - /bin/echo
18
-          - test pre hook executed
19
-  template:
20
-    metadata:
21
-      labels:
22
-        name: generation-test
23
-    spec:
24
-      containers:
25
-      - image: "docker.io/centos:centos7"
26
-        imagePullPolicy: IfNotPresent
27
-        name: myapp
28
-        command:
29
-        - /bin/sleep
30
-        - "100"
31
-  triggers:
32
-  - type: ConfigChange
33 1
deleted file mode 100644
... ...
@@ -1,19 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: paused
5
-spec:
6
-  paused: true
7
-  replicas: 1
8
-  template:
9
-    metadata:
10
-      labels:
11
-        name: paused
12
-    spec:
13
-      containers:
14
-      - image: "docker.io/centos:centos7"
15
-        imagePullPolicy: IfNotPresent
16
-        name: myapp
17
-        command:
18
-        - /bin/sleep
19
-        - "100"
20 1
deleted file mode 100644
... ...
@@ -1,27 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: readiness
5
-spec:
6
-  replicas: 1
7
-  strategy:
8
-    rollingParams:
9
-      timeoutSeconds: 30
10
-    type: Rolling
11
-  template:
12
-    metadata:
13
-      labels:
14
-        name: readiness-test
15
-    spec:
16
-      containers:
17
-      - command:
18
-        - /bin/sleep
19
-        - "10000"
20
-        image: docker.io/centos:centos7
21
-        imagePullPolicy: IfNotPresent
22
-        name: never-ready
23
-        readinessProbe:
24
-          exec:
25
-            command:
26
-            - /bin/false
27
-          failureThreshold: 1
28 1
deleted file mode 100644
... ...
@@ -1,36 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: tag-images
5
-spec:
6
-  replicas: 1
7
-  test: true
8
-  selector:
9
-    name: tag-images
10
-  strategy:
11
-    type: Recreate
12
-    recreateParams:
13
-      timeoutSeconds: 600
14
-      post:
15
-        failurePolicy: Abort
16
-        tagImages:
17
-        - containerName: sample-name
18
-          to:
19
-            kind: ImageStreamTag
20
-            name: sample-stream:deployed
21
-  template:
22
-    metadata:
23
-      labels:
24
-        name: tag-images
25
-    spec:
26
-      containers:
27
-      - image: openshift/origin-pod
28
-        imagePullPolicy: IfNotPresent
29
-        name: sample-name
30
-        ports:
31
-        - containerPort: 8080
32
-          protocol: TCP
33
-        resources:
34
-          limits:
35
-            cpu: 100m
36
-            memory: 3Gi
37 1
deleted file mode 100644
... ...
@@ -1,31 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: brokendeployment
5
-spec:
6
-  replicas: 1
7
-  selector:
8
-    name: brokendeployment
9
-  strategy:
10
-    type: Rolling
11
-    rollingParams:
12
-      pre:
13
-        failurePolicy: Abort
14
-        execNewPod:
15
-          containerName: myapp
16
-          command:
17
-          - /bin/false
18
-  template:
19
-    metadata:
20
-      labels:
21
-        name: brokendeployment
22
-    spec:
23
-      containers:
24
-      - image: "docker.io/centos:centos7"
25
-        imagePullPolicy: IfNotPresent
26
-        name: myapp
27
-        command:
28
-        - /bin/sleep
29
-        - "100"
30
-  triggers:
31
-  - type: ConfigChange
32 1
deleted file mode 100644
... ...
@@ -1,34 +0,0 @@
1
-apiVersion: v1
2
-kind: DeploymentConfig
3
-metadata:
4
-  name: deployment-test
5
-spec:
6
-  replicas: 2
7
-  selector:
8
-    name: deployment-test
9
-  strategy:
10
-    type: Rolling
11
-    rollingParams:
12
-      pre:
13
-        failurePolicy: Abort
14
-        execNewPod:
15
-          containerName: myapp
16
-          command:
17
-          - /bin/echo
18
-          - test pre hook executed
19
-  template:
20
-    metadata:
21
-      labels:
22
-        name: deployment-test
23
-    spec:
24
-      terminationGracePeriodSeconds: 0
25
-      containers:
26
-      - image: "docker.io/centos:centos7"
27
-        imagePullPolicy: IfNotPresent
28
-        name: myapp
29
-        command:
30
-        - /bin/sleep
31
-        - "100"
32
-  test: true
33
-  triggers:
34
-  - type: ConfigChange