From 99507949e278d377c5e18b97bffc93048266332a Mon Sep 17 00:00:00 2001 From: gabriel-farache Date: Fri, 21 Jun 2024 09:09:41 +0000 Subject: [PATCH] Automated PR from https://github.com/parodos-dev/serverless-workflows/pull/266 --- charts/create-ocp-project/Chart.yaml | 2 +- ...igmap_01-create-ocp-project-resources.yaml | 20 + .../01-sonataflow_create-ocp-project.yaml | 319 +++ ...igmap_02-create-ocp-project-resources.yaml | 2393 +++++++++++++++++ ...03-configmap_create-ocp-project-props.yaml | 25 + 5 files changed, 2758 insertions(+), 1 deletion(-) create mode 100755 charts/create-ocp-project/templates/01-configmap_01-create-ocp-project-resources.yaml create mode 100755 charts/create-ocp-project/templates/01-sonataflow_create-ocp-project.yaml create mode 100755 charts/create-ocp-project/templates/02-configmap_02-create-ocp-project-resources.yaml create mode 100755 charts/create-ocp-project/templates/03-configmap_create-ocp-project-props.yaml diff --git a/charts/create-ocp-project/Chart.yaml b/charts/create-ocp-project/Chart.yaml index 2e018c01..f03fbea0 100644 --- a/charts/create-ocp-project/Chart.yaml +++ b/charts/create-ocp-project/Chart.yaml @@ -6,7 +6,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.1 +version: 0.0.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/create-ocp-project/templates/01-configmap_01-create-ocp-project-resources.yaml b/charts/create-ocp-project/templates/01-configmap_01-create-ocp-project-resources.yaml new file mode 100755 index 00000000..1b4b0c1a --- /dev/null +++ b/charts/create-ocp-project/templates/01-configmap_01-create-ocp-project-resources.yaml @@ -0,0 +1,20 @@ +apiVersion: v1 +data: + create-ocp-project__main-schema.json: "{\n \"$id\": \"classpath:/schemas/create-ocp-project-schema.json\",\n + \ \"title\": \"Data input schema\",\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n + \ \"type\": \"object\",\n \"properties\": {\n \"inputs\": {\n \"title\": + \"Inputs\",\n \"type\": \"object\",\n \"properties\": {\n \"operationsProjectKey\": + {\n \"title\": \"Operations Project Key\",\n \"description\": + \"JIRA project key for operations\",\n \"type\": \"string\",\n \"default\": + \"OP\"\n },\n \"auditProjectKey\": {\n \"title\": \"Audit + Project Key\",\n \"description\": \"JIRA project key for auditing\",\n + \ \"type\": \"string\",\n \"default\": \"AUD\"\n },\n + \ \"projectName\": {\n \"title\": \"Project Name\",\n \"description\": + \"OCP project to create\",\n \"type\": \"string\",\n \"pattern\": + \"^[a-z0-9]([-a-z0-9]*[a-z0-9])?$\"\n } \n },\n \"required\": + [\n \"operationsProjectKey\",\n \"auditProjectKey\",\n \"projectName\"\n + \ ]\n }\n }\n \n}\n" +kind: ConfigMap +metadata: + creationTimestamp: null + name: 01-create-ocp-project-resources diff --git a/charts/create-ocp-project/templates/01-sonataflow_create-ocp-project.yaml b/charts/create-ocp-project/templates/01-sonataflow_create-ocp-project.yaml new file mode 100755 index 00000000..8505298b --- /dev/null +++ b/charts/create-ocp-project/templates/01-sonataflow_create-ocp-project.yaml @@ -0,0 +1,319 @@ +apiVersion: sonataflow.org/v1alpha08 +kind: SonataFlow +metadata: + annotations: + sonataflow.org/description: Creating an OpenShift Project + sonataflow.org/expressionLang: jq + sonataflow.org/profile: prod + sonataflow.org/version: "1.0" + creationTimestamp: null + labels: + app: create-ocp-project + sonataflow.org/workflow-app: create-ocp-project + name: create-ocp-project +spec: + flow: + dataInputSchema: + failOnValidationErrors: true + schema: schemas/create-ocp-project__main-schema.json + functions: + - name: jiraCreateIssue + operation: specs/jira-openapi.yaml#createIssue + type: rest + - name: jiraGetIssue + operation: specs/jira-openapi.yaml#getIssue + type: rest + - name: jiraCloseIssue + operation: specs/jira-openapi.yaml#transitionIssue + type: rest + - name: jiraGetIssueTransitions + operation: specs/jira-openapi.yaml#getIssueTransitions + type: rest + - name: createNotification + operation: specs/notifications-openapi.yaml#createNotification + type: rest + - name: createProjectOpenshiftIoV1Project + operation: specs/ocp-project-openapi.yaml#createProjectOpenshiftIoV1Project + type: rest + - name: readProjectOpenshiftIoV1Project + operation: specs/ocp-project-openapi.yaml#readProjectOpenshiftIoV1Project + type: rest + - name: print + operation: sysout + type: custom + start: + stateName: '[Audit]: workflow started' + states: + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .auditJiraCreateIssueResult + useResults: true + functionRef: + arguments: + fields: + description: '"Workflow executed to request creation project " + .inputs.projectName' + issuetype: + name: Task + labels: + - backstage-workflow + - '"workflowId=" + $WORKFLOW.instanceId' + project: + key: .inputs.auditProjectKey + summary: '"Workflow executed to request the creation of project " + .inputs.projectName' + invoke: sync + refName: jiraCreateIssue + name: callbackAction + name: '[Audit]: workflow started' + transition: + nextState: Open issue on Jira for operations + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .operationsJiraCreateIssueResult + useResults: true + functionRef: + arguments: + fields: + description: '"Please review request to create project " + .inputs.projectName' + issuetype: + name: Task + labels: + - backstage-workflow + - '"workflowId=" + $WORKFLOW.instanceId' + project: + key: .inputs.operationsProjectKey + summary: '"Request authorization to create project " + .inputs.projectName' + invoke: sync + refName: jiraCreateIssue + name: callbackAction + name: Open issue on Jira for operations + transition: + nextState: 'Notify Backstage: Jira ticket created' + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + actions: + - title: View on Jira + url: $SECRET.jira_url + "/jira/servicedesk/projects/" + .inputs.operationsProjectKey + "/issues/" + .operationsJiraCreateIssueResult.key + message: Jira ticket created + origin: SonataFlow + targetUsers: + - default/guest + title: Jira ticket created + topic: Create OCP Project workflow + invoke: sync + refName: createNotification + name: 'Create notification: Jira ticket created' + name: 'Notify Backstage: Jira ticket created' + transition: + nextState: Poll Operation Jira issue + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .operationsJiraGetIssueResult + useResults: true + functionRef: + arguments: + issueIdOrKey: .operationsJiraCreateIssueResult.id + invoke: sync + refName: jiraGetIssue + name: get issue + sleep: + before: PT10S + name: Poll Operation Jira issue + transition: + nextState: Check Operation issue done + type: operation + - dataConditions: + - condition: .operationsJiraGetIssueResult.fields.status.statusCategory.key == "done" and .operationsJiraGetIssueResult.fields.resolution.name != "Done" + name: Resource request denied + transition: + nextState: '[Audit]: Close issue on Jira - Project Creation Denied' + - condition: .operationsJiraGetIssueResult.fields.status.statusCategory.key == "done" and .operationsJiraGetIssueResult.fields.resolution.name == "Done" + name: Resource request authorized + transition: + nextState: Create Project + defaultCondition: + transition: + nextState: Poll Operation Jira issue + name: Check Operation issue done + type: switch + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + kind: Project + metadata: + labels: + kubernetes.io/metadata.name: .inputs.projectName + name: .inputs.projectName + spec: + finalizers: + - kubernetes + invoke: sync + refName: createProjectOpenshiftIoV1Project + name: Create OCP Project + name: Create Project + transition: + nextState: 'Post operation: get project resource' + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .project + useResults: true + functionRef: + arguments: + name: .inputs.projectName + invoke: sync + refName: readProjectOpenshiftIoV1Project + name: Get created project + sleep: + before: PT10S + name: 'Post operation: get project resource' + transition: + nextState: 'Post operation: check project resource created successfully' + type: operation + - dataConditions: + - condition: .project.status.phase == "Active" + name: Project Active + transition: + nextState: Notify project active + defaultCondition: + transition: + nextState: Notify project not active + name: 'Post operation: check project resource created successfully' + type: switch + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '"Project " + .inputs.projectName + " active"' + origin: SonataFlow + targetUsers: + - default/guest + title: '"Project " + .inputs.projectName + " active"' + topic: Create OCP Project + invoke: sync + refName: createNotification + name: 'Create notification: project active' + name: Notify project active + transition: + nextState: '[Audit]: Close issue on Jira' + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '"Project " + .inputs.projectName + " NOT active"' + origin: SonataFlow + targetUsers: + - default/guest + title: '"Project " + .inputs.projectName + " NOT active"' + topic: Create OCP Project + invoke: sync + refName: createNotification + name: 'Create notification: project not active' + name: Notify project not active + transition: + nextState: '[Audit]: Close issue on Jira' + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .jiraGetTransitionResult + useResults: true + functionRef: + arguments: + issueIdOrKey: .auditJiraCreateIssueResult.id + invoke: sync + refName: jiraGetIssueTransitions + name: get transition id + - actionDataFilter: + toStateData: .jiraCloseIssueResult + useResults: true + functionRef: + arguments: + issueIdOrKey: .auditJiraCreateIssueResult.id + transition: + id: .jiraGetTransitionResult.transitions[] | select(.to.name | contains("Done")) | .id + update: + comment: + - add: + body: '"Project " + .inputs.projectName + " is " + .project.status.phase' + invoke: sync + refName: jiraCloseIssue + name: Close issue on Jira due to Timeout + end: + terminate: true + name: '[Audit]: Close issue on Jira' + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .jiraGetTransitionResult + useResults: true + functionRef: + arguments: + issueIdOrKey: .auditJiraCreateIssueResult.id + invoke: sync + refName: jiraGetIssueTransitions + name: get transition id + - actionDataFilter: + toStateData: .jiraCloseIssueResult + useResults: true + functionRef: + arguments: + issueIdOrKey: .auditJiraCreateIssueResult.id + transition: + id: .jiraGetTransitionResult.transitions[] | select(.to.name | contains("Done")) | .id + update: + comment: + - add: + body: '"Creation of project " + .inputs.projectName + " denied"' + invoke: sync + refName: jiraCloseIssue + name: Close issue on Jira due to Timeout + end: + terminate: true + name: '[Audit]: Close issue on Jira - Project Creation Denied' + type: operation + podTemplate: + container: + resources: {} + image: quay.io/orchestrator/serverless-workflow-create-ocp-project:ee4a4a1e1792d139fda593e684dfb9f0cdf5d164 + resources: + configMaps: + - configMap: + name: 01-create-ocp-project-resources + workflowPath: schemas + - configMap: + name: 02-create-ocp-project-resources + workflowPath: specs + persistence: + postgresql: + secretRef: + name: sonataflow-psql-postgresql + userKey: postgres-username + passwordKey: postgres-password + serviceRef: + name: sonataflow-psql-postgresql + port: 5432 + databaseName: sonataflow + databaseSchema: create-ocp-project +status: + address: {} + lastTimeRecoverAttempt: null diff --git a/charts/create-ocp-project/templates/02-configmap_02-create-ocp-project-resources.yaml b/charts/create-ocp-project/templates/02-configmap_02-create-ocp-project-resources.yaml new file mode 100755 index 00000000..b3fc2bb4 --- /dev/null +++ b/charts/create-ocp-project/templates/02-configmap_02-create-ocp-project-resources.yaml @@ -0,0 +1,2393 @@ +apiVersion: v1 +data: + jira-openapi.yaml: | + --- + openapi: 3.0.1 + info: + title: JIRA Actions for BS API + description: JIRA Actions BS API + version: 0.0.1 + paths: + /rest/api/2/issue/{issueIdOrKey}/transitions: + post: + tags: + - Issues + summary: Transition issue + description: Performs an issue transition and, if the transition has a screen, updates the fields from the transition screen. + operationId: transitionIssue + parameters: + - name: issueIdOrKey + in: path + description: The ID or key of the issue. + required: true + schema: + type: string + requestBody: + description: Input parameters for the action transitionIssue in BS + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/TransitionIssue' + responses: + default: + description: Transition Issue Response + content: + application/json: + schema: + type: object + deprecated: false + security: + - basicAuth: [] + get: + tags: + - Issues + summary: Get issue transitions + description: Get issue transitions + operationId: getIssueTransitions + parameters: + - name: issueIdOrKey + in: path + description: The ID or key of the issue. + required: true + schema: + type: string + responses: + default: + description: Transition Issue Response + content: + application/json: + schema: + type: object + deprecated: false + security: + - basicAuth: [] + /rest/api/2/issue/{issueIdOrKey}: + get: + deprecated: false + security: + - basicAuth: [] + description: |- + Returns the details for an issue. + + The issue is identified by its ID or key, however, if the identifier doesn't match an issue, a case-insensitive search and check for moved issues is performed. If a matching issue is found its details are returned, a 302 or other redirect is **not** returned. The issue key returned in the response is the key of the issue found. + + This operation can be accessed anonymously. + + **[Permissions](#permissions) required:** + + * *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project that the issue is in. + * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission to view the issue. + operationId: getIssue + parameters: + - description: The ID or key of the issue. + in: path + name: issueIdOrKey + required: true + schema: + type: string + - description: |- + A list of fields to return for the issue. This parameter accepts a comma-separated list. Use it to retrieve a subset of fields. Allowed values: + + * `*all` Returns all fields. + * `*navigable` Returns navigable fields. + * Any issue field, prefixed with a minus to exclude. + + Examples: + + * `summary,comment` Returns only the summary and comments fields. + * `-description` Returns all (default) fields except description. + * `*navigable,-comment` Returns all navigable fields except comment. + + This parameter may be specified multiple times. For example, `fields=field1,field2& fields=field3`. + + Note: All fields are returned by default. This differs from [Search for issues using JQL (GET)](#api-rest-api-2-search-get) and [Search for issues using JQL (POST)](#api-rest-api-2-search-post) where the default is all navigable fields. + in: query + name: fields + schema: + items: + default: "*all" + type: string + type: array + - description: Whether fields in `fields` are referenced by keys rather than + IDs. This parameter is useful where fields have been added by a connect + app and a field's key may differ from its ID. + in: query + name: fieldsByKeys + schema: + default: false + type: boolean + - description: |- + Use [expand](#expansion) to include additional information about the issues in the response. This parameter accepts a comma-separated list. Expand options include: + + * `renderedFields` Returns field values rendered in HTML format. + * `names` Returns the display name of each field. + * `schema` Returns the schema describing a field type. + * `transitions` Returns all possible transitions for the issue. + * `editmeta` Returns information about how each field can be edited. + * `changelog` Returns a list of recent updates to an issue, sorted by date, starting from the most recent. + * `versionedRepresentations` Returns a JSON array for each version of a field's value, with the highest number representing the most recent version. Note: When included in the request, the `fields` parameter is ignored. + in: query + name: expand + schema: + type: string + - description: |- + A list of issue properties to return for the issue. This parameter accepts a comma-separated list. Allowed values: + + * `*all` Returns all issue properties. + * Any issue property key, prefixed with a minus to exclude. + + Examples: + + * `*all` Returns all properties. + * `*all,-prop1` Returns all properties except `prop1`. + * `prop1,prop2` Returns `prop1` and `prop2` properties. + + This parameter may be specified multiple times. For example, `properties=prop1,prop2& properties=prop3`. + in: query + name: properties + schema: + items: + default: 'null' + type: string + type: array + - description: Whether the project in which the issue is created is added to + the user's **Recently viewed** project list, as shown under **Projects** + in Jira. This also populates the [JQL issues search](#api-rest-api-2-search-get) + `lastViewed` field. + in: query + name: updateHistory + schema: + default: false + type: boolean + responses: + '200': + content: + application/json: + example: '{"fields":{"watcher":{"isWatching":false,"self":"https://your-domain.atlassian.net/rest/api/2/issue/EX-1/watchers","watchCount":1,"watchers":[{"accountId":"5b10a2844c20165700ede21g","active":false,"displayName":"Mia + Krystof","self":"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g"}]},"attachment":[{"author":{"accountId":"5b10a2844c20165700ede21g","accountType":"atlassian","active":false,"avatarUrls":{"16x16":"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16","24x24":"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24","32x32":"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32","48x48":"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"},"displayName":"Mia + Krystof","key":"","name":"","self":"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g"},"content":"https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10001","created":"2023-06-24T19:24:50.000+0000","filename":"debuglog.txt","id":10001,"mimeType":"text/plain","self":"https://your-domain.atlassian.net/rest/api/2/attachments/10001","size":2460}],"sub-tasks":[{"id":"10000","outwardIssue":{"fields":{"status":{"iconUrl":"https://your-domain.atlassian.net/images/icons/statuses/open.png","name":"Open"}},"id":"10003","key":"ED-2","self":"https://your-domain.atlassian.net/rest/api/2/issue/ED-2"},"type":{"id":"10000","inward":"Parent","name":"","outward":"Sub-task"}}],"description":"Main + order flow broken","project":{"avatarUrls":{"16x16":"https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000","24x24":"https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000","32x32":"https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000","48x48":"https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"},"id":"10000","insight":{"lastIssueUpdateTime":"2021-04-22T05:37:05.000+0000","totalIssueCount":100},"key":"EX","name":"Example","projectCategory":{"description":"First + Project Category","id":"10000","name":"FIRST","self":"https://your-domain.atlassian.net/rest/api/2/projectCategory/10000"},"self":"https://your-domain.atlassian.net/rest/api/2/project/EX","simplified":false,"style":"classic"},"comment":[{"author":{"accountId":"5b10a2844c20165700ede21g","active":false,"displayName":"Mia + Krystof","self":"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g"},"body":"Lorem + ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget + venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper + quam laoreet nisi egestas at posuere augue semper.","created":"2021-01-17T12:34:00.000+0000","id":"10000","self":"https://your-domain.atlassian.net/rest/api/2/issue/10010/comment/10000","updateAuthor":{"accountId":"5b10a2844c20165700ede21g","active":false,"displayName":"Mia + Krystof","self":"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g"},"updated":"2021-01-18T23:45:00.000+0000","visibility":{"identifier":"Administrators","type":"role","value":"Administrators"}}],"issuelinks":[{"id":"10001","outwardIssue":{"fields":{"status":{"iconUrl":"https://your-domain.atlassian.net/images/icons/statuses/open.png","name":"Open"}},"id":"10004L","key":"PR-2","self":"https://your-domain.atlassian.net/rest/api/2/issue/PR-2"},"type":{"id":"10000","inward":"depends + on","name":"Dependent","outward":"is depended by"}},{"id":"10002","inwardIssue":{"fields":{"status":{"iconUrl":"https://your-domain.atlassian.net/images/icons/statuses/open.png","name":"Open"}},"id":"10004","key":"PR-3","self":"https://your-domain.atlassian.net/rest/api/2/issue/PR-3"},"type":{"id":"10000","inward":"depends + on","name":"Dependent","outward":"is depended by"}}],"worklog":[{"author":{"accountId":"5b10a2844c20165700ede21g","active":false,"displayName":"Mia + Krystof","self":"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g"},"comment":"I + did some work here.","id":"100028","issueId":"10002","self":"https://your-domain.atlassian.net/rest/api/2/issue/10010/worklog/10000","started":"2021-01-17T12:34:00.000+0000","timeSpent":"3h + 20m","timeSpentSeconds":12000,"updateAuthor":{"accountId":"5b10a2844c20165700ede21g","active":false,"displayName":"Mia + Krystof","self":"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g"},"updated":"2021-01-18T23:45:00.000+0000","visibility":{"identifier":"276f955c-63d7-42c8-9520-92d01dca0625","type":"group","value":"jira-developers"}}],"updated":1,"timetracking":{"originalEstimate":"10m","originalEstimateSeconds":600,"remainingEstimate":"3m","remainingEstimateSeconds":200,"timeSpent":"6m","timeSpentSeconds":400}},"id":"10002","key":"ED-1","self":"https://your-domain.atlassian.net/rest/api/2/issue/10002"}' + schema: + "$ref": "#/components/schemas/IssueBean" + description: Returned if the request is successful. + '401': + description: Returned if the authentication credentials are incorrect or + missing. + '404': + description: Returned if the issue is not found or the user does not have + permission to view it. + summary: Get issue + tags: + - Issues + x-atlassian-connect-scope: READ + /rest/api/2/issue: + post: + tags: + - Issues + summary: Create issue + description: |- + Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask. A transition may be applied, to move the issue or subtask to a workflow step other than the default start step, and issue properties set. + + The content of the issue or subtask is defined using `update` and `fields`. The fields that can be set in the issue or subtask are determined using the [ Get create issue metadata](#api-rest-api-3-issue-createmeta-get). These are the same fields that appear on the issue's create screen. Note that the `description`, `environment`, and any `textarea` type custom fields (multi-line text fields) take Atlassian Document Format content. Single line custom fields (`textfield`) accept a string and don't handle Atlassian Document Format content. + + Creating a subtask differs from creating an issue as follows: + + * `issueType` must be set to a subtask issue type (use [ Get create issue metadata](#api-rest-api-3-issue-createmeta-get) to find subtask issue types). + * `parent` must contain the ID or key of the parent issue. + + In a next-gen project any issue may be made a child providing that the parent and child are members of the same project. + + **[Permissions](#permissions) required:** *Browse projects* and *Create issues* [project permissions](https://confluence.atlassian.com/x/yodKLg) for the project in which the issue or subtask is created. + operationId: createIssue + parameters: + - name: updateHistory + in: query + description: Whether the project in which the issue is created is added to + the user's **Recently viewed** project list, as shown under **Projects** + in Jira. When provided, the issue type and request type are added to the + user's history for a project. These values are then used to provide defaults + on the issue create screen. + schema: + type: boolean + default: false + requestBody: + description: Input parameters for the action createIssue in BS + required: true + content: + application/json: + schema: + "$ref": "#/components/schemas/IssueUpdateDetails" + responses: + default: + description: Create Issue Response + content: + application/json: + schema: + type: object + deprecated: false + security: + - basicAuth: [] + components: + schemas: + TransitionIssue: + type: object + properties: + transition: + type: object + properties: + id: + type: string + update: + type: object + properties: + comment: + type: array + items: + type: object + properties: + add: + type: object + properties: + body: + type: string + ChangeDetails: + additionalProperties: false + description: A change item. + properties: + field: + description: The name of the field changed. + readOnly: true + type: string + fieldId: + description: The ID of the field changed. + readOnly: true + type: string + fieldtype: + description: The type of the field changed. + readOnly: true + type: string + from: + description: The details of the original value. + readOnly: true + type: string + fromString: + description: The details of the original value as a string. + readOnly: true + type: string + to: + description: The details of the new value. + readOnly: true + type: string + toString: + description: The details of the new value as a string. + readOnly: true + type: string + type: object + HistoryMetadataParticipant: + additionalProperties: true + description: Details of user or system associated with a issue history metadata + item. + properties: + avatarUrl: + description: The URL to an avatar for the user or system associated with + a history record. + type: string + displayName: + description: The display name of the user or system associated with a history + record. + type: string + displayNameKey: + description: The key of the display name of the user or system associated + with a history record. + type: string + id: + description: The ID of the user or system associated with a history record. + type: string + type: + description: The type of the user or system associated with a history record. + type: string + url: + description: The URL of the user or system associated with a history record. + type: string + type: object + HistoryMetadata: + additionalProperties: true + description: Details of issue history metadata. + properties: + activityDescription: + description: The activity described in the history record. + type: string + activityDescriptionKey: + description: The key of the activity described in the history record. + type: string + actor: + allOf: + - "$ref": "#/components/schemas/HistoryMetadataParticipant" + description: Details of the user whose action created the history record. + cause: + allOf: + - "$ref": "#/components/schemas/HistoryMetadataParticipant" + description: Details of the cause that triggered the creation the history + record. + description: + description: The description of the history record. + type: string + descriptionKey: + description: The description key of the history record. + type: string + emailDescription: + description: The description of the email address associated the history + record. + type: string + emailDescriptionKey: + description: The description key of the email address associated the history + record. + type: string + extraData: + additionalProperties: + type: string + description: Additional arbitrary information about the history record. + type: object + generator: + allOf: + - "$ref": "#/components/schemas/HistoryMetadataParticipant" + description: Details of the system that generated the history record. + type: + description: The type of the history record. + type: string + type: object + AvatarUrlsBean: + additionalProperties: false + properties: + 16x16: + description: The URL of the item's 16x16 pixel avatar. + format: uri + type: string + 24x24: + description: The URL of the item's 24x24 pixel avatar. + format: uri + type: string + 32x32: + description: The URL of the item's 32x32 pixel avatar. + format: uri + type: string + 48x48: + description: The URL of the item's 48x48 pixel avatar. + format: uri + type: string + type: object + UserDetails: + additionalProperties: false + description: |- + User details permitted by the user's Atlassian Account privacy settings. However, be aware of these exceptions: + + * User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, `displayName` provides an indication and other parameters have default values or are blank (for example, email is blank). + * User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, `accountId` returns *unknown* and all other parameters have fallback values. + * User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values. + properties: + accountId: + description: The account ID of the user, which uniquely identifies the user + across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. + maxLength: 128 + type: string + accountType: + description: The type of account represented by this user. This will be + one of 'atlassian' (normal users), 'app' (application user) or 'customer' + (Jira Service Desk customer user) + readOnly: true + type: string + active: + description: Whether the user is active. + readOnly: true + type: boolean + avatarUrls: + allOf: + - "$ref": "#/components/schemas/AvatarUrlsBean" + description: The avatars of the user. + readOnly: true + displayName: + description: The display name of the user. Depending on the user’s privacy + settings, this may return an alternative value. + readOnly: true + type: string + emailAddress: + description: The email address of the user. Depending on the user’s privacy + settings, this may be returned as null. + readOnly: true + type: string + key: + description: This property is no longer available and will be removed from + the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) + for details. + readOnly: true + type: string + name: + description: This property is no longer available and will be removed from + the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) + for details. + readOnly: true + type: string + self: + description: The URL of the user. + readOnly: true + type: string + timeZone: + description: The time zone specified in the user's profile. Depending on + the user’s privacy settings, this may be returned as null. + readOnly: true + type: string + type: object + Changelog: + additionalProperties: false + description: A log of changes made to issue fields. Changelogs related to workflow + associations are currently being deprecated. + properties: + author: + allOf: + - "$ref": "#/components/schemas/UserDetails" + description: The user who made the change. + readOnly: true + created: + description: The date on which the change took place. + format: date-time + readOnly: true + type: string + historyMetadata: + allOf: + - "$ref": "#/components/schemas/HistoryMetadata" + description: The history metadata associated with the changed. + readOnly: true + id: + description: The ID of the changelog. + readOnly: true + type: string + items: + description: The list of items changed. + items: + "$ref": "#/components/schemas/ChangeDetails" + readOnly: true + type: array + type: object + PageOfChangelogs: + additionalProperties: false + description: A page of changelogs. + properties: + histories: + description: The list of changelogs. + items: + "$ref": "#/components/schemas/Changelog" + readOnly: true + type: array + maxResults: + description: The maximum number of results that could be on the page. + format: int32 + readOnly: true + type: integer + startAt: + description: The index of the first item returned on the page. + format: int32 + readOnly: true + type: integer + total: + description: The number of results on the page. + format: int32 + readOnly: true + type: integer + type: object + IssueUpdateMetadata: + description: A list of editable field details. + properties: + fields: + additionalProperties: + "$ref": "#/components/schemas/FieldMetadata" + readOnly: true + type: object + type: object + FieldMetadata: + additionalProperties: false + description: The metadata describing an issue field. + properties: + allowedValues: + description: The list of values allowed in the field. + items: + readOnly: true + readOnly: true + type: array + autoCompleteUrl: + description: The URL that can be used to automatically complete the field. + readOnly: true + type: string + configuration: + additionalProperties: + readOnly: true + description: The configuration properties. + readOnly: true + type: object + defaultValue: + description: The default value of the field. + readOnly: true + hasDefaultValue: + description: Whether the field has a default value. + readOnly: true + type: boolean + key: + description: The key of the field. + readOnly: true + type: string + name: + description: The name of the field. + readOnly: true + type: string + operations: + description: The list of operations that can be performed on the field. + items: + readOnly: true + type: string + readOnly: true + type: array + required: + description: Whether the field is required. + readOnly: true + type: boolean + schema: + allOf: + - "$ref": "#/components/schemas/JsonTypeBean" + description: The data type of the field. + readOnly: true + required: + - key + - name + - operations + - required + - schema + type: object + xml: + name: availableField + JsonTypeBean: + additionalProperties: false + description: The schema of a field. + properties: + configuration: + additionalProperties: + readOnly: true + description: If the field is a custom field, the configuration of the field. + readOnly: true + type: object + custom: + description: If the field is a custom field, the URI of the field. + readOnly: true + type: string + customId: + description: If the field is a custom field, the custom ID of the field. + format: int64 + readOnly: true + type: integer + items: + description: When the data type is an array, the name of the field items + within the array. + readOnly: true + type: string + system: + description: If the field is a system field, the name of the field. + readOnly: true + type: string + type: + description: The data type of the field. + readOnly: true + type: string + required: + - type + type: object + IncludedFields: + additionalProperties: false + properties: + actuallyIncluded: + items: + type: string + type: array + uniqueItems: true + excluded: + items: + type: string + type: array + uniqueItems: true + included: + items: + type: string + type: array + uniqueItems: true + type: object + Operations: + additionalProperties: true + description: Details of the operations that can be performed on the issue. + properties: + linkGroups: + description: Details of the link groups defining issue operations. + items: + "$ref": "#/components/schemas/LinkGroup" + readOnly: true + type: array + type: object + LinkGroup: + additionalProperties: false + description: Details a link group, which defines issue operations. + properties: + groups: + items: + "$ref": "#/components/schemas/LinkGroup" + type: array + header: + "$ref": "#/components/schemas/SimpleLink" + id: + type: string + links: + items: + "$ref": "#/components/schemas/SimpleLink" + type: array + styleClass: + type: string + weight: + format: int32 + type: integer + type: object + SimpleLink: + additionalProperties: false + description: Details about the operations available in this version. + properties: + href: + type: string + iconClass: + type: string + id: + type: string + label: + type: string + styleClass: + type: string + title: + type: string + weight: + format: int32 + type: integer + type: object + xml: + name: link + IssueTransition: + additionalProperties: true + description: Details of an issue transition. + properties: + expand: + description: Expand options that include additional transition details in + the response. + readOnly: true + type: string + fields: + additionalProperties: + "$ref": "#/components/schemas/FieldMetadata" + description: Details of the fields associated with the issue transition + screen. Use this information to populate `fields` and `update` in a transition + request. + readOnly: true + type: object + hasScreen: + description: Whether there is a screen associated with the issue transition. + readOnly: true + type: boolean + id: + description: The ID of the issue transition. Required when specifying a + transition to undertake. + type: string + isAvailable: + description: Whether the transition is available to be performed. + readOnly: true + type: boolean + isConditional: + description: Whether the issue has to meet criteria before the issue transition + is applied. + readOnly: true + type: boolean + isGlobal: + description: Whether the issue transition is global, that is, the transition + is applied to issues regardless of their status. + readOnly: true + type: boolean + isInitial: + description: Whether this is the initial issue transition for the workflow. + readOnly: true + type: boolean + looped: + type: boolean + name: + description: The name of the issue transition. + readOnly: true + type: string + to: + allOf: + - "$ref": "#/components/schemas/StatusDetails" + description: Details of the issue status after the transition. + readOnly: true + type: object + StatusDetails: + additionalProperties: true + description: A status. + properties: + description: + description: The description of the status. + readOnly: true + type: string + iconUrl: + description: The URL of the icon used to represent the status. + readOnly: true + type: string + id: + description: The ID of the status. + readOnly: true + type: string + name: + description: The name of the status. + readOnly: true + type: string + scope: + allOf: + - "$ref": "#/components/schemas/Scope" + description: The scope of the field. + readOnly: true + self: + description: The URL of the status. + readOnly: true + type: string + statusCategory: + allOf: + - "$ref": "#/components/schemas/StatusCategory" + description: The category assigned to the status. + readOnly: true + type: object + StatusCategory: + additionalProperties: true + description: A status category. + properties: + colorName: + description: The name of the color used to represent the status category. + readOnly: true + type: string + id: + description: The ID of the status category. + format: int64 + readOnly: true + type: integer + key: + description: The key of the status category. + readOnly: true + type: string + name: + description: The name of the status category. + readOnly: true + type: string + self: + description: The URL of the status category. + readOnly: true + type: string + type: object + ProjectDetails: + additionalProperties: false + description: Details about a project. + properties: + avatarUrls: + allOf: + - "$ref": "#/components/schemas/AvatarUrlsBean" + description: The URLs of the project's avatars. + readOnly: true + id: + description: The ID of the project. + type: string + key: + description: The key of the project. + readOnly: true + type: string + name: + description: The name of the project. + readOnly: true + type: string + projectCategory: + allOf: + - "$ref": "#/components/schemas/UpdatedProjectCategory" + description: The category the project belongs to. + readOnly: true + projectTypeKey: + description: The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) + of the project. + enum: + - software + - service_desk + - business + readOnly: true + type: string + self: + description: The URL of the project details. + readOnly: true + type: string + simplified: + description: Whether or not the project is simplified. + readOnly: true + type: boolean + type: object + UpdatedProjectCategory: + additionalProperties: false + description: A project category. + properties: + description: + description: The name of the project category. + readOnly: true + type: string + id: + description: The ID of the project category. + readOnly: true + type: string + name: + description: The description of the project category. + readOnly: true + type: string + self: + description: The URL of the project category. + readOnly: true + type: string + type: object + Scope: + additionalProperties: true + description: The projects the item is associated with. Indicated for items associated + with [next-gen projects](https://confluence.atlassian.com/x/loMyO). + properties: + project: + allOf: + - "$ref": "#/components/schemas/ProjectDetails" + description: The project the item has scope in. + readOnly: true + type: + description: The type of scope. + enum: + - PROJECT + - TEMPLATE + readOnly: true + type: string + type: object + EntityProperty: + additionalProperties: false + description: An entity property, for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/). + properties: + key: + description: The key of the property. Required on create and update. + type: string + value: + description: The value of the property. Required on create and update. + type: object + FieldUpdateOperation: + additionalProperties: false + description: Details of an operation to perform on a field. + properties: + add: + description: The value to add to the field. + example: triaged + copy: + description: The field value to copy from another issue. + example: + issuelinks: + sourceIssues: + - key: FP-5 + edit: + description: The value to edit in the field. + example: + originalEstimate: 1w 1d + remainingEstimate: 4d + remove: + description: The value to removed from the field. + example: blocker + set: + description: The value to set in the field. + example: A new summary + type: object + IssueUpdateDetails: + additionalProperties: true + description: Details of an issue update request. + properties: + fields: + additionalProperties: {} + description: List of issue screen fields to update, specifying the sub-field + to update and its value for each field. This field provides a straightforward + option when setting a sub-field. When multiple sub-fields or other operations + are required, use `update`. Fields included in here cannot be included + in `update`. + type: object + historyMetadata: + allOf: + - "$ref": "#/components/schemas/HistoryMetadata" + description: Additional issue history details. + properties: + description: Details of issue properties to be add or update. + items: + "$ref": "#/components/schemas/EntityProperty" + type: array + transition: + allOf: + - "$ref": "#/components/schemas/IssueTransition" + description: Details of a transition. Required when performing a transition, + optional when creating or editing an issue. + update: + additionalProperties: + items: + "$ref": "#/components/schemas/FieldUpdateOperation" + type: array + description: A Map containing the field field name and a list of operations + to perform on the issue screen field. Note that fields included in here + cannot be included in `fields`. + type: object + type: object + IssueBean: + additionalProperties: false + description: Details about an issue. + properties: + changelog: + allOf: + - "$ref": "#/components/schemas/PageOfChangelogs" + description: Details of changelogs associated with the issue. + readOnly: true + editmeta: + allOf: + - "$ref": "#/components/schemas/IssueUpdateMetadata" + description: The metadata for the fields on the issue that can be amended. + readOnly: true + expand: + description: Expand options that include additional issue details in the + response. + readOnly: true + type: string + xml: + attribute: true + fields: + additionalProperties: {} + type: object + fieldsToInclude: + "$ref": "#/components/schemas/IncludedFields" + id: + description: The ID of the issue. + readOnly: true + type: string + key: + description: The key of the issue. + readOnly: true + type: string + names: + additionalProperties: + readOnly: true + type: string + description: The ID and name of each field present on the issue. + readOnly: true + type: object + operations: + allOf: + - "$ref": "#/components/schemas/Operations" + description: The operations that can be performed on the issue. + readOnly: true + properties: + additionalProperties: + readOnly: true + description: Details of the issue properties identified in the request. + readOnly: true + type: object + renderedFields: + additionalProperties: + readOnly: true + description: The rendered value of each field present on the issue. + readOnly: true + type: object + schema: + additionalProperties: + "$ref": "#/components/schemas/JsonTypeBean" + description: The schema describing each field present on the issue. + readOnly: true + type: object + self: + description: The URL of the issue details. + format: uri + readOnly: true + type: string + transitions: + description: The transitions that can be performed on the issue. + items: + "$ref": "#/components/schemas/IssueTransition" + readOnly: true + type: array + versionedRepresentations: + additionalProperties: + additionalProperties: + readOnly: true + readOnly: true + type: object + description: The versions of each field on the issue. + readOnly: true + type: object + type: object + xml: + name: issue + securitySchemes: + basicAuth: + description: You can access this resource via basic auth. + scheme: basic + type: http + notifications-openapi.yaml: |- + openapi: 3.0.3 + info: + title: Notifications Plugin - OpenAPI Specs + description: |- + Notifications Plugin - OpenAPI Specs + version: 1.0.0 + tags: + - name: notifications + description: notifications plugin + paths: + /notifications: + post: + tags: + - notifications + summary: Create notification + description: Create notification + operationId: createNotification + requestBody: + description: Create a new notification + content: + application/json: + schema: + $ref: '#/components/schemas/CreateBody' + responses: + '200': + description: Successful operation + content: + application/json: + schema: + type: object + properties: + messageId: + type: string + example: bc9f19de-8b7b-49a8-9262-c5036a1ed35e + required: ['messageId'] + get: + tags: + - notifications + summary: Gets notifications + description: Gets notifications + operationId: getNotifications + parameters: + - name: pageSize + in: query + description: Page size of the result + required: false + schema: + type: integer + minimum: 0 + - name: pageNumber + in: query + description: Page number of the result + required: false + schema: + type: integer + minimum: 0 + - name: orderBy + in: query + description: order by field. e.g. created, origin. + required: false + schema: + type: string + enum: + - title + - message + - created + - topic + - origin + - name: orderByDirec + in: query + description: order ascending or descending + required: false + schema: + type: string + enum: + - asc + - desc + - name: containsText + in: query + description: Filter notifications whose either title or message contains the provided string + required: false + schema: + type: string + - name: createdAfter + in: query + description: Only notifications created after this timestamp will be included + required: false + schema: + type: string + format: date-time + - name: messageScope + in: query + description: retrieve either logged-in user messages, system messages or both + required: false + schema: + type: string + enum: + - all + - user + - system + - name: read + in: query + description: Notifications read or not + required: false + schema: + type: boolean + responses: + '200': + description: Successful operation + content: + application/json: + schema: + $ref: '#/components/schemas/Notifications' + /notifications/count: + get: + tags: + - notifications + summary: Get notifications count + description: Gets notifications count + operationId: getNotificationsCount + parameters: + - name: containsText + in: query + description: Filter notifications whose either title or message contains the provided string + required: false + schema: + type: string + - name: createdAfter + in: query + description: Only notifications created after this timestamp will be included + required: false + schema: + type: string + format: date-time + - name: messageScope + in: query + description: retrieve either logged-in user messages, system messages or both + required: false + schema: + type: string + enum: + - all + - user + - system + - name: read + in: query + description: Notifications read or not + required: false + schema: + type: boolean + responses: + '200': + description: Successful operation + content: + application/json: + schema: + type: object + properties: + count: + type: number + required: ['count'] + /notifications/read: + put: + tags: + - notifications + summary: Set notification as read/unread + description: Set notification as read/unread + operationId: setRead + parameters: + - name: messageId + in: query + description: The message ID + required: true + schema: + type: string + - name: read + in: query + description: read/unread + required: true + schema: + type: boolean + responses: + '200': + description: Successful operation + components: + schemas: + Notifications: + type: array + items: + $ref: '#/components/schemas/Notification' + Notification: + properties: + id: + type: string + created: + type: string + format: date-time + readByUser: + type: boolean + isSystem: + type: boolean + origin: + type: string + title: + type: string + message: + type: string + topic: + type: string + actions: + type: array + items: + $ref: '#/components/schemas/Action' + required: [id, created, readByUser, isSystem, origin, title, actions] + Action: + properties: + id: + type: string + title: + type: string + url: + type: string + required: [id, title, url] + CreateBody: + properties: + origin: + type: string + title: + type: string + message: + type: string + actions: + type: array + items: + type: object + properties: + title: + type: string + url: + type: string + required: [title, url] + topic: + type: string + targetUsers: + type: array + items: + type: string + targetGroups: + type: array + items: + type: string + required: [origin, title] + ocp-project-openapi.yaml: | + openapi: 3.0.1 + info: + title: Kubernetes + version: v1.28.9+8ca71f7 + servers: + - url: / + security: + - BearerToken: [] + paths: + /apis/project.openshift.io/v1/projects: + post: + tags: + - projectOpenshiftIo_v1 + description: create a Project + operationId: createProjectOpenshiftIoV1Project + parameters: + - name: pretty + in: query + description: "If 'true', then the output is pretty printed." + schema: + type: string + - name: dryRun + in: query + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + schema: + type: string + - name: fieldManager + in: query + description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + schema: + type: string + - name: fieldValidation + in: query + description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + "201": + description: Created + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + "202": + description: Accepted + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + "401": + description: Unauthorized + content: {} + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: project.openshift.io + kind: Project + version: v1 + x-codegen-request-body-name: body + security: + - BearerToken: [] + /apis/project.openshift.io/v1/projects/{name}: + get: + tags: + - projectOpenshiftIo_v1 + description: read the specified Project + operationId: readProjectOpenshiftIoV1Project + parameters: + - name: name + in: path + description: name of the Project + required: true + schema: + type: string + - name: pretty + in: query + description: "If 'true', then the output is pretty printed." + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.Project' + "401": + description: Unauthorized + content: {} + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: project.openshift.io + kind: Project + version: v1 + security: + - BearerToken: [] + components: + schemas: + io.k8s.api.core.v1.NamespaceCondition: + required: + - status + - type + type: object + properties: + lastTransitionTime: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time' + message: + type: string + reason: + type: string + status: + type: string + description: "Status of the condition, one of True, False, Unknown." + type: + type: string + description: Type of namespace controller condition. + description: NamespaceCondition contains details about state of namespace. + io.k8s.apimachinery.pkg.apis.meta.v1.Status: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + code: + type: integer + description: "Suggested HTTP return code for this status, 0 if not set." + format: int32 + details: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + message: + type: string + description: A human-readable description of the status of this operation. + metadata: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta' + reason: + type: string + description: A machine-readable description of why this operation is in + the "Failure" status. If this value is empty there is no information available. + A Reason clarifies an HTTP status code but does not override it. + status: + type: string + description: "Status of the operation. One of: \"Success\" or \"Failure\"\ + . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + description: Status is a return value for calls that don't return other objects. + x-kubernetes-group-version-kind: + - group: "" + kind: Status + version: v1 + - group: resource.k8s.io + kind: Status + version: v1alpha2 + io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause: + type: object + properties: + field: + type: string + description: |- + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. + + Examples: + "name" - the field "name" on the current resource + "items[0].name" - the field "name" on the first array entry in "items" + message: + type: string + description: A human-readable description of the cause of the error. This + field may be presented as-is to a reader. + reason: + type: string + description: A machine-readable description of the cause of the error. If + this value is empty there is no information available. + description: "StatusCause provides more information about an api.Status failure,\ + \ including cases when multiple errors are encountered." + io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails: + type: object + properties: + causes: + type: array + description: The Causes array includes more details associated with the + StatusReason failure. Not all StatusReasons may provide detailed causes. + items: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause' + group: + type: string + description: The group attribute of the resource associated with the status + StatusReason. + kind: + type: string + description: "The kind attribute of the resource associated with the status\ + \ StatusReason. On some operations may differ from the requested resource\ + \ Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + name: + type: string + description: The name attribute of the resource associated with the status + StatusReason (when there is a single name which can be described). + retryAfterSeconds: + type: integer + description: "If specified, the time in seconds before the operation should\ + \ be retried. Some errors may indicate the client must take an alternate\ + \ action - for those errors this field may indicate how long to wait before\ + \ taking the alternate action." + format: int32 + uid: + type: string + description: "UID of the resource. (when there is a single resource which\ + \ can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids" + description: "StatusDetails is a set of additional properties that MAY be set\ + \ by the server to provide additional information about a response. The Reason\ + \ field of a Status object defines what attributes will be set. Clients must\ + \ ignore fields that do not match the defined type of each attribute, and\ + \ should assume that any attribute may be empty, invalid, or under defined." + io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta: + type: object + properties: + continue: + type: string + description: "continue may be set if the user set a limit on the number\ + \ of items returned, and indicates that the server has more data available.\ + \ The value is opaque and may be used to issue another request to the\ + \ endpoint that served this list to retrieve the next set of available\ + \ objects. Continuing a consistent list may not be possible if the server\ + \ configuration has changed or more than a few minutes have passed. The\ + \ resourceVersion field returned when using this continue value will be\ + \ identical to the value in the first response, unless you have received\ + \ this token from an error message." + remainingItemCount: + type: integer + description: "remainingItemCount is the number of subsequent items in the\ + \ list which are not included in this list response. If the list request\ + \ contained label or field selectors, then the number of remaining items\ + \ is unknown and the field will be left unset and omitted during serialization.\ + \ If the list is complete (either because it is not chunking or because\ + \ this is the last chunk), then there are no more remaining items and\ + \ this field will be left unset and omitted during serialization. Servers\ + \ older than v1.15 do not set this field. The intended use of the remainingItemCount\ + \ is *estimating* the size of a collection. Clients should not rely on\ + \ the remainingItemCount to be set or to be exact." + format: int64 + resourceVersion: + type: string + description: "String that identifies the server's internal version of this\ + \ object that can be used by clients to determine when objects have changed.\ + \ Value must be treated as opaque by clients and passed unmodified back\ + \ to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency" + selfLink: + type: string + description: "Deprecated: selfLink is a legacy read-only field that is no\ + \ longer populated by the system." + description: "ListMeta describes metadata that synthetic resources must have,\ + \ including lists and various status objects. A resource may have only one\ + \ of {ObjectMeta, ListMeta}." + com.github.openshift.api.project.v1.ProjectRequest: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + description: + type: string + description: Description is the description to apply to a project + displayName: + type: string + description: DisplayName is the display name to apply to a project + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta' + description: |- + ProjectRequest is the set of options necessary to fully qualify a project request + + Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer). + x-kubernetes-group-version-kind: + - group: "" + kind: ProjectRequest + version: v1 + - group: project.openshift.io + kind: ProjectRequest + version: v1 + com.github.openshift.api.project.v1.Project: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.ProjectSpec' + status: + $ref: '#/components/schemas/com.github.openshift.api.project.v1.ProjectStatus' + description: |- + Projects are the unit of isolation and collaboration in OpenShift. A project has one or more members, a quota on the resources that the project may consume, and the security controls on the resources in the project. Within a project, members may have different roles - project administrators can set membership, editors can create and manage the resources, and viewers can see but not access running containers. In a normal cluster project administrators are not able to alter their quotas - that is restricted to cluster administrators. + + Listing or watching projects will return only projects the user has the reader role on. + + An OpenShift project is an alternative representation of a Kubernetes namespace. Projects are exposed as editable to end users while namespaces are not. Direct creation of a project is typically restricted to administrators, while end users should use the requestproject resource. + + Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer). + x-kubernetes-group-version-kind: + - group: "" + kind: Project + version: v1 + - group: project.openshift.io + kind: Project + version: v1 + com.github.openshift.api.project.v1.ProjectSpec: + type: object + properties: + finalizers: + type: array + description: Finalizers is an opaque list of values that must be empty to + permanently remove object from storage + items: + type: string + description: ProjectSpec describes the attributes on a Project + com.github.openshift.api.project.v1.ProjectStatus: + type: object + properties: + conditions: + type: array + description: Represents the latest available observations of the project + current state. + items: + $ref: '#/components/schemas/io.k8s.api.core.v1.NamespaceCondition' + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: type + phase: + type: string + description: |- + Phase is the current lifecycle phase of the project + + Possible enum values: + - `"Active"` means the namespace is available for use in the system + - `"Terminating"` means the namespace is undergoing graceful termination + enum: + - Active + - Terminating + description: ProjectStatus is information about the current status of a Project + io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta: + type: object + properties: + annotations: + type: object + additionalProperties: + type: string + description: "Annotations is an unstructured key value map stored with a\ + \ resource that may be set by external tools to store and retrieve arbitrary\ + \ metadata. They are not queryable and should be preserved when modifying\ + \ objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations" + creationTimestamp: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time' + deletionGracePeriodSeconds: + type: integer + description: Number of seconds allowed for this object to gracefully terminate + before it will be removed from the system. Only set when deletionTimestamp + is also set. May only be shortened. Read-only. + format: int64 + deletionTimestamp: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time' + finalizers: + type: array + description: "Must be empty before the object is deleted from the registry.\ + \ Each entry is an identifier for the responsible component that will\ + \ remove the entry from the list. If the deletionTimestamp of the object\ + \ is non-nil, entries in this list can only be removed. Finalizers may\ + \ be processed and removed in any order. Order is NOT enforced because\ + \ it introduces significant risk of stuck finalizers. finalizers is a\ + \ shared field, any actor with permission can reorder it. If the finalizer\ + \ list is processed in order, then this can lead to a situation in which\ + \ the component responsible for the first finalizer in the list is waiting\ + \ for a signal (field value, external system, or other) produced by a\ + \ component responsible for a finalizer later in the list, resulting in\ + \ a deadlock. Without enforced ordering finalizers are free to order amongst\ + \ themselves and are not vulnerable to ordering changes in the list." + items: + type: string + x-kubernetes-patch-strategy: merge + generateName: + type: string + description: |- + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will return a 409. + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + generation: + type: integer + description: A sequence number representing a specific generation of the + desired state. Populated by the system. Read-only. + format: int64 + labels: + type: object + additionalProperties: + type: string + description: "Map of string keys and values that can be used to organize\ + \ and categorize (scope and select) objects. May match selectors of replication\ + \ controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels" + managedFields: + type: array + description: "ManagedFields maps workflow-id and version to the set of fields\ + \ that are managed by that workflow. This is mostly for internal housekeeping,\ + \ and users typically shouldn't need to set or understand this field.\ + \ A workflow can be the user's name, a controller's name, or the name\ + \ of a specific apply path like \"ci-cd\". The set of fields is always\ + \ in the version that the workflow used when modifying the object." + items: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry' + name: + type: string + description: "Name must be unique within a namespace. Is required when creating\ + \ resources, although some resources may allow a client to request the\ + \ generation of an appropriate name automatically. Name is primarily intended\ + \ for creation idempotence and configuration definition. Cannot be updated.\ + \ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names" + namespace: + type: string + description: |- + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces + ownerReferences: + type: array + description: "List of objects depended by this object. If ALL objects in\ + \ the list have been deleted, this object will be garbage collected. If\ + \ this object is managed by a controller, then an entry in this list will\ + \ point to this controller, with the controller field set to true. There\ + \ cannot be more than one managing controller." + items: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference' + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: uid + resourceVersion: + type: string + description: |- + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + selfLink: + type: string + description: "Deprecated: selfLink is a legacy read-only field that is no\ + \ longer populated by the system." + uid: + type: string + description: |- + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids + description: "ObjectMeta is metadata that all persisted resources must have,\ + \ which includes all objects users must create." + io.k8s.apimachinery.pkg.apis.meta.v1.Time: + type: string + description: Time is a wrapper around time.Time which supports correct marshaling + to YAML and JSON. Wrappers are provided for many of the factory methods that + the time package offers. + format: date-time + io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry: + type: object + properties: + apiVersion: + type: string + description: APIVersion defines the version of this resource that this field + set applies to. The format is "group/version" just like the top-level + APIVersion field. It is necessary to track the version of a field set + because it cannot be automatically converted. + fieldsType: + type: string + description: "FieldsType is the discriminator for the different fields format\ + \ and version. There is currently only one possible value: \"FieldsV1\"" + fieldsV1: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1' + manager: + type: string + description: Manager is an identifier of the workflow managing these fields. + operation: + type: string + description: Operation is the type of operation which lead to this ManagedFieldsEntry + being created. The only valid values for this field are 'Apply' and 'Update'. + subresource: + type: string + description: "Subresource is the name of the subresource used to update\ + \ that object, or empty string if the object was updated through the main\ + \ resource. The value of this field is used to distinguish between managers,\ + \ even if they share the same name. For example, a status update will\ + \ be distinct from a regular update using the same manager name. Note\ + \ that the APIVersion field is not related to the Subresource field and\ + \ it always corresponds to the version of the main resource." + time: + $ref: '#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time' + description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group\ + \ version of the resource that the fieldset applies to." + io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference: + required: + - apiVersion + - kind + - name + - uid + type: object + properties: + apiVersion: + type: string + description: API version of the referent. + blockOwnerDeletion: + type: boolean + description: "If true, AND if the owner has the \"foregroundDeletion\" finalizer,\ + \ then the owner cannot be deleted from the key-value store until this\ + \ reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion\ + \ for how the garbage collector interacts with this field and enforces\ + \ the foreground deletion. Defaults to false. To set this field, a user\ + \ needs \"delete\" permission of the owner, otherwise 422 (Unprocessable\ + \ Entity) will be returned." + controller: + type: boolean + description: "If true, this reference points to the managing controller." + kind: + type: string + description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + name: + type: string + description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names" + uid: + type: string + description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids" + description: "OwnerReference contains enough information to let you identify\ + \ an owning object. An owning object must be in the same namespace as the\ + \ dependent, or be cluster-scoped, so there is no namespace field." + x-kubernetes-map-type: atomic + io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1: + type: object + description: |- + FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. + + Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set. + + The exact format is defined in sigs.k8s.io/structured-merge-diff + parameters: + allowWatchBookmarks-HC2hJt-J: + name: allowWatchBookmarks + in: query + description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server will\ + \ send any BOOKMARK event during a session. If this is not a watch, this field\ + \ is ignored." + schema: + type: boolean + asFile-OcRrrLDo: + name: asFile + in: query + description: asFile determines if the binary should be created as a file within + the source rather than extracted as an archive + schema: + type: string + command-Py3eQybp: + name: command + in: query + description: Command is the remote command to execute. argv array. Not executed + within a shell. + schema: + type: string + container-1GeXxFDC: + name: container + in: query + description: The container for which to stream logs. Defaults to only container + if there is one container in the pod. + schema: + type: string + container-Rl7l_oz7: + name: container + in: query + description: cointainer for which to stream logs. Defaults to only container + if there is one container in the pod. + schema: + type: string + container-_Q-EJ3nR: + name: container + in: query + description: The container in which to execute the command. Defaults to only + container if there is only one container in the pod. + schema: + type: string + container-i5dOmRiM: + name: container + in: query + description: Container in which to execute the command. Defaults to only container + if there is only one container in the pod. + schema: + type: string + continue-QfD61s0i: + name: continue + in: query + description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + schema: + type: string + fieldManager-7c6nTn1T: + name: fieldManager + in: query + description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters long,\ + \ and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + schema: + type: string + fieldManager-Qy4HdaTW: + name: fieldManager + in: query + description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters long,\ + \ and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + schema: + type: string + fieldSelector-xIcQKXFG: + name: fieldSelector + in: query + description: A selector to restrict the list of returned objects by their fields. + Defaults to everything. + schema: + type: string + follow-9OIXh_2R: + name: follow + in: query + description: Follow the log stream of the pod. Defaults to false. + schema: + type: boolean + follow-ryc9nKX-: + name: follow + in: query + description: follow if true indicates that the build log should be streamed + until the build terminates. + schema: + type: boolean + follow-uBbRJU1P: + name: follow + in: query + description: Follow if true indicates that the build log should be streamed + until the build terminates. + schema: + type: boolean + force-tOGGb0Yi: + name: force + in: query + description: Force is going to "force" Apply requests. It means user will re-acquire + conflicting fields owned by other people. Force flag must be unset for non-apply + patch requests. + schema: + type: boolean + gracePeriodSeconds--K5HaBOS: + name: gracePeriodSeconds + in: query + description: "The duration in seconds before the object should be deleted. Value\ + \ must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type will\ + \ be used. Defaults to a per object value if not specified. zero means delete\ + \ immediately." + schema: + type: integer + insecureSkipTLSVerifyBackend-gM00jVbe: + name: insecureSkipTLSVerifyBackend + in: query + description: "insecureSkipTLSVerifyBackend indicates that the apiserver should\ + \ not confirm the validity of the serving certificate of the backend it is\ + \ connecting to. This will make the HTTPS connection between the apiserver\ + \ and the backend insecure. This means the apiserver cannot verify the log\ + \ data it is receiving came from the real kubelet. If the kubelet is configured\ + \ to verify the apiserver's TLS credentials, it does not mean the connection\ + \ to the real kubelet is vulnerable to a man in the middle attack (e.g. an\ + \ attacker could not intercept the actual log data coming from the real kubelet)." + schema: + type: boolean + labelSelector-5Zw57w4C: + name: labelSelector + in: query + description: A selector to restrict the list of returned objects by their labels. + Defaults to everything. + schema: + type: string + limit-1NfNmdNH: + name: limit + in: query + description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + schema: + type: integer + limitBytes-_hnOr0V4: + name: limitBytes + in: query + description: "limitBytes, If set, is the number of bytes to read from the server\ + \ before terminating the log output. This may not display a complete final\ + \ line of logging, and may return slightly more or slightly less than the\ + \ specified limit." + schema: + type: integer + limitBytes-zwd1RXuc: + name: limitBytes + in: query + description: "If set, the number of bytes to read from the server before terminating\ + \ the log output. This may not display a complete final line of logging, and\ + \ may return slightly more or slightly less than the specified limit." + schema: + type: integer + namespace-vgWSWtn3: + name: namespace + in: path + description: "object name and auth scope, such as for teams and projects" + required: true + schema: + type: string + nowait-4e5T_PV3: + name: nowait + in: query + description: noWait if true causes the call to return immediately even if the + build is not available yet. Otherwise the server will wait until the build + has started. + schema: + type: boolean + nowait-fRDq2lTB: + name: nowait + in: query + description: NoWait if true causes the call to return immediately even if the + deployment is not available yet. Otherwise the server will wait until the + deployment has started. + schema: + type: boolean + orphanDependents-uRB25kX5: + name: orphanDependents + in: query + description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + schema: + type: boolean + path-QCf0eosM: + name: path + in: query + description: "Path is the part of URLs that include service endpoints, suffixes,\ + \ and parameters to use for the current proxy request to service. For example,\ + \ the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.\ + \ Path is _search?q=user:kimchy." + schema: + type: string + path-oPbzgLUj: + name: path + in: query + description: Path is the URL path to use for the current proxy request to pod. + schema: + type: string + path-rFDtV0x9: + name: path + in: query + description: Path is the URL path to use for the current proxy request to node. + schema: + type: string + path-z6Ciiujn: + name: path + in: path + description: path to the resource + required: true + schema: + type: string + ports-91KROJmm: + name: ports + in: query + description: List of ports to forward Required when using WebSockets + schema: + type: integer + pretty-nN7o5FEq: + name: pretty + in: query + description: "If 'true', then the output is pretty printed." + schema: + type: string + previous-1jxDPu3y: + name: previous + in: query + description: Return previous terminated container logs. Defaults to false. + schema: + type: boolean + previous-VzhNnb31: + name: previous + in: query + description: Return previous deployment logs. Defaults to false. + schema: + type: boolean + previous-pXJ3IzH4: + name: previous + in: query + description: previous returns previous build logs. Defaults to false. + schema: + type: boolean + propagationPolicy-6jk3prlO: + name: propagationPolicy + in: query + description: "Whether and how garbage collection will be performed. Either this\ + \ field or OrphanDependents may be set, but not both. The default policy is\ + \ decided by the existing finalizer set in the metadata.finalizers and the\ + \ resource-specific default policy. Acceptable values are: 'Orphan' - orphan\ + \ the dependents; 'Background' - allow the garbage collector to delete the\ + \ dependents in the background; 'Foreground' - a cascading policy that deletes\ + \ all dependents in the foreground." + schema: + type: string + resourceVersion-5WAnf1kx: + name: resourceVersion + in: query + description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + schema: + type: string + resourceVersionMatch-t8XhRHeC: + name: resourceVersionMatch + in: query + description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + schema: + type: string + revision.authorEmail-AGO6Wd6i: + name: revision.authorEmail + in: query + description: revision.authorEmail of the source control user + schema: + type: string + revision.authorName-2Gfs6bIw: + name: revision.authorName + in: query + description: revision.authorName of the source control user + schema: + type: string + revision.commit-fuCVC6aw: + name: revision.commit + in: query + description: revision.commit is the value identifying a specific commit + schema: + type: string + revision.committerEmail-5mz1H_nc: + name: revision.committerEmail + in: query + description: revision.committerEmail of the source control user + schema: + type: string + revision.committerName-Pr6tr88U: + name: revision.committerName + in: query + description: revision.committerName of the source control user + schema: + type: string + revision.message-cz6CLAnc: + name: revision.message + in: query + description: revision.message is the description of a specific commit + schema: + type: string + sendInitialEvents-rLXlEK_k: + name: sendInitialEvents + in: query + description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + schema: + type: boolean + sinceSeconds-Sf7lFlCh: + name: sinceSeconds + in: query + description: "sinceSeconds is a relative time in seconds before the current\ + \ time from which to show logs. If this value precedes the time a pod was\ + \ started, only logs since the pod start will be returned. If this value is\ + \ in the future, no logs will be returned. Only one of sinceSeconds or sinceTime\ + \ may be specified." + schema: + type: integer + sinceSeconds-vE2NLdnP: + name: sinceSeconds + in: query + description: "A relative time in seconds before the current time from which\ + \ to show logs. If this value precedes the time a pod was started, only logs\ + \ since the pod start will be returned. If this value is in the future, no\ + \ logs will be returned. Only one of sinceSeconds or sinceTime may be specified." + schema: + type: integer + stderr-26jJhFUR: + name: stderr + in: query + description: Stderr if true indicates that stderr is to be redirected for the + attach call. Defaults to true. + schema: + type: boolean + stderr-W_1TNlWc: + name: stderr + in: query + description: Redirect the standard error stream of the pod for this call. + schema: + type: boolean + stdin-PSzNhyUC: + name: stdin + in: query + description: Redirect the standard input stream of the pod for this call. Defaults + to false. + schema: + type: boolean + stdin-sEFnN3IS: + name: stdin + in: query + description: "Stdin if true, redirects the standard input stream of the pod\ + \ for this call. Defaults to false." + schema: + type: boolean + stdout--EZLRwV1: + name: stdout + in: query + description: Redirect the standard output stream of the pod for this call. + schema: + type: boolean + stdout-005YMKE6: + name: stdout + in: query + description: Stdout if true indicates that stdout is to be redirected for the + attach call. Defaults to true. + schema: + type: boolean + tailLines-2fRTNzbP: + name: tailLines + in: query + description: "If set, the number of lines from the end of the logs to show.\ + \ If not specified, logs are shown from the creation of the container or sinceSeconds\ + \ or sinceTime" + schema: + type: integer + tailLines-c-mA2NFh: + name: tailLines + in: query + description: "tailLines, If set, is the number of lines from the end of the\ + \ logs to show. If not specified, logs are shown from the creation of the\ + \ container or sinceSeconds or sinceTime" + schema: + type: integer + timeoutSeconds-yvYezaOC: + name: timeoutSeconds + in: query + description: "Timeout for the list/watch call. This limits the duration of the\ + \ call, regardless of any activity or inactivity." + schema: + type: integer + timestamps-c17fW1w_: + name: timestamps + in: query + description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning\ + \ of every line of log output. Defaults to false." + schema: + type: boolean + timestamps-rluwd6z0: + name: timestamps + in: query + description: "timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at\ + \ the beginning of every line of log output. Defaults to false." + schema: + type: boolean + tty-g7MlET_l: + name: tty + in: query + description: TTY if true indicates that a tty will be allocated for the attach + call. This is passed through the container runtime so the tty is allocated + on the worker node by the container runtime. Defaults to false. + schema: + type: boolean + tty-s0flW37O: + name: tty + in: query + description: TTY if true indicates that a tty will be allocated for the exec + call. Defaults to false. + schema: + type: boolean + version-Co11t97x: + name: version + in: query + description: Version of the deployment for which to view logs. + schema: + type: integer + version-enodSG5q: + name: version + in: query + description: version of the build for which to view logs. + schema: + type: integer + watch-XNNPZGbK: + name: watch + in: query + description: "Watch for changes to the described resources and return them as\ + \ a stream of add, update, and remove notifications. Specify resourceVersion." + schema: + type: boolean + securitySchemes: + BearerToken: + type: http + scheme: bearer + description: Bearer Token authentication + x-original-swagger-version: "2.0" +kind: ConfigMap +metadata: + creationTimestamp: null + name: 02-create-ocp-project-resources diff --git a/charts/create-ocp-project/templates/03-configmap_create-ocp-project-props.yaml b/charts/create-ocp-project/templates/03-configmap_create-ocp-project-props.yaml new file mode 100755 index 00000000..808d9a69 --- /dev/null +++ b/charts/create-ocp-project/templates/03-configmap_create-ocp-project-props.yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +data: + application.properties: | + quarkus.rest-client.notifications_openapi_yaml.url=${BACKSTAGE_NOTIFICATIONS_URL:http://backstage-backstage.rhdh-operator/api/notifications} + + jira_url=${JIRA_URL} + quarkus.rest-client.jira_openapi_yaml.url=${JIRA_URL} + quarkus.openapi-generator.jira_openapi_yaml.auth.basicAuth.username=${JIRA_USERNAME:-} + quarkus.openapi-generator.jira_openapi_yaml.auth.basicAuth.password=${JIRA_API_TOKEN:-} + + # OpenShift API Server + quarkus.rest-client.ocp_project_openapi_yaml.url=${OCP_API_SERVER_URL:-} + quarkus.openapi-generator.ocp_project_openapi_yaml.auth.BearerToken.bearer-token=${OCP_API_SERVER_TOKEN:-} + quarkus.tls.trust-all=true + quarkus.kubernetes-client.trust-certs=true + + quarkus.flyway.migrate-at-start=true + quarkus.flyway.migrate-at-start=true +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app: create-ocp-project + sonataflow.org/workflow-app: create-ocp-project + name: create-ocp-project-props