@@ -19,13 +19,14 @@ Feel free to say "No" and inspect the script if you prefer setting up resources
19
19
20
20
echo "
21
21
## You will need following tools installed:
22
- |Name |Required |More info |
23
- |----------------|---------------------|---------------------------------------------------|
24
- |Charm Gum |Yes |'https://github.com/charmbracelet/gum#installation'|
25
- |kubectl |Yes |'https://kubernetes.io/docs/tasks/tools/#kubectl' |
26
- |helm |Yes |'https://helm.sh/docs/intro/install/' |
27
- |jq |Yes |'https://stedolan.github.io/jq/download' |
28
- |yq |Yes |'https://github.com/mikefarah/yq#install' |
22
+ |Name |More info |
23
+ |----------------|---------------------------------------------------|
24
+ |Charm Gum |'https://github.com/charmbracelet/gum#installation'|
25
+ |kubectl |'https://kubernetes.io/docs/tasks/tools/#kubectl' |
26
+ |helm |'https://helm.sh/docs/intro/install/' |
27
+ |jq |'https://stedolan.github.io/jq/download' |
28
+ |yq |'https://github.com/mikefarah/yq#install' |
29
+ |Python |'https://www.python.org/downloads' |
29
30
" | gum format
30
31
31
32
gum confirm "
@@ -72,10 +73,44 @@ kubectl apply --filename argocd/project.yaml
72
73
73
74
yq --inplace " .spec.source.repoURL = \" https://github.com/$GITHUB_ORG /idp-demo\" " argocd/apps.yaml
74
75
75
- yq --inplace " .spec.source.repoURL = \" https://github.com/${GITHUB_ORG} /idp-demo.git\" " argocd/cluster-template.yaml
76
-
77
76
kubectl apply --filename argocd/apps.yaml
78
77
78
+ # #################################
79
+ # Schema Management (SchemaHero) #
80
+ # #################################
81
+
82
+ cp argocd/schema-hero.yaml infra/.
83
+
84
+ git add .
85
+
86
+ git commit -m " Add SchemaHero"
87
+
88
+ git push
89
+
90
+ gum spin --spinner line --title " Waiting for SchemaHero to synchronize..." -- sleep 180
91
+
92
+ # ########################################
93
+ # Secrets Management (External Secrets) #
94
+ # ########################################
95
+
96
+ cp argocd/external-secrets.yaml infra/.
97
+
98
+ git add .
99
+
100
+ git commit -m " External Secrets"
101
+
102
+ git push
103
+
104
+ gum spin --spinner line --title " Waiting for External Secrets to synchronize..." -- sleep 180
105
+
106
+ cp eso/secret-store-$HYPERSCALER .yaml infra/.
107
+
108
+ git add .
109
+
110
+ git commit -m " External Secrets Store"
111
+
112
+ git push
113
+
79
114
# #######
80
115
# Port #
81
116
# #######
@@ -92,6 +127,45 @@ cat port/cluster-delete-action.json \
92
127
93
128
mv port/cluster-delete-action.json.tmp port/cluster-delete-action.json
94
129
130
+ python -m pip install requests
131
+
132
+ echo '
133
+ Execute `cat port/environment-blueprint.json`, copy the output,
134
+ and use it to create a new blueprint in https://app.getport.io.'
135
+
136
+ gum input --placeholder "
137
+ Press the enter key to continue."
138
+
139
+ echo '
140
+ Execute `cat port/backend-app-blueprint.json`, copy the output,
141
+ and use it to create a new blueprint in https://app.getport.io.'
142
+
143
+ gum input --placeholder "
144
+ Press the enter key to continue."
145
+
146
+ PORT_CLIENT_ID=$( gum input --placeholder " Please enter Port client ID." --password)
147
+
148
+ PORT_CLIENT_SECRET=$( gum input --placeholder " Please enter Port client secret." --password)
149
+
150
+ cat argocd/port.yaml \
151
+ | sed -e " s@CLIENT_ID@$PORT_CLIENT_ID @g" \
152
+ | sed -e " s@CLIENT_SECRET@$PORT_CLIENT_SECRET @g" \
153
+ | tee infra/port.yaml
154
+
155
+ git add .
156
+
157
+ git commit -m " Port"
158
+
159
+ git push
160
+
161
+ echo '
162
+ Execute `cat port/backend-app-action.json`, copy the output,
163
+ and use it to create a action inside the `Backend App`
164
+ blueprint in https://app.getport.io.'
165
+
166
+ gum input --placeholder "
167
+ Press the enter key to continue."
168
+
95
169
# #######
96
170
# Repo #
97
171
# #######
0 commit comments