Authentication

This provider requires authentication.

  • api_server: The openshift api server url (required: True, sensitive: False)
  • token: The openshift token (required: True, sensitive: True)
  • insecure: Skip TLS verification (required: False, sensitive: False)

Certain scopes may be required to perform specific actions or queries via the provider. Below is a summary of relevant scopes and their use cases:

  • connect_to_openshift: Check if the provided token can connect to the openshift server (mandatory)

In workflows

This provider can be used in workflows.

As “action” to make changes or update data, example:

actions:
    - name: Query openshift
      provider: openshift
      config: "{{ provider.my_provider_name }}"
      with:
        kind: {value}  # The kind of object to restart. Could be deployments, statefulset, daemonset.
        name: {value}  # The name of the object to restart
        project_name: {value}  # The project name where the object is located

If you need workflow examples with this provider, please raise a GitHub issue.

Connecting with the Provider

To connect to Openshift, follow below steps:

  1. Log in to your Openshift cluster and create a new service account with required roles.
  2. Get the token of the service account.
  3. Use the token to authenticate with Openshift.

Notes

  • This provider allows you to interact with Openshift to perform rollout restart actions.