oc_new_app
Create a new application on OpenShift from a GitHub repository using S2I build, and optionally expose it via an edge-terminated route.
Instructions
Create a new application from a GitHub repository using S2I build and expose it with an edge-terminated route
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables in KEY=VALUE format | |
| gitRef | No | Git reference (branch, tag, or commit) to build from (default: main/master) | |
| labels | No | Labels in KEY=VALUE format | |
| appName | No | Name for the application (if not specified, derives from repo name) | |
| context | No | OpenShift context to use (optional) | |
| gitRepo | Yes | GitHub repository URL for the source code | |
| strategy | No | Build strategy: source (S2I) or docker | source |
| namespace | No | Target namespace for the application | default |
| contextDir | No | Context directory within the Git repository | |
| exposeRoute | No | Create an edge-terminated route to expose the application | |
| builderImage | No | Builder image for S2I build (e.g., "nodejs:18-ubi8", "python:3.9-ubi8") | |
| routeHostname | No | Custom hostname for the route (if not specified, uses default) | |
| createNamespace | No | Create namespace if it does not exist |