Skip to content

Conversation

@fridim
Copy link
Collaborator

@fridim fridim commented Sep 9, 2025

This introduces a new namespace configuration designed to deploy OpenShift workloads directly to an existing namespace without requiring infrastructure provisioning or a bastion host.

This approach is for users who have direct, but potentially limited, namespace-level access to a shared OpenShift cluster and do not manage the underlying infrastructure.

The configuration runs on localhost and connects to the OpenShift API using provided credentials (API token or username/password). Workloads to be deployed are specified in the ocp_workloads_namespaced list variable.

A new example role, ocp_workloads_namespaced_example, is included to demonstrate how to build compatible, namespaced workloads. This role shows:

  • Adding oc login initial authentication.
  • Managing Kubernetes resources (Deployment, Service) and OpenShift resources (Route) via the kubernetes.core.k8s module and Jinja2 templates.
  • Including lifecycle tasks for creation, verification, and destruction of the application.
SUMMARY
ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request
  • Feature Pull Request
  • New config Pull Request
  • New role Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

@fridim fridim changed the title feat(ansible): Add 'namespace' config for NSaaS Add 'namespace' config for NSaaS Sep 9, 2025
@fridim fridim force-pushed the nsaas-config-and-example branch from 939e911 to 99d9e19 Compare September 9, 2025 15:38
This introduces a new namespace configuration designed to deploy OpenShift workloads directly to an existing namespace without requiring infrastructure provisioning or a bastion host.

This approach is for users who have direct, but potentially limited, namespace-level access to a shared OpenShift cluster and do not manage the underlying infrastructure.

The configuration runs on localhost and connects to the OpenShift API using provided credentials (API token or username/password). Workloads to be deployed are specified in the ocp_workloads_namespaced list variable.

A new example role, ocp_workloads_namespaced_example, is included to demonstrate how to build compatible, namespaced workloads. This role shows:

- Adding oc login initial authentication.
- Managing Kubernetes resources (Deployment, Service) and OpenShift resources (Route) via the kubernetes.core.k8s module and Jinja2 templates.
- Including lifecycle tasks for creation, verification, and destruction of the application.
@fridim fridim force-pushed the nsaas-config-and-example branch from 99d9e19 to 2060858 Compare September 11, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants