mirror of
https://github.com/openshift/community.okd.git
synced 2026-07-29 10:54:31 +00:00
Add openshift_process module (#44)
* Initial pass at openshift_process module. Render-only * fix sanity test * Add ability to create/delete resources rendered by template * fix sanity tests * add more tests and fix .env parser * Add more tests * Make multiline parsing work properly * Add test for creating templates * Template APIs require namespace to be provided whether or not the template exists * add docs * Update plugins/modules/openshift_process.py Co-authored-by: Timothy Appnel <tima@ansible.com> Co-authored-by: Timothy Appnel <tima@ansible.com>
This commit is contained in:
committed by
GitHub
parent
308235e032
commit
74ac82e76d
34
molecule/default/files/simple-template.yaml
Normal file
34
molecule/default/files/simple-template.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
apiVersion: template.openshift.io/v1
|
||||
kind: Template
|
||||
labels:
|
||||
template: simple-example-test
|
||||
message: |-
|
||||
The following configmaps have been created in your project: ${NAME}.
|
||||
metadata:
|
||||
annotations:
|
||||
description: A super basic template for testing
|
||||
openshift.io/display-name: Super basic template
|
||||
openshift.io/provider-display-name: Red Hat, Inc.
|
||||
tags: quickstart,examples
|
||||
name: simple-example
|
||||
objects:
|
||||
- apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
annotations:
|
||||
description: Big example
|
||||
name: ${NAME}
|
||||
data:
|
||||
content: "${CONTENT}"
|
||||
parameters:
|
||||
- description: The name assigned to the ConfigMap
|
||||
displayName: Name
|
||||
name: NAME
|
||||
required: true
|
||||
value: example
|
||||
- description: The value for the content key of the configmap
|
||||
displayName: Content
|
||||
name: CONTENT
|
||||
required: true
|
||||
value: ''
|
||||
Reference in New Issue
Block a user