Remove shebang from scripts

Without this, heat container agents using  kubectl version
1.18.x (e.g. ussuri-dev) fail because they do not have the correct
KUBECONFIG in the environment.

Task: 39938
Story: 2007591

Change-Id: Ifc212478ae09c658adeb6ba4c8e8afc8943e3977
This commit is contained in:
Bharat Kunwar 2020-06-16 10:16:02 +00:00
parent caf6874944
commit 799563eb61
42 changed files with 27 additions and 73 deletions

View File

@ -1,5 +1,3 @@
#!/bin/sh
set +x
. /etc/sysconfig/heat-params
set -x

View File

@ -1,5 +1,3 @@
#!/bin/sh
step="calico-service-v3-3-x"
printf "Starting to run ${step}\n"

View File

@ -1,4 +1,3 @@
#!/bin/sh
step="calico-service"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,3 @@
#!/bin/sh
. /etc/sysconfig/heat-params
set -x

View File

@ -1,5 +1,3 @@
#!/bin/bash
set +x
. /etc/sysconfig/heat-params
set -x
@ -405,6 +403,7 @@ EOF
echo "export KUBECONFIG=${ADMIN_KUBECONFIG}" >> /etc/bashrc
chown root:root ${ADMIN_KUBECONFIG}
chmod 600 ${ADMIN_KUBECONFIG}
export KUBECONFIG=${ADMIN_KUBECONFIG}
# Add controller manager args
KUBE_CONTROLLER_MANAGER_ARGS="--leader-elect=true"

View File

@ -1,5 +1,3 @@
#!/bin/bash
set +x
. /etc/sysconfig/heat-params
set -x

View File

@ -1,5 +1,3 @@
#!/bin/sh
step="core-dns-service"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,4 @@
#cloud-boothook
#!/bin/sh
setenforce `[[ "$SELINUX_MODE" == "enforcing" ]] && echo 1 || echo 0`
sed -i '

View File

@ -1,5 +1,3 @@
#!/bin/sh
step="enable-node-problem-detector"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,3 @@
#!/bin/sh
step="enable-auto-scaling"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,3 @@
#!/bin/sh
step="enable-cert-api-manager"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,3 @@
#!/bin/sh
step="enable-cinder-csi"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,3 @@
#!/bin/bash
. /etc/sysconfig/heat-params
step="enable-helm-tiller"

View File

@ -1,5 +1,3 @@
#!/bin/sh
step="enable-ingress-controller"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,3 @@
#!/bin/sh
. /etc/sysconfig/heat-params
step="enable-keystone-auth"

View File

@ -1,5 +1,3 @@
#!/bin/sh
step="enable-prometheus-monitoring"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,3 @@
#!/bin/sh
. /etc/sysconfig/heat-params
ssh_cmd="ssh -F /srv/magnum/.ssh/config root@localhost"

View File

@ -1,5 +1,3 @@
#!/bin/sh
set -x
ssh_cmd="ssh -F /srv/magnum/.ssh/config root@localhost"

View File

@ -1,5 +1,3 @@
#!/bin/bash
set -e
set +x
. /etc/sysconfig/heat-params

View File

@ -1,4 +1,3 @@
#!/bin/bash
step="install-clients"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,3 @@
#!/bin/bash
set +x
echo "START: install cri"

View File

@ -1,5 +1,3 @@
#!/bin/bash
step="install-helm-modules"
echo "START: ${step}"

View File

@ -1,5 +1,3 @@
#!/bin/sh
step="kube-apiserver-to-kubelet-role"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,3 @@
#!/bin/sh
step="kube-dashboard-service"
printf "Starting to run ${step}\n"

View File

@ -1,5 +1,3 @@
#!/bin/sh
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,5 +1,3 @@
#!/bin/sh
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,5 +1,3 @@
#!/bin/bash
set -x
set +u
HTTP_PROXY="$HTTP_PROXY"

View File

@ -1,5 +1,3 @@
#!/bin/bash
. /etc/sysconfig/heat-params
set -x

View File

@ -1,5 +1,3 @@
#!/bin/sh
. /etc/sysconfig/heat-params
if [ "$VERIFY_CA" == "True" ]; then

View File

@ -1,5 +1,3 @@
#!/bin/sh
echo "START: write-heat-params"
arch=$(uname -m)

View File

@ -1,5 +1,3 @@
#!/bin/sh
echo "START: write-heat-params"
arch=$(uname -m)

View File

@ -1,5 +1,3 @@
#!/bin/sh
set +x
. /etc/sysconfig/heat-params
set -x

View File

@ -1,5 +1,3 @@
#!/bin/bash
set +x
. /etc/sysconfig/heat-params
set -ex

View File

@ -1,5 +1,3 @@
#!/bin/bash
set +x
. /etc/sysconfig/heat-params
set -ex

View File

@ -1,5 +1,3 @@
#!/bin/bash
set +x
. /etc/sysconfig/heat-params
set -ex

View File

@ -1,5 +1,3 @@
#!/bin/bash
set +x
. /etc/sysconfig/heat-params
set -ex

View File

@ -1271,6 +1271,7 @@ resources:
list_join:
- "\n"
-
- "#!/bin/bash"
- get_file: ../../common/templates/kubernetes/fragments/kube-apiserver-to-kubelet-role.sh
- get_file: ../../common/templates/kubernetes/fragments/core-dns-service.sh
- if:

View File

@ -706,6 +706,7 @@ resources:
list_join:
- "\n"
-
- "#!/bin/bash"
- str_replace:
template: {get_file: ../../common/templates/kubernetes/fragments/write-heat-params-master.sh}
params:
@ -995,7 +996,11 @@ resources:
- name: ostree_remote_input
- name: ostree_commit_input
config:
get_file: ../../common/templates/kubernetes/fragments/upgrade-kubernetes.sh
list_join:
- "\n"
-
- "#!/bin/bash"
- get_file: ../../common/templates/kubernetes/fragments/upgrade-kubernetes.sh
upgrade_kubernetes_deployment:
type: OS::Heat::SoftwareDeployment

View File

@ -400,6 +400,7 @@ resources:
list_join:
- "\n"
-
- "#!/bin/bash"
- str_replace:
template: {get_file: ../../common/templates/kubernetes/fragments/write-heat-params.sh}
params:
@ -582,7 +583,11 @@ resources:
- name: ostree_remote_input
- name: ostree_commit_input
config:
get_file: ../../common/templates/kubernetes/fragments/upgrade-kubernetes.sh
list_join:
- "\n"
-
- "#!/bin/bash"
- get_file: ../../common/templates/kubernetes/fragments/upgrade-kubernetes.sh
upgrade_kubernetes_deployment:
type: OS::Heat::SoftwareDeployment

View File

@ -1307,6 +1307,7 @@ resources:
list_join:
- "\n"
-
- "#!/bin/bash"
- get_file: ../../common/templates/kubernetes/fragments/kube-apiserver-to-kubelet-role.sh
- get_file: ../../common/templates/kubernetes/fragments/core-dns-service.sh
- if:

View File

@ -717,6 +717,7 @@ resources:
list_join:
- "\n"
-
- "#!/bin/bash"
- str_replace:
template: {get_file: ../../common/templates/kubernetes/fragments/write-heat-params-master.sh}
params:
@ -1006,7 +1007,11 @@ resources:
- name: ostree_remote_input
- name: ostree_commit_input
config:
get_file: ../../common/templates/kubernetes/fragments/upgrade-kubernetes.sh
list_join:
- "\n"
-
- "#!/bin/bash"
- get_file: ../../common/templates/kubernetes/fragments/upgrade-kubernetes.sh
upgrade_kubernetes_deployment:
type: OS::Heat::SoftwareDeployment

View File

@ -402,6 +402,7 @@ resources:
list_join:
- "\n"
-
- "#!/bin/bash"
- str_replace:
template: {get_file: ../../common/templates/kubernetes/fragments/write-heat-params.sh}
params:
@ -582,7 +583,11 @@ resources:
- name: ostree_remote_input
- name: ostree_commit_input
config:
get_file: ../../common/templates/kubernetes/fragments/upgrade-kubernetes.sh
list_join:
- "\n"
-
- "#!/bin/bash"
- get_file: ../../common/templates/kubernetes/fragments/upgrade-kubernetes.sh
upgrade_kubernetes_deployment:
type: OS::Heat::SoftwareDeployment