You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/secrets/create-edit/SecretCreateEditPage.tsx
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -239,7 +239,7 @@ export default function SecretCreateEditPage({
239
239
{sealedSecretName&&isImmutable&&(
240
240
<InformationBanner
241
241
sx={{my: '1rem'}}
242
-
message='This secret is marked as immutable and therefore values cannot be changed, only deleted.'
242
+
message='This secret is marked as immutable and therefore the Secret data cannot be modified, only deleted.'
243
243
/>
244
244
)}
245
245
<FormProvider{...methods}>
@@ -263,7 +263,7 @@ export default function SecretCreateEditPage({
263
263
error={!!errors.type}
264
264
helperText={
265
265
errors.type?.message?.toString()||
266
-
'Kubernetes offers different types of secrets, please see: https://kubernetes.io/docs/concepts/configuration/secret/ for which secret type fits your use case best.'
266
+
'Select the Secret type for the appropriate handling of the Secret data.'
267
267
}
268
268
{...register('type')}
269
269
value={watch('type')||'kubernetes.io/opaque'}
@@ -280,8 +280,8 @@ export default function SecretCreateEditPage({
? 'You are about to override secret values, your changes will go into effect once you click the "Save Changes" button.'
284
-
: 'You can add new values to override existing values, but be aware that applications using this token might need to be adapted.'
283
+
? 'You are about to change secret data. Changes will become active after clicking the "Save Changes" button.'
284
+
: 'You can add new or override existing secret data.'
285
285
}
286
286
/>
287
287
)}
@@ -299,15 +299,15 @@ export default function SecretCreateEditPage({
299
299
name='immutable'
300
300
control={control}
301
301
label='Immutable'
302
-
explainertext='If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).'
302
+
explainertext='If enabled, the Secret data cannot be updated after creation.'
303
303
disabled={sealedSecretName&&isImmutable}
304
304
/>
305
305
</Section>
306
306
<AdvancedSettings>
307
307
<Sectiontitle='Metadata'>
308
308
<KeyValue
309
309
title='Labels'
310
-
subTitle='Labels let you categorize and select objects. (e.g. env = production, tier = backend) '
310
+
subTitle='Add labels to specify identifying attributes of the Secret.'
311
311
name='metadata.labels'
312
312
keyLabel='key'
313
313
valueLabel='value'
@@ -320,7 +320,7 @@ export default function SecretCreateEditPage({
320
320
<Divider/>
321
321
<KeyValue
322
322
title='Annotations'
323
-
subTitle='Not used for selection like labels, but rather to describe (e.g. createdBy, expiryTimestamp)'
323
+
subTitle='Add annotations to store custom metadata about the Secret.'
324
324
name='metadata.annotations'
325
325
keyLabel='key'
326
326
valueLabel='value'
@@ -333,9 +333,7 @@ export default function SecretCreateEditPage({
333
333
<Divider/>
334
334
<KeyValue
335
335
title='Finalizers'
336
-
subTitle='A list of “blockers” that must be removed before Kubernetes can remove the Secret. This is very important, for example if you remove a secret that holds information for a TLS certificate
337
-
you first want to revoke said certificate before removing the secret, A finalizer like "acme.myorg.com/certificate-cleanup" will make sure to first revoke the certificate before removing the
338
-
secret'
336
+
subTitle='Add finalizers to specify conditions that need to be met before a Secret can be marked for deletion.'
subTitle='A Kubernetes Opaque Secret is simply the "generic" secret type—perfect any time you need to stash arbitrary key-value data that doesn’t fit one of the built‐in types'
33
+
subTitle='Add arbitrary key-value data.'
34
34
name={dataPath}
35
35
keyLabel='Key'
36
36
valueLabel='Value'
@@ -45,13 +45,64 @@ export function SecretTypeFields({
45
45
/>
46
46
)
47
47
case'kubernetes.io/dockercfg':
48
+
return(
49
+
<KeyValue
50
+
title={title}
51
+
subTitle='Add contents from a serialized ~/.dockercfg file.'
52
+
name={dataPath}
53
+
keyDisabled
54
+
keyLabel='Key'
55
+
valueLabel='Value'
56
+
showLabel={false}
57
+
compressed
58
+
error={error}
59
+
helperText={helperText}
60
+
isEncrypted={isEncrypted}
61
+
isTextArea
62
+
{...disabled}
63
+
/>
64
+
)
48
65
case'kubernetes.io/dockerconfigjson':
66
+
return(
67
+
<KeyValue
68
+
title={title}
69
+
subTitle='Add contents from a serialized ~/.docker/config.json file.'
70
+
name={dataPath}
71
+
keyDisabled
72
+
keyLabel='Key'
73
+
valueLabel='Value'
74
+
showLabel={false}
75
+
compressed
76
+
error={error}
77
+
helperText={helperText}
78
+
isEncrypted={isEncrypted}
79
+
isTextArea
80
+
{...disabled}
81
+
/>
82
+
)
49
83
case'kubernetes.io/ssh-auth':
84
+
return(
85
+
<KeyValue
86
+
title={title}
87
+
subTitle='Add credentials for SSH authentication.'
88
+
name={dataPath}
89
+
keyDisabled
90
+
keyLabel='Key'
91
+
valueLabel='Value'
92
+
showLabel={false}
93
+
compressed
94
+
error={error}
95
+
helperText={helperText}
96
+
isEncrypted={isEncrypted}
97
+
isTextArea
98
+
{...disabled}
99
+
/>
100
+
)
50
101
case'kubernetes.io/tls':
51
102
return(
52
103
<KeyValue
53
104
title={title}
54
-
subTitle={`Enter key-value pairs for the "${selectedType}" secret type`}
105
+
subTitle='Add the data for a TLS client or server.'
55
106
name={dataPath}
56
107
keyDisabled
57
108
keyLabel='Key'
@@ -69,7 +120,7 @@ export function SecretTypeFields({
69
120
return(
70
121
<KeyValue
71
122
title={title}
72
-
subTitle='Basic-auth Secret exists out of a username and password'
123
+
subTitle='Add credentials (username and password) for basic authentication.'
0 commit comments