Skip to content

Commit 7bd6c0d

Browse files
Merge pull request #6 from sean-m-sullivan/build_update
update build
2 parents 0361553 + 2ff80c2 commit 7bd6c0d

File tree

9 files changed

+59
-700
lines changed

9 files changed

+59
-700
lines changed

.github/workflow-config/kube/awx-operator.yaml

Lines changed: 0 additions & 646 deletions
This file was deleted.

.github/workflow-config/kube/awx.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
apiVersion: awx.ansible.com/v1beta1
3+
kind: AWX
4+
metadata:
5+
name: awx
6+
spec:
7+
service_type: nodeport
8+
nodeport_port: 30080
9+
...

.github/workflow-config/kube/awx_def.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
# Find the latest tag here: https://github.com/ansible/awx-operator/releases
5+
- github.com/ansible/awx-operator/config/default?ref=1.0.0
6+
- awx.yaml
7+
8+
# Set the image tags to match the git version from above
9+
images:
10+
- name: quay.io/ansible/awx-operator
11+
newTag: 1.0.0
12+
13+
# Specify a custom namespace in which to install AWX
14+
namespace: default
15+
...

.github/workflow-config/kube/namespace.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
# Find the latest tag here: https://github.com/ansible/awx-operator/releases
5+
- github.com/ansible/awx-operator/config/default?ref=1.0.0
6+
7+
# Set the image tags to match the git version from above
8+
images:
9+
- name: quay.io/ansible/awx-operator
10+
newTag: 1.0.0
11+
12+
# Specify a custom namespace in which to install AWX
13+
namespace: default
14+
...

.github/workflows/testing_minikube.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,12 @@ jobs:
88
name: Deploy Tower to Minikube and run tests
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout awx operator
12-
uses: actions/checkout@v2
13-
with:
14-
repository: ansible/awx-operator
1511

1612
- name: Checkout
1713
uses: actions/checkout@v2
18-
with:
19-
path: controller_configuration
2014

2115
- name: "Install dependencies"
22-
run: pip install -r controller_configuration/.github/requirements.txt
16+
run: pip install -r .github/requirements.txt
2317

2418
- name: Setup Minikube
2519
uses: manusa/actions-setup-minikube@v2.4.2
@@ -35,17 +29,27 @@ jobs:
3529

3630
- name: Setup awx operator
3731
run: |
38-
minikube kubectl get deployments
3932
minikube kubectl create secret generic awx-admin-password -- --from-literal=password=password
4033
minikube addons enable ingress
4134
alias kubectl="minikube kubectl --"
42-
make deploy NAMESPACE=default
43-
kubectl apply -f controller_configuration/.github/workflow-config/kube/awx_def.yml
35+
36+
- name: kustomize awx operator
37+
working-directory: .github/workflow-config
38+
run: kustomize build . | kubectl apply -f -
4439

4540
- name: Wait / Sleep
4641
uses: jakejarvis/wait-action@v0.1.0
4742
with:
48-
time: '180s'
43+
time: '30s'
44+
45+
- name: kustomize awx
46+
working-directory: .github/workflow-config/kube
47+
run: kustomize build . | kubectl apply -f -
48+
49+
- name: Wait / Sleep
50+
uses: jakejarvis/wait-action@v0.1.0
51+
with:
52+
time: '30s'
4953

5054
- name: Check service URL
5155
uses: nick-invision/retry@v2
@@ -68,15 +72,9 @@ jobs:
6872
- name: Display Versions
6973
run: which python && pip --version && ansible --version
7074

71-
- name: Checkout
72-
uses: actions/checkout@v2
73-
7475
- name: "Install Galaxy dependencies"
7576
run: ansible-galaxy collection install -r .github/collections/requirements.yml
7677

77-
- name: Check service password
78-
run: echo "Service password is ${{ steps.service-password.outputs.SERVICEPASSWORD }}"
79-
8078
- name: "Perform playbook tests"
8179
run: ansible-playbook examples/configure_controller.yml -e controller_hostname=${{ steps.service-url.outputs.SERVICEURL }}
8280

examples/configs/workflows.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ controller_workflows:
3333
- all_parents_must_converge: false
3434
identifier: node201
3535
unified_job_template: test-template-1
36-
forks: 2
3736
instance_groups:
38-
- test_instance_group
37+
- default
3938
labels:
4039
- differential
4140
- differential2

examples/configure_controller.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,14 @@
4444
validate_certs: "{{ controller_validate_certs }}"
4545
register: result
4646
until: result.status == 200
47-
retries: 20
47+
retries: 10
4848
delay: 30
4949
ignore_errors: true
5050

51+
- name: "Show result of ping"
52+
ansible.builtin.debug:
53+
var: result
54+
5155
- name: Sleep for 60 seconds and allow awx to come up.
5256
ansible.builtin.wait_for:
5357
timeout: 60

0 commit comments

Comments
 (0)