1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

feat(secrets): allow creating secrets beyond opaque [EE-2625] (#7709)

This commit is contained in:
Ali 2022-09-23 16:35:47 +12:00 committed by GitHub
parent 3b2f0ff9eb
commit 4e20d70a99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 659 additions and 135 deletions

View file

@ -7,7 +7,7 @@ export const KubernetesPortainerConfigurationDataAnnotation = 'io.portainer.kube
const _KubernetesConfiguration = Object.freeze({
Id: 0,
Name: '',
Type: '',
Kind: '',
Namespace: '',
CreationDate: '',
ConfigurationOwner: '',
@ -23,7 +23,19 @@ export class KubernetesConfiguration {
}
}
export const KubernetesConfigurationTypes = Object.freeze({
export const KubernetesConfigurationKinds = Object.freeze({
CONFIGMAP: 1,
SECRET: 2,
});
export const KubernetesSecretTypes = 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' },
DOCKERCONFIGJSON: { name: 'Dockerconfigjson', value: 'kubernetes.io/dockerconfigjson' },
BASICAUTH: { name: 'Basic auth', value: 'kubernetes.io/basic-auth' },
SSHAUTH: { name: 'SSH auth', value: 'kubernetes.io/ssh-auth' },
TLS: { name: 'TLS', value: 'kubernetes.io/tls' },
BOOTSTRAPTOKEN: { name: 'Bootstrap token', value: 'bootstrap.kubernetes.io/token' },
CUSTOM: { name: 'Custom', value: 'Custom' },
});