|
33 | 33 | let changes: operation[] = [];
|
34 | 34 | let deleteSecretOpen = false;
|
35 | 35 |
|
36 |
| - const applicationManifest = (secretName: string) => `spec: |
| 36 | + const workloadManifest = (secretName: string) => `spec: |
37 | 37 | envFrom:
|
38 | 38 | - secret: ${secretName}`;
|
39 | 39 |
|
|
230 | 230 | <Card columns={4} rows={1}>
|
231 | 231 | <h4>
|
232 | 232 | Used by
|
233 |
| - <HelpText title="List of applications using this secret" placement="bottom"> |
234 |
| - A secret can be used by multiple applications.<br /> |
| 233 | + <HelpText title="List of workloads using this secret" placement="bottom"> |
| 234 | + A secret can be used by multiple workloads.<br /> |
235 | 235 | <br />
|
236 |
| - This section lists all applications that use this secret. |
| 236 | + This section lists all workloads that use this secret. |
237 | 237 | </HelpText>
|
238 | 238 | </h4>
|
| 239 | + <h5>Applications</h5> |
239 | 240 | {#if secret.apps.length > 0}
|
240 | 241 | <ul>
|
241 | 242 | {#each secret.apps as app}
|
242 | 243 | <li><a href="/team/{team}/{env}/app/{app.name}">{app.name}</a></li>
|
243 | 244 | {/each}
|
244 | 245 | </ul>
|
245 | 246 | {:else}
|
246 |
| - <Alert size="small" variant="info">Secret is not in use by any applications.</Alert> |
| 247 | + <Alert size="small" variant="info">Secret is not in use by any workloads.</Alert> |
247 | 248 | {/if}
|
248 | 249 | </Card>
|
249 | 250 |
|
250 | 251 | <Card columns={4} rows={1}>
|
251 | 252 | <h4>
|
252 |
| - Use secret in application |
253 |
| - <HelpText title="How to use this secret in an application" placement="bottom"> |
254 |
| - To use this secret in your application, you will need to reference it in your |
255 |
| - application's manifest.<br /> |
| 253 | + Use secret in workload |
| 254 | + <HelpText title="How to use this secret in a workload" placement="bottom"> |
| 255 | + To use this secret in your workload, you will need to reference it in your |
| 256 | + workload's manifest.<br /> |
256 | 257 | <br />
|
257 |
| - The snippet below injects the secret into your application. Each key-value pair is then available |
| 258 | + The snippet below injects the secret into your workload. Each key-value pair is then available |
258 | 259 | as environment variables.
|
259 | 260 | </HelpText>
|
260 | 261 | </h4>
|
261 |
| - <pre class="manifest">{applicationManifest(secretName)}</pre> |
| 262 | + <pre class="manifest">{workloadManifest(secretName)}</pre> |
262 | 263 | <Tooltip content="Copy manifest to clipboard">
|
263 | 264 | <CopyButton
|
264 | 265 | text="Copy manifest"
|
265 | 266 | activeText="Manifest copied"
|
266 | 267 | variant="action"
|
267 |
| - copyText={applicationManifest(secretName)} |
| 268 | + copyText={workloadManifest(secretName)} |
268 | 269 | ></CopyButton>
|
269 | 270 | </Tooltip>
|
270 | 271 | </Card>
|
|
0 commit comments