diff --git a/ansible-operator.yaml b/ansible-operator.yaml deleted file mode 100644 index cad0db3ccc0..00000000000 --- a/ansible-operator.yaml +++ /dev/null @@ -1,72 +0,0 @@ -package: - name: ansible-operator - version: 1.36.1 - epoch: 0 - description: Ansible operator to run in kubernetes environments. - copyright: - - license: Apache-2.0 - dependencies: - runtime: - - py3-ansible-core - - py3-ansible-runner-http - - py3-kubernetes - - py3-pip - - py3-pipenv - - python3 - -pipeline: - - uses: git-checkout - with: - repository: https://github.com/operator-framework/ansible-operator-plugins - tag: v${{package.version}} - expected-commit: 60db7ce358a45ffb3ec8303944aaeb1a601aa560 - - - uses: go/build - with: - packages: ./cmd/ansible-operator/main.go - install-dir: local/bin - output: ansible-operator - ldflags: | - -X github.com/operator-framework/ansible-operator-plugins/internal/version.Version=${{package.version}} - -X github.com/operator-framework/ansible-operator-plugins/internal/version.GitVersion=$(git describe --dirty --tags --always) - -X github.com/operator-framework/ansible-operator-plugins/internal/version.GitCommit=$(git rev-parse HEAD) - - - runs: | - mkdir -p ${{targets.destdir}}/etc/ansible - echo "localhost ansible_connection=local" > ${{targets.destdir}}/etc/ansible/hosts - echo '[defaults]' > ${{targets.destdir}}/etc/ansible/ansible.cfg - echo 'roles_path = /opt/ansible/roles' >> ${{targets.destdir}}/etc/ansible/ansible.cfg - echo 'library = /usr/share/ansible/openshift' >> ${{targets.destdir}}/etc/ansible/ansible.cfg - -subpackages: - - name: ansible-operator-compat - description: ansible-operator compat to put binary at expected place by stream - pipeline: - - runs: | - mkdir -p ${{targets.subpkgdir}}/usr/local/bin - ln -sf /usr/bin/ansible-operator ${{targets.subpkgdir}}/usr/local/bin/ansible-operator - -update: - enabled: true - github: - identifier: operator-framework/ansible-operator-plugins - strip-prefix: v - tag-filter: v - -test: - environment: - contents: - packages: - - curl - pipeline: - - name: Check version - runs: | - ansible-operator version | grep -q ${{package.version}} - - name: Smoke test run - runs: | - mkdir -p /var/run/secrets/kubernetes.io/serviceaccount - echo dummy >/var/run/secrets/kubernetes.io/serviceaccount/token - export KUBERNETES_SERVICE_HOST=localhost KUBERNETES_SERVICE_PORT=6443 KUBERNETES_MASTER=https://localhost:6443 - ansible-operator run --watches-file=/dev/null 2>&1 & - sleep 1 - curl -sf localhost:6789/healthz diff --git a/awx-operator.yaml b/awx-operator.yaml deleted file mode 100644 index 58283721773..00000000000 --- a/awx-operator.yaml +++ /dev/null @@ -1,49 +0,0 @@ -package: - name: awx-operator - version: 2.19.1 - epoch: 0 - description: An Ansible AWX operator for Kubernetes built with Operator SDK and Ansible. - copyright: - - license: Apache-2.0 - dependencies: - runtime: - - ansible-operator - -environment: - contents: - packages: - - busybox - - py3-ansible-core - -pipeline: - - uses: git-checkout - with: - repository: https://github.com/ansible/awx-operator - tag: ${{package.version}} - expected-commit: dd37ebd440edf953d822f2c134833a44a8e77532 - - - runs: | - mkdir -p ${{targets.contextdir}}/opt/ansible - cp requirements.yml ${{targets.contextdir}}/opt/ansible/requirements.yml - HOME=${{targets.contextdir}}/opt/ansible ansible-galaxy collection install -r ${{targets.contextdir}}/opt/ansible/requirements.yml - cp watches.yaml ${{targets.contextdir}}/opt/ansible/watches.yaml - cp -r roles ${{targets.contextdir}}/opt/ansible/roles - cp -r playbooks ${{targets.contextdir}}/opt/ansible/playbooks - -update: - enabled: true - github: - identifier: ansible/awx-operator - -test: - pipeline: - - name: Check Ansible files - runs: | - test -f /opt/ansible/watches.yaml - - uses: test/kwok/cluster - - name: Smoke test run - runs: | - cd /opt/ansible - ansible-operator run >awx-operator.log 2>&1 & - sleep 1 - grep -q '"Starting Controller","controller":"awx-controller"' awx-operator.log