3c3371f270
This patch adds actions to KubernetesPod class which allow to recreate a pod (delete it and create new one) and to restart docker containers on minion nodes. Change-Id: Ia03b27d72662700fb302960adba9dae20203b597 Closes-bug: #1466359
31 lines
873 B
Plaintext
31 lines
873 B
Plaintext
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
FormatVersion: 2.0.0
|
|
Version: 1.0.0
|
|
Name: Restart Docker Containers
|
|
|
|
Parameters:
|
|
podName: $podName
|
|
|
|
Body: |
|
|
restartContainers(args.podName)
|
|
|
|
Scripts:
|
|
restartContainers:
|
|
Type: Application
|
|
Version: 1.0.0
|
|
EntryPoint: restartContainers.sh
|
|
Options:
|
|
captureStdout: true
|
|
captureStderr: true
|