diff options
author | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2018-09-05 14:43:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-05 14:43:50 +0000 |
commit | e8f6594213e910d13d0321f71e35b820c694f4d4 (patch) | |
tree | db6762f01f2ac2d4437d0c7e2d9814874ddfffc2 /kubernetes/consul/resources/config/consul-agent-config/scripts/mr-kafka-health.sh | |
parent | 956424b3398fd8ff5125fe0461ab13506a3a0278 (diff) | |
parent | 2b4e753bccba3c5e686faaf2336c528a2c2fc79f (diff) |
Merge "Apache 2 license addition for consul,appc"
Diffstat (limited to 'kubernetes/consul/resources/config/consul-agent-config/scripts/mr-kafka-health.sh')
-rwxr-xr-x | kubernetes/consul/resources/config/consul-agent-config/scripts/mr-kafka-health.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kubernetes/consul/resources/config/consul-agent-config/scripts/mr-kafka-health.sh b/kubernetes/consul/resources/config/consul-agent-config/scripts/mr-kafka-health.sh index 4be0a24851..7cf52833b9 100755 --- a/kubernetes/consul/resources/config/consul-agent-config/scripts/mr-kafka-health.sh +++ b/kubernetes/consul/resources/config/consul-agent-config/scripts/mr-kafka-health.sh @@ -1,3 +1,17 @@ +# Copyright © 2018 AT&T, Amdocs, Bell Canada Intellectual Property. All rights reserved. +# +# 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. + kafkapod=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "[^[:space:]]*-message-router-kafka-[^[:space:]]*") if [ -n "$kafkapod" ]; then if /consul/bin/kubectl -n {{ include "common.namespace" . }} exec -it $kafkapod -- ps ef | grep -i kafka; then |