This provider can be used in workflows.As “step” to query data, example:
Copy
steps: - name: Query openshift provider: openshift config: "{{ provider.my_provider_name }}" with: command_type: {value} # The type of query to perform. Supported queries are:- get_logs: Get logs from a pod- get_events: Get events for a namespace or pod- get_pods: List pods in a namespace or across all namespaces- get_node_pressure: Get node pressure conditions- get_pvc: List persistent volume claims- get_routes: List OpenShift routes- get_deploymentconfigs: List OpenShift deployment configs- get_projects: List OpenShift projects # Additional arguments for the query.
As “action” to make changes or update data, example:
Copy
actions: - name: Query openshift provider: openshift config: "{{ provider.my_provider_name }}" with: action: {value} # The action to perform. Supported actions are:- rollout_restart: Restart a deployment, statefulset, or daemonset- restart_pod: Restart a pod by deleting it- scale_deployment: Scale a deployment to specified replicas- scale_deploymentconfig: Scale a deployment config to specified replicas # Additional arguments for the action.