mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(secrets): allow edit sa token, refactor (#7732)
This commit is contained in:
parent
cb79dc18f8
commit
a1a88eb5e4
12 changed files with 78 additions and 78 deletions
|
@ -1,4 +1,4 @@
|
|||
import { KubernetesConfigurationKinds, KubernetesSecretTypes } from './models';
|
||||
import { KubernetesConfigurationKinds, KubernetesSecretTypeOptions } from './models';
|
||||
|
||||
/**
|
||||
* KubernetesConfigurationFormValues Model
|
||||
|
@ -13,7 +13,7 @@ const _KubernetesConfigurationFormValues = Object.freeze({
|
|||
DataYaml: '',
|
||||
IsSimple: true,
|
||||
ServiceAccountName: '',
|
||||
Type: KubernetesSecretTypes.OPAQUE,
|
||||
Type: KubernetesSecretTypeOptions.OPAQUE.value,
|
||||
});
|
||||
|
||||
export class KubernetesConfigurationFormValues {
|
||||
|
|
|
@ -28,7 +28,7 @@ export const KubernetesConfigurationKinds = Object.freeze({
|
|||
SECRET: 2,
|
||||
});
|
||||
|
||||
export const KubernetesSecretTypes = Object.freeze({
|
||||
export const KubernetesSecretTypeOptions = Object.freeze({
|
||||
OPAQUE: { name: 'Opaque', value: 'Opaque' },
|
||||
SERVICEACCOUNTTOKEN: { name: 'Service account token', value: 'kubernetes.io/service-account-token' },
|
||||
DOCKERCFG: { name: 'Dockercfg', value: 'kubernetes.io/dockercfg' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue