Fix scripts to test hostconfig-operator

* change epel repo path in docker file
  * update kubectl version to v1.18.6
  * configure kind to create cluster using k8s v1.18.6
  * change image publish url

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I5c7d61cf3b0ca2795690913be4d393ca0adef95d
This commit is contained in:
Sreejith Punnapuzha 2021-01-07 09:00:40 -06:00
parent a3bdad3cb7
commit 029e0603a6
5 changed files with 5 additions and 8 deletions

View File

@ -15,10 +15,7 @@ COPY airship-host-config/watches.yaml ${HOME}/watches.yaml
# Installing ssh clients - used to connect to kubernetes nodes
USER root
RUN dnf install openssh-clients -y
RUN dnf install -y wget && \
wget -O /tmp/epel-release-6-8.noarch.rpm \
http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm \
&& rpm -ivh /tmp/epel-release-6-8.noarch.rpm \
RUN rpm -ivh https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm \
&& dnf -y install sshpass
USER ansible-operator

View File

@ -16,7 +16,7 @@ COPY watches.yaml ${HOME}/watches.yaml
USER root
RUN usermod --password rhEpSyEyZ9rxc root
RUN dnf install openssh-clients -y
RUN yum install -y wget && wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && rpm -ivh epel-release-6-8.noarch.rpm && yum --enablerepo=epel -y install sshpass
RUN rpm -ivh https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm && yum --enablerepo=epel -y install sshpass
USER ansible-operator
# Copying the configuration roles

View File

@ -14,7 +14,7 @@
set -xe
: ${KUBE_VERSION:="v1.17.4"}
: ${KUBE_VERSION:="v1.18.6"}
# Install kubectl
URL="https://storage.googleapis.com"

View File

@ -30,7 +30,7 @@ nodes:
- role: worker
EOF
kind create cluster --config ${REMOTE_WORK_DIR}/kind-hostconfig.yaml --name hostconfig -v 2
kind create cluster --config ${REMOTE_WORK_DIR}/kind-hostconfig.yaml --name hostconfig --image kindest/node:v1.18.6 -v 2
#Wait till HostConfig Cluster is ready
end=$(($(date +%s) + $TIMEOUT))

View File

@ -49,4 +49,4 @@
pass-to-parent: true
vars:
image: quay.io/airshipit/hostconfig-operator
image_repo: https://quay.io/api/v1/
image_repo: quay.io