Skip to content

Commit 5b0c3af

Browse files
committed
secrets: application -> workload
we've forgotten jobs... again
1 parent 7246c70 commit 5b0c3af

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/routes/team/[team]/[env]/secret/[secret]/+page.svelte

+13-12
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
let changes: operation[] = [];
3434
let deleteSecretOpen = false;
3535
36-
const applicationManifest = (secretName: string) => `spec:
36+
const workloadManifest = (secretName: string) => `spec:
3737
envFrom:
3838
- secret: ${secretName}`;
3939
@@ -230,41 +230,42 @@
230230
<Card columns={4} rows={1}>
231231
<h4>
232232
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 />
235235
<br />
236-
This section lists all applications that use this secret.
236+
This section lists all workloads that use this secret.
237237
</HelpText>
238238
</h4>
239+
<h5>Applications</h5>
239240
{#if secret.apps.length > 0}
240241
<ul>
241242
{#each secret.apps as app}
242243
<li><a href="/team/{team}/{env}/app/{app.name}">{app.name}</a></li>
243244
{/each}
244245
</ul>
245246
{: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>
247248
{/if}
248249
</Card>
249250

250251
<Card columns={4} rows={1}>
251252
<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 />
256257
<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
258259
as environment variables.
259260
</HelpText>
260261
</h4>
261-
<pre class="manifest">{applicationManifest(secretName)}</pre>
262+
<pre class="manifest">{workloadManifest(secretName)}</pre>
262263
<Tooltip content="Copy manifest to clipboard">
263264
<CopyButton
264265
text="Copy manifest"
265266
activeText="Manifest copied"
266267
variant="action"
267-
copyText={applicationManifest(secretName)}
268+
copyText={workloadManifest(secretName)}
268269
></CopyButton>
269270
</Tooltip>
270271
</Card>

0 commit comments

Comments
 (0)