-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathportUpsertEntity.yml
58 lines (57 loc) · 1.55 KB
/
portUpsertEntity.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Create or update a Port entity
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: port.ci-upsert-entity.0.0.1
annotations:
spec:
arguments:
parameters:
entrypoint: ci-tasks
templates:
- name: ci-tasks
metadata:
annotations:
dag:
tasks:
- name: entity-upsert
templateRef:
name: port
template: entity-upsert
arguments:
parameters:
- name: PORT_CLIENT_ID
value: "YOUR_CLIENT_ID"
- name: PORT_CLIENT_SECRET
value: "YOUR_CLIENT_SECRET"
- name: BLUEPRINT_IDENTIFIER
value: "microservice"
- name: ENTITY_IDENTIFIER
value: "morp"
- name: ENTITY_TITLE
value: "Morp-Argo"
- name: ENTITY_PROPERTIES
value: |
{
"region": "eu-west-4"
}
- name: log-info
dependencies: [entity-upsert]
template: log-info
arguments:
parameters:
- name: INFO
value: "{{workflow.outputs.parameters.PORT_ENTITY_IDENTIFIER}}"
- name: log-info
inputs:
parameters:
- name: INFO
script:
image: alpine:latest
command: ["/bin/sh"]
env:
- name: INFO
value: "{{ inputs.parameters.INFO }}"
source: |
set -e
echo ${INFO}