-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from RedHatGov/fix_gha
Fix GHA
- Loading branch information
Showing
22 changed files
with
86 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,9 @@ jobs: | |
- name: Kind | ||
uses: engineerd/[email protected] | ||
with: | ||
config: molecule/kind-cluster/files/kind-config.yml | ||
name: osdk-test | ||
version: v0.9.0 | ||
config: molecule/kind/files/kind-config.yml | ||
name: osdk-test-cluster | ||
version: v0.10.0 | ||
- name: Prereq setup | ||
run: hack/ci-setup.sh | ||
- name: Test | ||
|
@@ -40,9 +40,9 @@ jobs: | |
- name: Kind | ||
uses: engineerd/[email protected] | ||
with: | ||
config: molecule/kind-cluster/files/kind-config.yml | ||
name: osdk-test | ||
version: v0.9.0 | ||
config: molecule/kind/files/kind-config.yml | ||
name: osdk-test-namespace | ||
version: v0.10.0 | ||
- name: Prereq setup | ||
run: hack/ci-setup.sh | ||
- name: Test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,35 @@ | ||
#!/bin/bash -ex | ||
# Installs dependencies needed to run the tests in CI environment | ||
|
||
function ll { | ||
ls -halF "${@}" | ||
} | ||
|
||
mkdir -p $HOME/.local/bin | ||
export PATH="$HOME/.local/bin:$PATH" | ||
export KUBECONFIG=$HOME/.kube/config | ||
export KUBECONFIG=${KUBECONFIG:-$HOME/.kube/config} | ||
echo $KUBECONFIG | ||
ll $HOME/.kube | ||
kubectl config current-context | ||
kind version | ||
clusters=$(kind get clusters) | ||
for cluster in $clusters; do | ||
kind get nodes --name $cluster | ||
kind get kubeconfig --name $cluster | ||
done | ||
|
||
# Basic pip prereqs | ||
pip3 install --user --upgrade setuptools wheel pip | ||
|
||
# Dependencies for test environment | ||
pip3 install --user docker==4.2.2 ansible molecule ansible-lint yamllint flake8 openshift jmespath | ||
pip3 install --user -r requirements/test-requirements.txt | ||
|
||
# Ansible dependencies | ||
ansible-galaxy collection install -r requirements.yml | ||
|
||
# Kind CLI (for loading images into cluster) | ||
curl -Lo $HOME/.local/bin/kind https://kind.sigs.k8s.io/dl/v0.9.0/kind-linux-amd64 | ||
chmod +x $HOME/.local/bin/kind | ||
pip3 install --user --upgrade -r requirements/requirements.txt | ||
ansible-galaxy collection install -r requirements/requirements.yml | ||
|
||
# Helm CLI (for loading Ingress) | ||
curl -Lo $HOME/helm.tgz https://get.helm.sh/helm-v3.5.2-linux-amd64.tar.gz | ||
tar xvzf $HOME/helm.tgz -C $HOME/.local/bin --strip-components 1 linux-amd64/helm | ||
helm repo add stable https://charts.helm.sh/stable | ||
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx | ||
helm repo update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ KIND=Gitea | |
CR_SAMPLE=redhatgov_v1alpha1_gitea_openshift.yaml | ||
VERSION=0.0.6 | ||
CHANNELS=alpha | ||
OSDK_VERSION=1.4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
openshift==0.11.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
collections: | ||
- name: community.kubernetes | ||
version: 1.2.0 | ||
- name: operator_sdk.util | ||
version: 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
docker==4.2.2 | ||
ansible==2.9.15 # aligns with operator-sdk version | ||
requests>=2.25,<2.26 | ||
molecule>=3.3,<3.4 | ||
ansible-lint>=5.0,<6.0 | ||
yamllint>=1.26,<2.0 | ||
flake8>=3.9,<4.0 | ||
jmespath>=0.10,<0.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters