Skip to content

Commit

Permalink
Merge pull request #176 from kinvolk/tormath1/fix-azure-399
Browse files Browse the repository at this point in the history
kubernetes and kubeadm tests: make it work on azure
  • Loading branch information
Mathieu Tortuyaux authored May 31, 2021
2 parents 2cae536 + b3137b5 commit 5a60b1d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kola/tests/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func init() {
register.Register(&register.Test{
Name: "kubeadm.base",
Distros: []string{"cl"},
ExcludePlatforms: []string{"esx", "azure"},
ExcludePlatforms: []string{"esx"},
Run: kubeadmBaseTest,
})
}
Expand Down
2 changes: 1 addition & 1 deletion kola/tests/kubeadm/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ cat << EOF > worker-config.yaml
EOF
systemctl start --quiet coreos-metadata
ipv4=$(cat /run/metadata/flatcar | grep -v IPV6 | grep IP | grep -E '(PRIVATE|LOCAL)' | cut -d = -f 2)
ipv4=$(cat /run/metadata/flatcar | grep -v IPV6 | grep IP | grep -E '(PRIVATE|LOCAL|DYNAMIC)' | cut -d = -f 2)
kubeadm join --config worker-config.yaml --node-name "${ipv4}"`
)
2 changes: 1 addition & 1 deletion kola/tests/kubernetes/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func init() {
Name: "google.kubernetes.basic." + r + "." + t,
Run: f,
ClusterSize: 0,
Platforms: []string{"gce", "do", "aws", "qemu"}, // TODO: fix packet, esx
Platforms: []string{"gce", "do", "aws", "qemu", "azure"}, // TODO: fix packet, esx
Distros: []string{"cl"},
})
}
Expand Down
2 changes: 1 addition & 1 deletion kola/tests/kubernetes/controllerInstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function init_config {
if [ -z $ADVERTISE_IP ]; then
systemctl start coreos-metadata
export ADVERTISE_IP=$(cat /run/metadata/flatcar | grep -v IPV6 | grep IP | grep -E '(PRIVATE|LOCAL)' | cut -d = -f 2)
export ADVERTISE_IP=$(cat /run/metadata/flatcar | grep -v IPV6 | grep IP | grep -E '(PRIVATE|LOCAL|DYNAMIC)' | cut -d = -f 2)
fi
for REQ in "${REQUIRED[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion kola/tests/kubernetes/workerInstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function init_config {
if [ -z $ADVERTISE_IP ]; then
systemctl start coreos-metadata
export ADVERTISE_IP=$(cat /run/metadata/flatcar | grep -v IPV6 | grep IP | grep -E '(PRIVATE|LOCAL)' | cut -d = -f 2)
export ADVERTISE_IP=$(cat /run/metadata/flatcar | grep -v IPV6 | grep IP | grep -E '(PRIVATE|LOCAL|DYNAMIC)' | cut -d = -f 2)
fi
for REQ in "${REQUIRED[@]}"; do
Expand Down

0 comments on commit 5a60b1d

Please sign in to comment.