Skip to content

Commit

Permalink
Fix 'Delete VM' JT to actually delete VMs and remove unnecessary CNV … (
Browse files Browse the repository at this point in the history
  • Loading branch information
l3acon authored Aug 5, 2024
1 parent 120fe30 commit d80cc0a
Showing 1 changed file with 2 additions and 34 deletions.
36 changes: 2 additions & 34 deletions openshift/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,6 @@ controller_components:
- job_templates
- workflow_job_templates

controller_credential_types:
# Ideally, we would not need to use this and could just re-use the OCP credential for the inventory plugin
- name: OCPV inventory credential
kind: cloud
inputs:
fields:
- id: host
type: string
label: OpenShift or Kubernetes API Endpoint
secret: false
- id: bearer_token
type: string
label: API authentication bearer token
secret: true
- id: verify_ssl
type: boolean
label: Verify SSL
injectors:
env:
K8S_AUTH_HOST: "{% raw %}{ { host }}{% endraw %}"
K8S_AUTH_API_KEY: "{% raw %}{ { bearer_token }}{% endraw %}"
K8S_AUTH_VERIFY_SSL: "{% raw %}{ { verify_ssl }}{% endraw %}"

controller_credentials:
- name: OpenShift Credential
organization: Default
Expand All @@ -40,22 +17,13 @@ controller_credentials:
bearer_token: CHANGEME
verify_ssl: false

- name: OCP-V Inventory Credential
organization: Default
credential_type: OCPV inventory credential
state: exists
inputs:
host: CHANGEME
bearer_token: CHANGEME
verify_ssl: false

controller_inventory_sources:
- name: OpenShift CNV Inventory
inventory: Demo Inventory
source: scm
source_project: Ansible official demo project
source_path: openshift/inventory.kubevirt.yml
credential: OCP-V Inventory Credential
credential: OpenShift Credential
update_on_launch: false

controller_templates:
Expand Down Expand Up @@ -138,7 +106,7 @@ controller_templates:
notification_templates_error: Telemetry
survey_enabled: true
extra_vars:
state: absent
instance_state: absent
survey:
name: ''
description: ''
Expand Down

0 comments on commit d80cc0a

Please sign in to comment.