@spinnaker/kubernetes 0.0.0-2025.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1663 -0
- package/LICENSE.txt +203 -0
- package/dist/help/kubernetes.help.d.ts +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +6561 -0
- package/dist/index.js.map +1 -0
- package/dist/instance/details/details.controller.d.ts +1 -0
- package/dist/instance/index.d.ts +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/infrastructure.types.d.ts +27 -0
- package/dist/kubernetes.module.d.ts +6 -0
- package/dist/loadBalancer/details/details.controller.d.ts +1 -0
- package/dist/loadBalancer/index.d.ts +1 -0
- package/dist/loadBalancer/transformer.d.ts +1 -0
- package/dist/manifest/AnnotationCustomSections.d.ts +5 -0
- package/dist/manifest/IManifestCoordinates.d.ts +5 -0
- package/dist/manifest/ManifestImageDetails.d.ts +18 -0
- package/dist/manifest/ManifestKindSearch.d.ts +13 -0
- package/dist/manifest/ManifestLabels.d.ts +15 -0
- package/dist/manifest/ManifestQos.d.ts +15 -0
- package/dist/manifest/ManifestResources.d.ts +35 -0
- package/dist/manifest/ManifestSource.d.ts +4 -0
- package/dist/manifest/annotationCustomSections.component.d.ts +3 -0
- package/dist/manifest/artifact/ManifestArtifact.d.ts +6 -0
- package/dist/manifest/delete/delete.controller.d.ts +12 -0
- package/dist/manifest/delete/deleteOptionsForm.component.d.ts +1 -0
- package/dist/manifest/editor/json/JsonEditor.d.ts +12 -0
- package/dist/manifest/editor/json/jsonEditor.component.d.ts +1 -0
- package/dist/manifest/index.d.ts +10 -0
- package/dist/manifest/manifest.service.d.ts +25 -0
- package/dist/manifest/manifestCommandBuilder.service.d.ts +30 -0
- package/dist/manifest/manifestEvents.component.d.ts +1 -0
- package/dist/manifest/manifestImageDetails.component.d.ts +1 -0
- package/dist/manifest/manifestLabels.component.d.ts +1 -0
- package/dist/manifest/manifestQos.component.d.ts +1 -0
- package/dist/manifest/manifestResources.component.d.ts +1 -0
- package/dist/manifest/rollout/RollingRestart.d.ts +9 -0
- package/dist/manifest/rollout/pause.controller.d.ts +1 -0
- package/dist/manifest/rollout/resume.controller.d.ts +1 -0
- package/dist/manifest/rollout/undo.controller.d.ts +1 -0
- package/dist/manifest/scale/ScaleSettingsForm.d.ts +10 -0
- package/dist/manifest/scale/scale.controller.d.ts +8 -0
- package/dist/manifest/scale/scaleSettingsForm.component.d.ts +1 -0
- package/dist/manifest/selector/IManifestLabelSelector.d.ts +9 -0
- package/dist/manifest/selector/IManifestSelector.d.ts +30 -0
- package/dist/manifest/selector/ManifestSelector.d.ts +46 -0
- package/dist/manifest/selector/labelEditor/LabelEditor.d.ts +15 -0
- package/dist/manifest/selector/selector.component.d.ts +1 -0
- package/dist/manifest/status/ManifestCondition.d.ts +13 -0
- package/dist/manifest/status/ManifestStatus.d.ts +8 -0
- package/dist/manifest/status/condition.component.d.ts +1 -0
- package/dist/manifest/status/status.component.d.ts +1 -0
- package/dist/manifest/traffic/ManifestTrafficService.d.ts +12 -0
- package/dist/manifest/wizard/BasicSettings.d.ts +17 -0
- package/dist/manifest/wizard/ManifestEntry.d.ts +16 -0
- package/dist/manifest/wizard/ManifestWizard.d.ts +22 -0
- package/dist/pipelines/stages/ManifestCoordinates.d.ts +31 -0
- package/dist/pipelines/stages/ManifestExecutionDetails.d.ts +69 -0
- package/dist/pipelines/stages/deleteManifest/DeleteManifestOptionsForm.d.ts +18 -0
- package/dist/pipelines/stages/deleteManifest/DeleteManifestStageConfig.d.ts +14 -0
- package/dist/pipelines/stages/deleteManifest/deleteManifestStage.d.ts +1 -0
- package/dist/pipelines/stages/deployManifest/CopyFromTemplateButton.d.ts +15 -0
- package/dist/pipelines/stages/deployManifest/DeployManifestStageConfig.d.ts +15 -0
- package/dist/pipelines/stages/deployManifest/DeployManifestStageForm.d.ts +31 -0
- package/dist/pipelines/stages/deployManifest/ManifestBindArtifactsSelector.d.ts +17 -0
- package/dist/pipelines/stages/deployManifest/ManifestCopier.d.ts +36 -0
- package/dist/pipelines/stages/deployManifest/ManifestDeploymentOptions.d.ts +34 -0
- package/dist/pipelines/stages/deployManifest/NamespaceSelector.d.ts +16 -0
- package/dist/pipelines/stages/deployManifest/deployManifest.validator.d.ts +2 -0
- package/dist/pipelines/stages/deployManifest/deployManifestStage.d.ts +1 -0
- package/dist/pipelines/stages/deployManifest/manifestStatus/DeployStatus.d.ts +23 -0
- package/dist/pipelines/stages/deployManifest/manifestStatus/DeployStatusPills.d.ts +8 -0
- package/dist/pipelines/stages/deployManifest/manifestStatus/ManifestDetailsLink.d.ts +20 -0
- package/dist/pipelines/stages/deployManifest/manifestStatus/ManifestEvents.d.ts +9 -0
- package/dist/pipelines/stages/deployManifest/manifestStatus/ManifestStatus.d.ts +8 -0
- package/dist/pipelines/stages/findArtifactsFromResource/FindArtifactsFromResourceConfig.d.ts +3 -0
- package/dist/pipelines/stages/findArtifactsFromResource/FindArtifactsFromResourceStageForm.d.ts +7 -0
- package/dist/pipelines/stages/findArtifactsFromResource/findArtifactsFromResourceStage.d.ts +1 -0
- package/dist/pipelines/stages/index.d.ts +8 -0
- package/dist/pipelines/stages/patchManifest/PatchManifestOptionsForm.d.ts +8 -0
- package/dist/pipelines/stages/patchManifest/PatchManifestStageConfig.d.ts +7 -0
- package/dist/pipelines/stages/patchManifest/PatchManifestStageForm.d.ts +21 -0
- package/dist/pipelines/stages/patchManifest/patchManifestStage.d.ts +4 -0
- package/dist/pipelines/stages/rolloutRestartManifest/RolloutRestartManifestStageConfig.d.ts +13 -0
- package/dist/pipelines/stages/rolloutRestartManifest/rolloutRestartManifestStage.d.ts +4 -0
- package/dist/pipelines/stages/runJob/KubernetesV2RunJobStageConfig.d.ts +31 -0
- package/dist/pipelines/stages/runJob/RunJobExecutionDetails.d.ts +7 -0
- package/dist/pipelines/stages/runJob/runJobStage.d.ts +1 -0
- package/dist/pipelines/stages/scaleManifest/ScaleManifestConfig.d.ts +3 -0
- package/dist/pipelines/stages/scaleManifest/ScaleManifestStageForm.d.ts +7 -0
- package/dist/pipelines/stages/scaleManifest/scaleManifestStage.d.ts +1 -0
- package/dist/pipelines/stages/traffic/ManifestTrafficStageConfig.d.ts +11 -0
- package/dist/pipelines/stages/traffic/disableManifest.stage.d.ts +1 -0
- package/dist/pipelines/stages/traffic/enableManifest.stage.d.ts +1 -0
- package/dist/pipelines/stages/undoRolloutManifest/UndoRolloutManifestConfig.d.ts +3 -0
- package/dist/pipelines/stages/undoRolloutManifest/UndoRolloutManifestStageForm.d.ts +7 -0
- package/dist/pipelines/stages/undoRolloutManifest/undoRolloutManifestStage.d.ts +1 -0
- package/dist/pipelines/stages/validators/manifestSelectorValidators.d.ts +2 -0
- package/dist/pipelines/validation/manifestSelector.validator.d.ts +8 -0
- package/dist/rawResource/component/K8sResources.d.ts +25 -0
- package/dist/rawResource/component/K8sResourcesFilters.d.ts +20 -0
- package/dist/rawResource/component/RawResourceUtils.d.ts +5 -0
- package/dist/rawResource/component/group/RawResouceGroup.d.ts +15 -0
- package/dist/rawResource/component/group/RawResource.d.ts +12 -0
- package/dist/rawResource/component/group/RawResourceDetails.d.ts +32 -0
- package/dist/rawResource/component/group/RawResourceGroups.d.ts +14 -0
- package/dist/rawResource/controller/FiltersPubSub.d.ts +12 -0
- package/dist/rawResource/index.d.ts +1 -0
- package/dist/rawResource/model/resource.d.ts +17 -0
- package/dist/rawResource/rawResource.dataSource.d.ts +2 -0
- package/dist/rawResource/rawResource.module.d.ts +1 -0
- package/dist/rawResource/rawResource.states.d.ts +6 -0
- package/dist/reactShims/index.d.ts +1 -0
- package/dist/reactShims/kubernetes.react.injector.d.ts +11 -0
- package/dist/reactShims/kubernetes.react.module.d.ts +1 -0
- package/dist/resources/ResourceDetails.d.ts +17 -0
- package/dist/resources/resources.state.d.ts +7 -0
- package/dist/rolloutStrategy/bluegreen.strategy.d.ts +2 -0
- package/dist/rolloutStrategy/highlander.strategy.d.ts +2 -0
- package/dist/rolloutStrategy/index.d.ts +1 -0
- package/dist/rolloutStrategy/none.strategy.d.ts +2 -0
- package/dist/rolloutStrategy/redblack.strategy.d.ts +2 -0
- package/dist/securityGroup/details/details.controller.d.ts +1 -0
- package/dist/securityGroup/index.d.ts +1 -0
- package/dist/securityGroup/securityGroup.reader.d.ts +4 -0
- package/dist/securityGroup/transformer.d.ts +1 -0
- package/dist/serverGroup/details/KubernetesServerGroupActions.d.ts +7 -0
- package/dist/serverGroup/details/kubernetesServerGroupDetailsGetter.d.ts +4 -0
- package/dist/serverGroup/details/sections/IKubernetesServerGroupDetailsSectionProps.d.ts +5 -0
- package/dist/serverGroup/details/sections/ServerGroupAnnotationCustomSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/ServerGroupEventsSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/ServerGroupHealthSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/ServerGroupImagesSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/ServerGroupInformationSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/ServerGroupLabelsSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/ServerGroupManifestStatusSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/ServerGroupSizeSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/index.d.ts +9 -0
- package/dist/serverGroup/details/useManifest.d.ts +8 -0
- package/dist/serverGroup/index.d.ts +3 -0
- package/dist/serverGroup/serverGroupCommandBuilder.d.ts +5 -0
- package/dist/serverGroup/serverGroupTransformer.d.ts +5 -0
- package/dist/serverGroupManager/details/ServerGroupManagerActions.d.ts +9 -0
- package/dist/serverGroupManager/details/ServerGroupManagerDetails.d.ts +7 -0
- package/dist/serverGroupManager/details/sections/IKubernetesServerGroupManagerDetailsSectionProps.d.ts +6 -0
- package/dist/serverGroupManager/details/sections/ServerGroupManagerAnnotationCustomSection.d.ts +3 -0
- package/dist/serverGroupManager/details/sections/ServerGroupManagerArtifactsSection.d.ts +3 -0
- package/dist/serverGroupManager/details/sections/ServerGroupManagerEventsSection.d.ts +3 -0
- package/dist/serverGroupManager/details/sections/ServerGroupManagerInformationSection.d.ts +3 -0
- package/dist/serverGroupManager/details/sections/ServerGroupManagerLabelsSection.d.ts +3 -0
- package/dist/serverGroupManager/details/sections/ServerGroupManagerManifestConditionSection.d.ts +3 -0
- package/dist/serverGroupManager/details/sections/ServerGroupManagerManifestStatusSection.d.ts +3 -0
- package/dist/serverGroupManager/details/sections/index.d.ts +8 -0
- package/dist/serverGroupManager/details/useKubernetesServerGroupManagerDetails.d.ts +4 -0
- package/dist/serverGroupManager/index.d.ts +1 -0
- package/dist/validation/applicationName.validator.d.ts +9 -0
- package/package.json +58 -0
- package/src/help/kubernetes.help.ts +236 -0
- package/src/index.ts +8 -0
- package/src/instance/details/details.controller.ts +186 -0
- package/src/instance/details/details.html +80 -0
- package/src/instance/index.ts +1 -0
- package/src/interfaces/index.ts +1 -0
- package/src/interfaces/infrastructure.types.ts +40 -0
- package/src/kubernetes.module.ts +155 -0
- package/src/loadBalancer/details/details.controller.ts +101 -0
- package/src/loadBalancer/details/details.html +187 -0
- package/src/loadBalancer/index.ts +1 -0
- package/src/loadBalancer/transformer.ts +60 -0
- package/src/logo/kubernetes.icon.svg +102 -0
- package/src/logo/kubernetes.logo.less +6 -0
- package/src/logo/kubernetes.logo.svg +1 -0
- package/src/manifest/AnnotationCustomSections.tsx +6 -0
- package/src/manifest/IManifestCoordinates.ts +5 -0
- package/src/manifest/ManifestImageDetails.spec.tsx +76 -0
- package/src/manifest/ManifestImageDetails.tsx +64 -0
- package/src/manifest/ManifestKindSearch.tsx +31 -0
- package/src/manifest/ManifestLabels.tsx +31 -0
- package/src/manifest/ManifestQos.tsx +68 -0
- package/src/manifest/ManifestResources.tsx +69 -0
- package/src/manifest/ManifestSource.ts +4 -0
- package/src/manifest/annotationCustomSections.component.ts +114 -0
- package/src/manifest/artifact/ManifestArtifact.tsx +16 -0
- package/src/manifest/delete/delete.controller.ts +80 -0
- package/src/manifest/delete/delete.html +42 -0
- package/src/manifest/delete/deleteOptionsForm.component.ts +52 -0
- package/src/manifest/editor/json/JsonEditor.tsx +56 -0
- package/src/manifest/editor/json/jsonEditor.component.ts +12 -0
- package/src/manifest/index.ts +10 -0
- package/src/manifest/manifest.service.ts +90 -0
- package/src/manifest/manifestCommandBuilder.service.ts +126 -0
- package/src/manifest/manifestEvents.component.ts +12 -0
- package/src/manifest/manifestImageDetails.component.ts +12 -0
- package/src/manifest/manifestLabels.component.ts +12 -0
- package/src/manifest/manifestLabels.less +3 -0
- package/src/manifest/manifestQos.component.ts +12 -0
- package/src/manifest/manifestResources.component.ts +12 -0
- package/src/manifest/rollout/RollingRestart.tsx +46 -0
- package/src/manifest/rollout/pause.controller.ts +66 -0
- package/src/manifest/rollout/pause.html +28 -0
- package/src/manifest/rollout/resume.controller.ts +66 -0
- package/src/manifest/rollout/resume.html +28 -0
- package/src/manifest/rollout/undo.controller.ts +74 -0
- package/src/manifest/rollout/undo.html +44 -0
- package/src/manifest/scale/ScaleSettingsForm.tsx +43 -0
- package/src/manifest/scale/scale.controller.ts +75 -0
- package/src/manifest/scale/scale.html +32 -0
- package/src/manifest/scale/scaleSettingsForm.component.ts +11 -0
- package/src/manifest/selector/IManifestLabelSelector.ts +19 -0
- package/src/manifest/selector/IManifestSelector.ts +64 -0
- package/src/manifest/selector/ManifestSelector.spec.tsx +414 -0
- package/src/manifest/selector/ManifestSelector.tsx +424 -0
- package/src/manifest/selector/labelEditor/LabelEditor.spec.tsx +81 -0
- package/src/manifest/selector/labelEditor/LabelEditor.tsx +126 -0
- package/src/manifest/selector/labelEditor/labelEditor.less +3 -0
- package/src/manifest/selector/selector.component.ts +17 -0
- package/src/manifest/status/ManifestCondition.tsx +32 -0
- package/src/manifest/status/ManifestStatus.tsx +39 -0
- package/src/manifest/status/condition.component.ts +12 -0
- package/src/manifest/status/status.component.ts +11 -0
- package/src/manifest/traffic/ManifestTrafficService.spec.ts +30 -0
- package/src/manifest/traffic/ManifestTrafficService.ts +67 -0
- package/src/manifest/wizard/BasicSettings.tsx +57 -0
- package/src/manifest/wizard/ManifestEntry.tsx +46 -0
- package/src/manifest/wizard/ManifestWizard.tsx +94 -0
- package/src/pipelines/stages/ManifestCoordinates.spec.tsx +90 -0
- package/src/pipelines/stages/ManifestCoordinates.tsx +128 -0
- package/src/pipelines/stages/ManifestExecutionDetails.tsx +58 -0
- package/src/pipelines/stages/deleteManifest/DeleteManifestOptionsForm.spec.tsx +85 -0
- package/src/pipelines/stages/deleteManifest/DeleteManifestOptionsForm.tsx +87 -0
- package/src/pipelines/stages/deleteManifest/DeleteManifestStageConfig.tsx +62 -0
- package/src/pipelines/stages/deleteManifest/deleteManifestOptionsForm.less +9 -0
- package/src/pipelines/stages/deleteManifest/deleteManifestStage.ts +21 -0
- package/src/pipelines/stages/deployManifest/CopyFromTemplateButton.tsx +45 -0
- package/src/pipelines/stages/deployManifest/DeployManifestStageConfig.tsx +77 -0
- package/src/pipelines/stages/deployManifest/DeployManifestStageForm.tsx +265 -0
- package/src/pipelines/stages/deployManifest/ManifestBindArtifactsSelector.tsx +69 -0
- package/src/pipelines/stages/deployManifest/ManifestCopier.spec.ts +110 -0
- package/src/pipelines/stages/deployManifest/ManifestCopier.tsx +222 -0
- package/src/pipelines/stages/deployManifest/ManifestDeploymentOptions.spec.tsx +75 -0
- package/src/pipelines/stages/deployManifest/ManifestDeploymentOptions.tsx +203 -0
- package/src/pipelines/stages/deployManifest/NamespaceSelector.tsx +40 -0
- package/src/pipelines/stages/deployManifest/deployManifest.validator.ts +38 -0
- package/src/pipelines/stages/deployManifest/deployManifestStage.ts +28 -0
- package/src/pipelines/stages/deployManifest/manifestStatus/DeployStatus.less +11 -0
- package/src/pipelines/stages/deployManifest/manifestStatus/DeployStatus.tsx +120 -0
- package/src/pipelines/stages/deployManifest/manifestStatus/DeployStatusPills.tsx +47 -0
- package/src/pipelines/stages/deployManifest/manifestStatus/ManifestDetailsLink.tsx +92 -0
- package/src/pipelines/stages/deployManifest/manifestStatus/ManifestEvents.tsx +87 -0
- package/src/pipelines/stages/deployManifest/manifestStatus/ManifestStatus.less +24 -0
- package/src/pipelines/stages/deployManifest/manifestStatus/ManifestStatus.tsx +46 -0
- package/src/pipelines/stages/findArtifactsFromResource/FindArtifactsFromResourceConfig.tsx +35 -0
- package/src/pipelines/stages/findArtifactsFromResource/FindArtifactsFromResourceStageForm.tsx +37 -0
- package/src/pipelines/stages/findArtifactsFromResource/findArtifactsFromResourceStage.ts +21 -0
- package/src/pipelines/stages/index.ts +8 -0
- package/src/pipelines/stages/patchManifest/PatchManifestOptionsForm.tsx +35 -0
- package/src/pipelines/stages/patchManifest/PatchManifestStageConfig.tsx +57 -0
- package/src/pipelines/stages/patchManifest/PatchManifestStageForm.tsx +157 -0
- package/src/pipelines/stages/patchManifest/patchManifestStage.ts +30 -0
- package/src/pipelines/stages/rolloutRestartManifest/RolloutRestartManifestStageConfig.tsx +46 -0
- package/src/pipelines/stages/rolloutRestartManifest/rolloutRestartManifestStage.ts +20 -0
- package/src/pipelines/stages/runJob/KubernetesV2RunJobStageConfig.tsx +242 -0
- package/src/pipelines/stages/runJob/RunJobExecutionDetails.tsx +67 -0
- package/src/pipelines/stages/runJob/runJobStage.ts +39 -0
- package/src/pipelines/stages/scaleManifest/ScaleManifestConfig.tsx +38 -0
- package/src/pipelines/stages/scaleManifest/ScaleManifestStageForm.tsx +46 -0
- package/src/pipelines/stages/scaleManifest/scaleManifestStage.ts +24 -0
- package/src/pipelines/stages/traffic/ManifestTrafficStageConfig.tsx +44 -0
- package/src/pipelines/stages/traffic/disableManifest.stage.ts +26 -0
- package/src/pipelines/stages/traffic/enableManifest.stage.ts +26 -0
- package/src/pipelines/stages/undoRolloutManifest/UndoRolloutManifestConfig.tsx +37 -0
- package/src/pipelines/stages/undoRolloutManifest/UndoRolloutManifestStageForm.tsx +60 -0
- package/src/pipelines/stages/undoRolloutManifest/undoRolloutManifestStage.ts +21 -0
- package/src/pipelines/stages/validators/manifestSelectorValidators.ts +43 -0
- package/src/pipelines/validation/manifestSelector.validator.ts +36 -0
- package/src/rawResource/component/K8sResources.less +9 -0
- package/src/rawResource/component/K8sResources.tsx +112 -0
- package/src/rawResource/component/K8sResourcesFilters.tsx +112 -0
- package/src/rawResource/component/RawResourceUtils.ts +19 -0
- package/src/rawResource/component/group/RawResouceGroup.tsx +41 -0
- package/src/rawResource/component/group/RawResource.less +79 -0
- package/src/rawResource/component/group/RawResource.tsx +51 -0
- package/src/rawResource/component/group/RawResourceDetails.tsx +236 -0
- package/src/rawResource/component/group/RawResourceGroups.tsx +53 -0
- package/src/rawResource/controller/FiltersPubSub.ts +35 -0
- package/src/rawResource/index.ts +1 -0
- package/src/rawResource/model/resource.ts +18 -0
- package/src/rawResource/rawResource.dataSource.ts +39 -0
- package/src/rawResource/rawResource.module.ts +8 -0
- package/src/rawResource/rawResource.states.ts +64 -0
- package/src/reactShims/index.ts +1 -0
- package/src/reactShims/kubernetes.react.injector.ts +30 -0
- package/src/reactShims/kubernetes.react.module.ts +12 -0
- package/src/resources/ResourceDetails.tsx +121 -0
- package/src/resources/resources.state.ts +45 -0
- package/src/rolloutStrategy/bluegreen.strategy.ts +7 -0
- package/src/rolloutStrategy/highlander.strategy.ts +7 -0
- package/src/rolloutStrategy/index.ts +6 -0
- package/src/rolloutStrategy/none.strategy.ts +8 -0
- package/src/rolloutStrategy/redblack.strategy.ts +7 -0
- package/src/securityGroup/details/details.controller.ts +118 -0
- package/src/securityGroup/details/details.html +91 -0
- package/src/securityGroup/index.ts +1 -0
- package/src/securityGroup/securityGroup.reader.ts +11 -0
- package/src/securityGroup/transformer.ts +19 -0
- package/src/serverGroup/details/KubernetesServerGroupActions.tsx +138 -0
- package/src/serverGroup/details/kubernetesServerGroupDetailsGetter.ts +63 -0
- package/src/serverGroup/details/sections/IKubernetesServerGroupDetailsSectionProps.ts +6 -0
- package/src/serverGroup/details/sections/ServerGroupAnnotationCustomSection.tsx +11 -0
- package/src/serverGroup/details/sections/ServerGroupEventsSection.tsx +14 -0
- package/src/serverGroup/details/sections/ServerGroupHealthSection.tsx +19 -0
- package/src/serverGroup/details/sections/ServerGroupImagesSection.tsx +14 -0
- package/src/serverGroup/details/sections/ServerGroupInformationSection.tsx +46 -0
- package/src/serverGroup/details/sections/ServerGroupLabelsSection.tsx +14 -0
- package/src/serverGroup/details/sections/ServerGroupManifestStatusSection.tsx +9 -0
- package/src/serverGroup/details/sections/ServerGroupSizeSection.tsx +35 -0
- package/src/serverGroup/details/sections/index.ts +9 -0
- package/src/serverGroup/details/useManifest.ts +42 -0
- package/src/serverGroup/index.ts +3 -0
- package/src/serverGroup/serverGroupCommandBuilder.ts +9 -0
- package/src/serverGroup/serverGroupTransformer.spec.ts +67 -0
- package/src/serverGroup/serverGroupTransformer.ts +27 -0
- package/src/serverGroupManager/details/ServerGroupManagerActions.tsx +171 -0
- package/src/serverGroupManager/details/ServerGroupManagerDetails.tsx +72 -0
- package/src/serverGroupManager/details/sections/IKubernetesServerGroupManagerDetailsSectionProps.ts +7 -0
- package/src/serverGroupManager/details/sections/ServerGroupManagerAnnotationCustomSection.tsx +12 -0
- package/src/serverGroupManager/details/sections/ServerGroupManagerArtifactsSection.tsx +18 -0
- package/src/serverGroupManager/details/sections/ServerGroupManagerEventsSection.tsx +14 -0
- package/src/serverGroupManager/details/sections/ServerGroupManagerInformationSection.tsx +51 -0
- package/src/serverGroupManager/details/sections/ServerGroupManagerLabelsSection.tsx +14 -0
- package/src/serverGroupManager/details/sections/ServerGroupManagerManifestConditionSection.tsx +21 -0
- package/src/serverGroupManager/details/sections/ServerGroupManagerManifestStatusSection.tsx +10 -0
- package/src/serverGroupManager/details/sections/index.ts +8 -0
- package/src/serverGroupManager/details/useKubernetesServerGroupManagerDetails.tsx +53 -0
- package/src/serverGroupManager/index.ts +1 -0
- package/src/validation/applicationName.validator.spec.ts +19 -0
- package/src/validation/applicationName.validator.ts +44 -0
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import { mount } from 'enzyme';
|
|
2
|
+
import { $q } from 'ngimport';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { Option } from 'react-select';
|
|
5
|
+
import Select, { Creatable } from 'react-select';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
AccountSelectInput,
|
|
9
|
+
AccountService,
|
|
10
|
+
createFakeReactSyntheticEvent,
|
|
11
|
+
noop,
|
|
12
|
+
ScopeClusterSelector,
|
|
13
|
+
} from '@spinnaker/core';
|
|
14
|
+
|
|
15
|
+
import type { IManifestLabelSelector } from './IManifestLabelSelector';
|
|
16
|
+
import { SelectorMode } from './IManifestSelector';
|
|
17
|
+
import { ManifestKindSearchService } from '../ManifestKindSearch';
|
|
18
|
+
import type { IManifestSelectorState } from './ManifestSelector';
|
|
19
|
+
import { ManifestSelector } from './ManifestSelector';
|
|
20
|
+
import LabelEditor from './labelEditor/LabelEditor';
|
|
21
|
+
|
|
22
|
+
import Spy = jasmine.Spy;
|
|
23
|
+
|
|
24
|
+
describe('<ManifestSelector />', () => {
|
|
25
|
+
let searchService: Spy;
|
|
26
|
+
|
|
27
|
+
beforeEach(() => {
|
|
28
|
+
searchService = spyOn(ManifestKindSearchService, 'search').and.returnValue($q.resolve([]));
|
|
29
|
+
spyOn(AccountService, 'getAllAccountDetailsForProvider').and.returnValue($q.resolve([]));
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
describe('initialization', () => {
|
|
33
|
+
it('renders namespace from input props', () => {
|
|
34
|
+
const wrapper = component({
|
|
35
|
+
manifestName: 'configMap my-config-map',
|
|
36
|
+
account: 'my-account',
|
|
37
|
+
location: 'default',
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const namespace = wrapper.find({ label: 'Namespace' }).find(Creatable).first();
|
|
41
|
+
expect((namespace.props().value as Option).value).toEqual('default');
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
it('renders kind from input props', () => {
|
|
45
|
+
const wrapper = component({
|
|
46
|
+
manifestName: 'configMap my-config-map',
|
|
47
|
+
account: 'my-account',
|
|
48
|
+
location: 'default',
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const kind = wrapper.find({ label: 'Kind' }).find(Creatable).first();
|
|
52
|
+
expect((kind.props().value as Option).value).toEqual('configMap');
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it('renders name from input props', () => {
|
|
56
|
+
const wrapper = component({
|
|
57
|
+
manifestName: 'configMap my-config-map',
|
|
58
|
+
account: 'my-account',
|
|
59
|
+
location: 'default',
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const name = wrapper.find({ label: 'Name' }).find(Creatable).first();
|
|
63
|
+
expect((name.props().value as Option).value).toEqual('my-config-map');
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('renders kinds from input props', () => {
|
|
67
|
+
const wrapper = component({
|
|
68
|
+
account: 'my-account',
|
|
69
|
+
kinds: ['configMap', 'deployment'],
|
|
70
|
+
location: 'default',
|
|
71
|
+
mode: SelectorMode.Label,
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const kinds = wrapper.find({ label: 'Kinds' }).find(Select).first();
|
|
75
|
+
expect(kinds.props().value).toEqual(['configMap', 'deployment']);
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it('renders labels from input props', () => {
|
|
79
|
+
const labelSelectors: IManifestLabelSelector[] = [
|
|
80
|
+
{
|
|
81
|
+
key: 'label-key',
|
|
82
|
+
kind: 'EQUALS',
|
|
83
|
+
values: ['label-value'],
|
|
84
|
+
},
|
|
85
|
+
];
|
|
86
|
+
const wrapper = component({
|
|
87
|
+
account: 'my-account',
|
|
88
|
+
kinds: ['configMap', 'deployment'],
|
|
89
|
+
labelSelectors: {
|
|
90
|
+
selectors: labelSelectors,
|
|
91
|
+
},
|
|
92
|
+
location: 'default',
|
|
93
|
+
mode: SelectorMode.Label,
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const labelEditor = wrapper.find(LabelEditor);
|
|
97
|
+
expect(labelEditor.prop('labelSelectors')).toEqual(labelSelectors);
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
describe('cluster dropdown', () => {
|
|
101
|
+
const buildPropsWithApplicationData = (data: any[]) => ({
|
|
102
|
+
modes: [SelectorMode.Static, SelectorMode.Dynamic],
|
|
103
|
+
application: { getDataSource: () => ({ data }) },
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
it("includes cluster if selected kind matches the cluster's server groups' kind", () => {
|
|
107
|
+
const wrapper = component(
|
|
108
|
+
{
|
|
109
|
+
kind: 'replicaSet',
|
|
110
|
+
account: 'my-account',
|
|
111
|
+
location: 'default',
|
|
112
|
+
mode: SelectorMode.Dynamic,
|
|
113
|
+
},
|
|
114
|
+
buildPropsWithApplicationData([
|
|
115
|
+
{
|
|
116
|
+
name: 'replicaSet my-replica-set-v000',
|
|
117
|
+
account: 'my-account',
|
|
118
|
+
region: 'default',
|
|
119
|
+
cluster: 'replicaSet my-replica-set',
|
|
120
|
+
},
|
|
121
|
+
]),
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
const cluster = wrapper.find({ label: 'Cluster' }).find(ScopeClusterSelector).first();
|
|
125
|
+
expect(cluster.props().clusters).toEqual(['replicaSet my-replica-set']);
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
it("does not include cluster if selected kind does not match cluster's server groups' kind", () => {
|
|
129
|
+
const wrapper = component(
|
|
130
|
+
{
|
|
131
|
+
kind: 'statefulSet',
|
|
132
|
+
account: 'my-account',
|
|
133
|
+
location: 'default',
|
|
134
|
+
mode: SelectorMode.Dynamic,
|
|
135
|
+
},
|
|
136
|
+
buildPropsWithApplicationData([
|
|
137
|
+
{
|
|
138
|
+
name: 'replicaSet my-replica-set-v000',
|
|
139
|
+
account: 'my-account',
|
|
140
|
+
region: 'default',
|
|
141
|
+
cluster: 'replicaSet my-replica-set',
|
|
142
|
+
},
|
|
143
|
+
]),
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
const cluster = wrapper.find({ label: 'Cluster' }).find(ScopeClusterSelector).first();
|
|
147
|
+
expect(cluster.props().clusters).toEqual([]);
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
it('handles case in which a cluster has two different kinds of server groups', () => {
|
|
151
|
+
const wrapper = component(
|
|
152
|
+
{
|
|
153
|
+
kind: 'statefulSet',
|
|
154
|
+
account: 'my-account',
|
|
155
|
+
location: 'default',
|
|
156
|
+
mode: SelectorMode.Dynamic,
|
|
157
|
+
},
|
|
158
|
+
buildPropsWithApplicationData([
|
|
159
|
+
{
|
|
160
|
+
name: 'replicaSet my-replica-set-v000',
|
|
161
|
+
account: 'my-account',
|
|
162
|
+
region: 'default',
|
|
163
|
+
cluster: 'my-cluster',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'statefulSet my-stateful-set-v000',
|
|
167
|
+
account: 'my-account',
|
|
168
|
+
region: 'default',
|
|
169
|
+
cluster: 'my-cluster',
|
|
170
|
+
},
|
|
171
|
+
]),
|
|
172
|
+
);
|
|
173
|
+
|
|
174
|
+
const cluster = wrapper.find({ label: 'Cluster' }).find(ScopeClusterSelector).first();
|
|
175
|
+
expect(cluster.props().clusters).toEqual(['my-cluster']);
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
it("does not include cluster if the cluster's server groups are managed", () => {
|
|
179
|
+
const wrapper = component(
|
|
180
|
+
{
|
|
181
|
+
kind: 'replicaSet',
|
|
182
|
+
account: 'my-account',
|
|
183
|
+
location: 'default',
|
|
184
|
+
mode: SelectorMode.Dynamic,
|
|
185
|
+
},
|
|
186
|
+
buildPropsWithApplicationData([
|
|
187
|
+
{
|
|
188
|
+
name: 'replicaSet my-replica-set-v000',
|
|
189
|
+
account: 'my-account',
|
|
190
|
+
region: 'default',
|
|
191
|
+
cluster: 'my-cluster',
|
|
192
|
+
serverGroupManagers: ['deployment my-deployment'],
|
|
193
|
+
},
|
|
194
|
+
]),
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
const cluster = wrapper.find({ label: 'Cluster' }).find(ScopeClusterSelector).first();
|
|
198
|
+
expect(cluster.props().clusters).toEqual([]);
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
it('filters clusters by account', () => {
|
|
202
|
+
const wrapper = component(
|
|
203
|
+
{
|
|
204
|
+
kind: 'replicaSet',
|
|
205
|
+
account: 'my-other-account',
|
|
206
|
+
location: 'default',
|
|
207
|
+
mode: SelectorMode.Dynamic,
|
|
208
|
+
},
|
|
209
|
+
buildPropsWithApplicationData([
|
|
210
|
+
{
|
|
211
|
+
name: 'replicaSet my-replica-set-v000',
|
|
212
|
+
account: 'my-account',
|
|
213
|
+
region: 'default',
|
|
214
|
+
cluster: 'my-cluster',
|
|
215
|
+
},
|
|
216
|
+
]),
|
|
217
|
+
);
|
|
218
|
+
|
|
219
|
+
const cluster = wrapper.find({ label: 'Cluster' }).find(ScopeClusterSelector).first();
|
|
220
|
+
expect(cluster.props().clusters).toEqual([]);
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
it('filters clusters by namespace', () => {
|
|
224
|
+
const wrapper = component(
|
|
225
|
+
{
|
|
226
|
+
kind: 'replicaSet',
|
|
227
|
+
account: 'my-account',
|
|
228
|
+
location: 'my-other-namespace',
|
|
229
|
+
mode: SelectorMode.Dynamic,
|
|
230
|
+
},
|
|
231
|
+
buildPropsWithApplicationData([
|
|
232
|
+
{
|
|
233
|
+
name: 'replicaSet my-replica-set-v000',
|
|
234
|
+
account: 'my-account',
|
|
235
|
+
region: 'default',
|
|
236
|
+
cluster: 'my-cluster',
|
|
237
|
+
},
|
|
238
|
+
]),
|
|
239
|
+
);
|
|
240
|
+
|
|
241
|
+
const cluster = wrapper.find({ label: 'Cluster' }).find(ScopeClusterSelector).first();
|
|
242
|
+
expect(cluster.props().clusters).toEqual([]);
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
describe('change handlers', () => {
|
|
248
|
+
it('calls the search service after updating the `Kind` field', () => {
|
|
249
|
+
const wrapper = component({
|
|
250
|
+
manifestName: 'configMap my-config-map',
|
|
251
|
+
account: 'my-account',
|
|
252
|
+
location: 'default',
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
const kind = wrapper.find({ label: 'Kind' }).find(Creatable).first();
|
|
256
|
+
kind.props().onChange({ value: 'deployment', label: 'deployment' });
|
|
257
|
+
expect(searchService).toHaveBeenCalledWith('deployment', 'default', 'my-account');
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
it('calls the search service after updating the `Namespace` field', () => {
|
|
261
|
+
const wrapper = component({
|
|
262
|
+
manifestName: 'configMap my-config-map',
|
|
263
|
+
account: 'my-account',
|
|
264
|
+
location: 'default',
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
const namespace = wrapper.find({ label: 'Namespace' }).find(Creatable).first();
|
|
268
|
+
namespace.props().onChange({ value: 'kube-system', label: 'kube-system' });
|
|
269
|
+
expect(searchService).toHaveBeenCalledWith('configMap', 'kube-system', 'my-account');
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
it('calls the search service after updating the `Account` field', () => {
|
|
273
|
+
const wrapper = component({
|
|
274
|
+
manifestName: 'configMap my-config-map',
|
|
275
|
+
account: 'my-account',
|
|
276
|
+
location: 'default',
|
|
277
|
+
});
|
|
278
|
+
wrapper.setState({
|
|
279
|
+
accounts: [
|
|
280
|
+
{ name: 'my-account', namespaces: ['default'] },
|
|
281
|
+
{ name: 'my-other-account', namespaces: ['default'] },
|
|
282
|
+
],
|
|
283
|
+
} as IManifestSelectorState);
|
|
284
|
+
|
|
285
|
+
const account = wrapper.find(AccountSelectInput).first();
|
|
286
|
+
account.props().onChange(createFakeReactSyntheticEvent({ value: 'my-other-account' }));
|
|
287
|
+
expect(searchService).toHaveBeenCalledWith('configMap', 'default', 'my-other-account');
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
it('clears namespace when changing account if account does not have selected namespace', () => {
|
|
291
|
+
const wrapper = component({
|
|
292
|
+
manifestName: 'configMap my-config-map',
|
|
293
|
+
account: 'my-account',
|
|
294
|
+
location: 'default',
|
|
295
|
+
});
|
|
296
|
+
wrapper.setState({
|
|
297
|
+
accounts: [
|
|
298
|
+
{ name: 'my-account', namespaces: ['default'] },
|
|
299
|
+
{ name: 'my-other-account', namespaces: ['other-default'] },
|
|
300
|
+
],
|
|
301
|
+
} as IManifestSelectorState);
|
|
302
|
+
|
|
303
|
+
const account = wrapper.find(AccountSelectInput).first();
|
|
304
|
+
account.props().onChange(createFakeReactSyntheticEvent({ value: 'my-other-account' }));
|
|
305
|
+
expect(wrapper.instance().state.selector.location).toBeFalsy();
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
describe('mode change', () => {
|
|
310
|
+
it('handles kind during static -> dynamic mode transition', () => {
|
|
311
|
+
const wrapper = component(
|
|
312
|
+
{
|
|
313
|
+
manifestName: 'configMap my-config-map',
|
|
314
|
+
account: 'my-account',
|
|
315
|
+
location: 'default',
|
|
316
|
+
},
|
|
317
|
+
{ modes: [SelectorMode.Dynamic, SelectorMode.Static] },
|
|
318
|
+
);
|
|
319
|
+
|
|
320
|
+
wrapper.find({ id: 'dynamic' }).first().props().onChange();
|
|
321
|
+
expect(wrapper.state().selector.kind).toEqual('configMap');
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
it('handles kind during static -> label mode transition', () => {
|
|
325
|
+
const wrapper = component(
|
|
326
|
+
{
|
|
327
|
+
manifestName: 'configMap my-config-map',
|
|
328
|
+
account: 'my-account',
|
|
329
|
+
location: 'default',
|
|
330
|
+
},
|
|
331
|
+
{ modes: [SelectorMode.Dynamic, SelectorMode.Static, SelectorMode.Label] },
|
|
332
|
+
);
|
|
333
|
+
|
|
334
|
+
wrapper.find({ id: 'label' }).first().props().onChange();
|
|
335
|
+
expect(wrapper.state().selector.kind).toBeNull();
|
|
336
|
+
expect(wrapper.state().selector.kinds).toEqual([]);
|
|
337
|
+
expect(wrapper.state().selector.manifestName).toBeNull();
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
it('handles kind during dynamic -> static mode transition', () => {
|
|
341
|
+
const wrapper = component(
|
|
342
|
+
{
|
|
343
|
+
account: 'my-account',
|
|
344
|
+
location: 'default',
|
|
345
|
+
kind: 'configMap',
|
|
346
|
+
mode: SelectorMode.Dynamic,
|
|
347
|
+
},
|
|
348
|
+
{ modes: [SelectorMode.Dynamic, SelectorMode.Static] },
|
|
349
|
+
);
|
|
350
|
+
|
|
351
|
+
wrapper.find({ id: 'static' }).first().props().onChange();
|
|
352
|
+
// `manifestName` is composed of `${kind} ${resourceName}`
|
|
353
|
+
expect(wrapper.state().selector.manifestName).toEqual('configMap');
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
it('handles kind during dynamic -> label mode transition', () => {
|
|
357
|
+
const wrapper = component(
|
|
358
|
+
{
|
|
359
|
+
account: 'my-account',
|
|
360
|
+
location: 'default',
|
|
361
|
+
kind: 'configMap',
|
|
362
|
+
mode: SelectorMode.Dynamic,
|
|
363
|
+
},
|
|
364
|
+
{ modes: [SelectorMode.Dynamic, SelectorMode.Static, SelectorMode.Label] },
|
|
365
|
+
);
|
|
366
|
+
|
|
367
|
+
wrapper.find({ id: 'label' }).first().props().onChange();
|
|
368
|
+
expect(wrapper.state().selector.kind).toBeNull();
|
|
369
|
+
expect(wrapper.state().selector.kinds).toEqual([]);
|
|
370
|
+
expect(wrapper.state().selector.manifestName).toBeNull();
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
it('handles kind during label -> static mode transition', () => {
|
|
374
|
+
const wrapper = component(
|
|
375
|
+
{
|
|
376
|
+
account: 'my-account',
|
|
377
|
+
location: 'default',
|
|
378
|
+
kinds: ['configMap'],
|
|
379
|
+
labelSelectors: {
|
|
380
|
+
selectors: [],
|
|
381
|
+
},
|
|
382
|
+
mode: SelectorMode.Label,
|
|
383
|
+
},
|
|
384
|
+
{ modes: [SelectorMode.Dynamic, SelectorMode.Static, SelectorMode.Label] },
|
|
385
|
+
);
|
|
386
|
+
|
|
387
|
+
wrapper.find({ id: 'static' }).first().props().onChange();
|
|
388
|
+
expect(wrapper.state().selector.kind).toBeNull();
|
|
389
|
+
expect(wrapper.state().selector.kinds).toBeNull();
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
it('handles kind during label -> dynamic mode transition', () => {
|
|
393
|
+
const wrapper = component(
|
|
394
|
+
{
|
|
395
|
+
account: 'my-account',
|
|
396
|
+
location: 'default',
|
|
397
|
+
kinds: ['configMap'],
|
|
398
|
+
labelSelectors: {
|
|
399
|
+
selectors: [],
|
|
400
|
+
},
|
|
401
|
+
mode: SelectorMode.Label,
|
|
402
|
+
},
|
|
403
|
+
{ modes: [SelectorMode.Dynamic, SelectorMode.Static, SelectorMode.Label] },
|
|
404
|
+
);
|
|
405
|
+
|
|
406
|
+
wrapper.find({ id: 'dynamic' }).first().props().onChange();
|
|
407
|
+
expect(wrapper.state().selector.kind).toBeNull();
|
|
408
|
+
expect(wrapper.state().selector.kinds).toBeNull();
|
|
409
|
+
});
|
|
410
|
+
});
|
|
411
|
+
});
|
|
412
|
+
|
|
413
|
+
const component = (selector: any, props: any = {}) =>
|
|
414
|
+
mount<ManifestSelector>((<ManifestSelector onChange={noop} selector={selector} {...props} />) as any);
|