mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
refactor(app): details widget migration [EE-5352] (#8886)
This commit is contained in:
parent
fdd79cece8
commit
af77e33993
57 changed files with 2046 additions and 1079 deletions
|
@ -2,9 +2,25 @@ import { AppKind, DeploymentType } from './types';
|
|||
|
||||
// Portainer specific labels
|
||||
export const appStackNameLabel = 'io.portainer.kubernetes.application.stack';
|
||||
export const appStackIdLabel = 'io.portainer.kubernetes.application.stackid';
|
||||
export const appOwnerLabel = 'io.portainer.kubernetes.application.owner';
|
||||
export const appNoteAnnotation = 'io.portainer.kubernetes.application.note';
|
||||
export const appDeployMethodLabel = 'io.portainer.kubernetes.application.kind';
|
||||
export const defaultDeploymentUniqueLabel = 'pod-template-hash';
|
||||
|
||||
export const appRevisionAnnotation = 'deployment.kubernetes.io/revision';
|
||||
|
||||
// unchangedAnnotationKeysForRollbackPatch lists the annotations that should be preserved from the deployment and not
|
||||
// copied from the replicaset when rolling a deployment back
|
||||
export const unchangedAnnotationKeysForRollbackPatch = [
|
||||
'kubectl.kubernetes.io/last-applied-configuration',
|
||||
appRevisionAnnotation,
|
||||
'deployment.kubernetes.io/revision-history',
|
||||
'deployment.kubernetes.io/desired-replicas',
|
||||
'deployment.kubernetes.io/max-replicas',
|
||||
'deprecated.deployment.rollback.to',
|
||||
'deprecated.daemonset.template.generation',
|
||||
];
|
||||
|
||||
export const appKindToDeploymentTypeMap: Record<
|
||||
AppKind,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue