@spinnaker/kubernetes 0.0.0-main-2
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 +7 -0
- package/dist/index.js +6024 -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 +24 -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/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 +1 -0
- package/dist/manifest/artifact/artifact.component.d.ts +1 -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 +1 -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/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/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/details.controller.d.ts +1 -0
- package/dist/serverGroup/details/resize/resize.controller.d.ts +1 -0
- package/dist/serverGroup/index.d.ts +4 -0
- package/dist/serverGroup/serverGroupCommandBuilder.service.d.ts +6 -0
- package/dist/serverGroup/serverGroupTransformer.service.d.ts +6 -0
- package/dist/serverGroupManager/details/details.controller.d.ts +1 -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 +7 -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 +35 -0
- package/src/kubernetes.module.ts +144 -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/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/artifact.component.ts +23 -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 +54 -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/condition.component.ts +12 -0
- package/src/manifest/status/status.component.ts +36 -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/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/details.controller.ts +207 -0
- package/src/serverGroup/details/details.html +153 -0
- package/src/serverGroup/details/resize/resize.controller.ts +73 -0
- package/src/serverGroup/details/resize/resize.html +57 -0
- package/src/serverGroup/index.ts +4 -0
- package/src/serverGroup/serverGroupCommandBuilder.service.ts +18 -0
- package/src/serverGroup/serverGroupTransformer.service.spec.ts +67 -0
- package/src/serverGroup/serverGroupTransformer.service.ts +34 -0
- package/src/serverGroupManager/details/details.controller.ts +191 -0
- package/src/serverGroupManager/details/details.html +136 -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 @@
|
|
|
1
|
+
export declare const KUBERNETES_INSTANCE_DETAILS_CTRL = "spinnaker.kubernetes.instanceDetails.controller";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './details/details.controller';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './infrastructure.types';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IInstance, ILoadBalancer, IMoniker, ISecurityGroupDetail, IServerGroup, IServerGroupManager } from '@spinnaker/core';
|
|
2
|
+
export interface IKubernetesResource {
|
|
3
|
+
apiVersion: string;
|
|
4
|
+
createdTime?: number;
|
|
5
|
+
displayName: string;
|
|
6
|
+
kind: string;
|
|
7
|
+
namespace: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IKubernetesInstance extends IInstance, IKubernetesResource {
|
|
10
|
+
humanReadableName: string;
|
|
11
|
+
moniker: IMoniker;
|
|
12
|
+
publicDnsName?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IKubernetesLoadBalancer extends ILoadBalancer, IKubernetesResource {
|
|
15
|
+
}
|
|
16
|
+
export interface IKubernetesSecurityGroup extends ISecurityGroupDetail, IKubernetesResource {
|
|
17
|
+
account: string;
|
|
18
|
+
moniker: IMoniker;
|
|
19
|
+
}
|
|
20
|
+
export interface IKubernetesServerGroup extends IServerGroup, IKubernetesResource {
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface IKubernetesServerGroupManager extends IServerGroupManager, IKubernetesResource {
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './help/kubernetes.help';
|
|
2
|
+
import './pipelines/stages';
|
|
3
|
+
import './pipelines/validation/manifestSelector.validator';
|
|
4
|
+
import './validation/applicationName.validator';
|
|
5
|
+
import './logo/kubernetes.logo.less';
|
|
6
|
+
export declare const KUBERNETES_MODULE = "spinnaker.kubernetes";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_LOAD_BALANCER_DETAILS_CTRL = "spinnaker.kubernetes.loadBalancerDetails.controller";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './details/details.controller';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_LOAD_BALANCER_TRANSFORMER = "spinnaker.kubernetes.loadBalancerTransformer";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IContainer {
|
|
3
|
+
name: string;
|
|
4
|
+
image: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IManifestImageDetailsProps {
|
|
7
|
+
manifest: {
|
|
8
|
+
spec: {
|
|
9
|
+
template: {
|
|
10
|
+
spec: {
|
|
11
|
+
containers: IContainer;
|
|
12
|
+
initContainers: IContainer;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare const ManifestImageDetails: ({ manifest }: IManifestImageDetailsProps) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface IManifestKindSearchResults {
|
|
2
|
+
account: string;
|
|
3
|
+
kubernetesKind: string;
|
|
4
|
+
name: string;
|
|
5
|
+
namespace: string;
|
|
6
|
+
provider: string;
|
|
7
|
+
region: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class ManifestKindSearchService {
|
|
11
|
+
static search(kind: string, namespace: string, account: string): PromiseLike<IManifestKindSearchResults[]>;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './manifestLabels.less';
|
|
3
|
+
export interface IManifestLabelsMap {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IManifestLabelsProps {
|
|
7
|
+
manifest?: {
|
|
8
|
+
metadata?: {
|
|
9
|
+
labels?: IManifestLabelsMap;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare class ManifestLabels extends React.Component<IManifestLabelsProps> {
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './manifestLabels.less';
|
|
3
|
+
export interface IManifestQosProps {
|
|
4
|
+
manifest?: {
|
|
5
|
+
status?: {
|
|
6
|
+
qosClass?: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare class ManifestQos extends React.Component<IManifestQosProps> {
|
|
11
|
+
private qosClass;
|
|
12
|
+
private qosStyle;
|
|
13
|
+
private description;
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IManifestResources {
|
|
3
|
+
cpu?: string;
|
|
4
|
+
memory?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IManifestResourceProps {
|
|
7
|
+
manifest?: {
|
|
8
|
+
spec?: {
|
|
9
|
+
containers?: [
|
|
10
|
+
{
|
|
11
|
+
name?: string;
|
|
12
|
+
resources?: {
|
|
13
|
+
limits?: IManifestResources;
|
|
14
|
+
requests?: IManifestResources;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
];
|
|
18
|
+
};
|
|
19
|
+
status?: {
|
|
20
|
+
qosClass?: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
metrics?: [
|
|
24
|
+
{
|
|
25
|
+
containerName?: string;
|
|
26
|
+
metrics?: IPodMetricsMap;
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
export interface IPodMetricsMap {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
}
|
|
33
|
+
export declare class ManifestResources extends React.Component<IManifestResourceProps> {
|
|
34
|
+
render(): JSX.Element;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_ANNOTATION_CUSTOM_SECTIONS = "spinnaker.kubernetes.v2.manifest.annotation.custom.sections";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_ARTIFACT = "spinnaker.kubernetes.v2.manifest.artifact.component";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IDeleteCommand {
|
|
2
|
+
manifestName: string;
|
|
3
|
+
location: string;
|
|
4
|
+
account: string;
|
|
5
|
+
reason: string;
|
|
6
|
+
options: IDeleteOptions;
|
|
7
|
+
}
|
|
8
|
+
export interface IDeleteOptions {
|
|
9
|
+
gracePeriodSeconds?: number;
|
|
10
|
+
cascading: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const KUBERNETES_MANIFEST_DELETE_CTRL = "spinnaker.kubernetes.v2.manifest.delete.controller";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_DELETE_MANIFEST_OPTIONS_FORM = "spinnaker.kubernetes.v2.kubernetes.manifest.delete.options.component";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'brace/mode/json';
|
|
2
|
+
import 'brace/theme/textmate';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface IJsonEditorProps {
|
|
5
|
+
value: string;
|
|
6
|
+
onChange(raw: string, obj: any): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const JSON_EDITOR_TAB_SIZE = 2;
|
|
9
|
+
export declare class JsonEditor extends React.Component<IJsonEditorProps> {
|
|
10
|
+
private handleChange;
|
|
11
|
+
render: () => JSX.Element;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const JSON_EDITOR_COMPONENT = "spinnaker.kubernetes.jsonEditor.component";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './manifest.service';
|
|
2
|
+
export * from './manifestCommandBuilder.service';
|
|
3
|
+
export * from './IManifestCoordinates';
|
|
4
|
+
export * from './artifact/artifact.component';
|
|
5
|
+
export * from './delete/delete.controller';
|
|
6
|
+
export * from './rollout/pause.controller';
|
|
7
|
+
export * from './rollout/undo.controller';
|
|
8
|
+
export * from './scale/scale.controller';
|
|
9
|
+
export * from './status/condition.component';
|
|
10
|
+
export * from './status/status.component';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Application, IManifest } from '@spinnaker/core';
|
|
2
|
+
export interface IStageManifest {
|
|
3
|
+
kind: string;
|
|
4
|
+
apiVersion: string;
|
|
5
|
+
metadata: {
|
|
6
|
+
namespace: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface IManifestParams {
|
|
11
|
+
account: string;
|
|
12
|
+
location: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type IManifestCallback = (manifest: IManifest) => void;
|
|
16
|
+
export declare class KubernetesManifestService {
|
|
17
|
+
static subscribe(app: Application, params: IManifestParams, fn: IManifestCallback): () => void;
|
|
18
|
+
private static updateManifest;
|
|
19
|
+
static manifestIdentifier(manifest: IStageManifest): string;
|
|
20
|
+
static stageManifestToManifestParams(manifest: IStageManifest, account: string): IManifestParams;
|
|
21
|
+
private static apiGroup;
|
|
22
|
+
private static isCRDGroup;
|
|
23
|
+
private static scopedKind;
|
|
24
|
+
private static readonly BUILT_IN_GROUPS;
|
|
25
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Application, IMoniker } from '@spinnaker/core';
|
|
2
|
+
import { ManifestSource } from './ManifestSource';
|
|
3
|
+
export interface IKubernetesManifestCommandData {
|
|
4
|
+
command: IKubernetesManifestCommand;
|
|
5
|
+
metadata: IKubernetesManifestCommandMetadata;
|
|
6
|
+
}
|
|
7
|
+
export interface IKubernetesManifestCommand {
|
|
8
|
+
account: string;
|
|
9
|
+
cloudProvider: string;
|
|
10
|
+
manifest: any;
|
|
11
|
+
manifests: any[];
|
|
12
|
+
relationships: IKubernetesManifestSpinnakerRelationships;
|
|
13
|
+
moniker: IMoniker;
|
|
14
|
+
manifestArtifactId?: string;
|
|
15
|
+
manifestArtifactAccount?: string;
|
|
16
|
+
source: ManifestSource;
|
|
17
|
+
versioned?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface IKubernetesManifestCommandMetadata {
|
|
20
|
+
backingData: any;
|
|
21
|
+
}
|
|
22
|
+
export interface IKubernetesManifestSpinnakerRelationships {
|
|
23
|
+
loadBalancers?: string[];
|
|
24
|
+
securityGroups?: string[];
|
|
25
|
+
}
|
|
26
|
+
export declare class KubernetesManifestCommandBuilder {
|
|
27
|
+
static manifestCommandIsValid(command: IKubernetesManifestCommand): boolean;
|
|
28
|
+
static copyAndCleanCommand(input: IKubernetesManifestCommand): IKubernetesManifestCommand;
|
|
29
|
+
static buildNewManifestCommand(app: Application, sourceManifest?: any, sourceMoniker?: IMoniker, sourceAccount?: string): PromiseLike<IKubernetesManifestCommandData>;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_EVENTS = "spinnaker.kubernetes.v2.manifest.events";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_IMAGE_DETAILS = "spinnaker.kubernetes.v2.manifestImageDetails.component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_LABELS = "spinnaker.kubernetes.v2.manifest.labels";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_QOS = "spinnaker.kubernetes.v2.manifest.qos";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_RESOURCES = "spinnaker.kubernetes.v2.manifest.resources";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_ROLLING_RESTART = "spinnaker.kubernetes.v2.rolling.restart";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_PAUSE_ROLLOUT_CTRL = "spinnaker.kubernetes.v2.manifest.pauseRollout.controller";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_RESUME_ROLLOUT_CTRL = "spinnaker.kubernetes.v2.manifest.resumeRollout.controller";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_UNDO_ROLLOUT_CTRL = "spinnaker.kubernetes.v2.manifest.undoRollout.controller";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IScaleCommand } from './scale.controller';
|
|
3
|
+
export interface IScaleSettingsFormProps {
|
|
4
|
+
options: IScaleCommand;
|
|
5
|
+
onChange(options: IScaleCommand): void;
|
|
6
|
+
}
|
|
7
|
+
export interface IScaleSettingsFormState {
|
|
8
|
+
options: IScaleCommand;
|
|
9
|
+
}
|
|
10
|
+
export declare function ScaleSettingsForm({ options, onChange }: IScaleSettingsFormProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_SCALE_MANIFEST_SETTINGS_FORM = "spinnaker.kubernetes.v2.kubernetes.manifest.scale.settingsForm.component";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IManifestLabelSelectors } from './IManifestLabelSelector';
|
|
2
|
+
export interface IMultiManifestSelector extends IManifestSelector {
|
|
3
|
+
kinds: string[];
|
|
4
|
+
labelSelectors?: IManifestLabelSelectors;
|
|
5
|
+
}
|
|
6
|
+
export interface IManifestSelector {
|
|
7
|
+
account: string;
|
|
8
|
+
app?: string;
|
|
9
|
+
cluster?: string;
|
|
10
|
+
criteria?: string;
|
|
11
|
+
kind?: string;
|
|
12
|
+
kinds?: string[];
|
|
13
|
+
labelSelectors?: IManifestLabelSelectors;
|
|
14
|
+
location: string;
|
|
15
|
+
manifestName?: string;
|
|
16
|
+
mode?: SelectorMode;
|
|
17
|
+
}
|
|
18
|
+
export declare enum SelectorMode {
|
|
19
|
+
Static = "static",
|
|
20
|
+
Dynamic = "dynamic",
|
|
21
|
+
Label = "label"
|
|
22
|
+
}
|
|
23
|
+
interface ISelectorModeData {
|
|
24
|
+
label: string;
|
|
25
|
+
selectorDefaults: Partial<IManifestSelector>;
|
|
26
|
+
}
|
|
27
|
+
export declare const SelectorModeDataMap: {
|
|
28
|
+
[key in SelectorMode]: ISelectorModeData;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Application, IAccountDetails } from '@spinnaker/core';
|
|
3
|
+
import type { IManifestLabelSelector } from './IManifestLabelSelector';
|
|
4
|
+
import type { IManifestSelector } from './IManifestSelector';
|
|
5
|
+
import { SelectorMode } from './IManifestSelector';
|
|
6
|
+
export interface IManifestSelectorProps {
|
|
7
|
+
selector: IManifestSelector;
|
|
8
|
+
application?: Application;
|
|
9
|
+
includeSpinnakerKinds?: string[];
|
|
10
|
+
modes?: SelectorMode[];
|
|
11
|
+
onChange(selector: IManifestSelector): void;
|
|
12
|
+
}
|
|
13
|
+
export interface IManifestSelectorState {
|
|
14
|
+
accounts: IAccountDetails[];
|
|
15
|
+
selector: IManifestSelector;
|
|
16
|
+
namespaces: string[];
|
|
17
|
+
kinds: string[];
|
|
18
|
+
resources: string[];
|
|
19
|
+
loading: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare class ManifestSelector extends React.Component<IManifestSelectorProps, IManifestSelectorState> {
|
|
22
|
+
private search$;
|
|
23
|
+
private destroy$;
|
|
24
|
+
private handlers;
|
|
25
|
+
constructor(props: IManifestSelectorProps);
|
|
26
|
+
setStateAndUpdateStage: (state: Partial<IManifestSelectorState>, cb?: () => void) => void;
|
|
27
|
+
componentDidMount: () => void;
|
|
28
|
+
componentWillUnmount: () => void;
|
|
29
|
+
loadAccounts: () => PromiseLike<void>;
|
|
30
|
+
private handleAccountChange;
|
|
31
|
+
private handleNamespaceChange;
|
|
32
|
+
handleKindChange: (kind: string) => void;
|
|
33
|
+
private handleNameChange;
|
|
34
|
+
private isExpression;
|
|
35
|
+
private search;
|
|
36
|
+
private handleModeSelect;
|
|
37
|
+
private handleClusterChange;
|
|
38
|
+
private handleCriteriaChange;
|
|
39
|
+
handleKindsChange: (kinds: string[]) => void;
|
|
40
|
+
handleLabelSelectorsChange: (labelSelectors: IManifestLabelSelector[]) => void;
|
|
41
|
+
private modeDelegate;
|
|
42
|
+
private promptTextCreator;
|
|
43
|
+
private getSelectedMode;
|
|
44
|
+
private getFilteredClusters;
|
|
45
|
+
render(): JSX.Element;
|
|
46
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IManifestLabelSelector } from '../IManifestLabelSelector';
|
|
3
|
+
import './labelEditor.less';
|
|
4
|
+
export interface ILabelEditorProps {
|
|
5
|
+
labelSelectors: IManifestLabelSelector[];
|
|
6
|
+
onLabelSelectorsChange: (labelSelectors: IManifestLabelSelector[]) => void;
|
|
7
|
+
}
|
|
8
|
+
export default class LabelEditor extends React.Component<ILabelEditorProps> {
|
|
9
|
+
static defaultProps: Partial<ILabelEditorProps>;
|
|
10
|
+
private static convertValueStringToArray;
|
|
11
|
+
private handleChange;
|
|
12
|
+
private removeField;
|
|
13
|
+
private addField;
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_SELECTOR = "spinnaker.kubernetes.v2.manifest.selector.component";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IKubernetesManifestCondition {
|
|
3
|
+
status: string;
|
|
4
|
+
type: string;
|
|
5
|
+
lastTransitionTime: string;
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IKubernetesManifestConditionProps {
|
|
9
|
+
condition: IKubernetesManifestCondition;
|
|
10
|
+
}
|
|
11
|
+
export declare class ManifestCondition extends React.Component<IKubernetesManifestConditionProps> {
|
|
12
|
+
render(): JSX.Element[];
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_CONDITION = "spinnaker.kubernetes.v2.manifest.condition.component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KUBERNETES_MANIFEST_STATUS = "spinnaker.kubernetes.v2.kubernetes.manifest.status.component";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Application, IManifest, ITask } from '@spinnaker/core';
|
|
2
|
+
import type { IKubernetesServerGroup } from '../../interfaces';
|
|
3
|
+
export declare class ManifestTrafficService {
|
|
4
|
+
static readonly ENABLE_MANIFEST_OPERATION = "enableManifest";
|
|
5
|
+
static readonly DISABLE_MANIFEST_OPERATION = "disableManifest";
|
|
6
|
+
static enable: (manifest: IManifest, application: Application, reason?: string) => PromiseLike<ITask>;
|
|
7
|
+
static disable: (manifest: IManifest, application: Application, reason?: string) => PromiseLike<ITask>;
|
|
8
|
+
static canDisableServerGroup: (serverGroup: IKubernetesServerGroup) => boolean;
|
|
9
|
+
static canEnableServerGroup: (serverGroup: IKubernetesServerGroup) => boolean;
|
|
10
|
+
private static hasLoadBalancers;
|
|
11
|
+
private static isManaged;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FormikProps } from 'formik';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { IAccount } from '@spinnaker/core';
|
|
4
|
+
import type { IKubernetesManifestCommandData } from '../manifestCommandBuilder.service';
|
|
5
|
+
export interface IManifestBasicSettingsProps {
|
|
6
|
+
accounts: IAccount[];
|
|
7
|
+
onAccountSelect: (account: string) => void;
|
|
8
|
+
selectedAccount: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function ManifestBasicSettings({ accounts, onAccountSelect, selectedAccount }: IManifestBasicSettingsProps): JSX.Element;
|
|
11
|
+
export interface IWizardManifestBasicSettingsProps {
|
|
12
|
+
formik: FormikProps<IKubernetesManifestCommandData>;
|
|
13
|
+
}
|
|
14
|
+
export declare class WizardManifestBasicSettings extends React.Component<IWizardManifestBasicSettingsProps> {
|
|
15
|
+
private accountUpdated;
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FormikProps } from 'formik';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { Application } from '@spinnaker/core';
|
|
4
|
+
import type { IKubernetesManifestCommandData } from '../manifestCommandBuilder.service';
|
|
5
|
+
export interface IManifestBasicSettingsProps {
|
|
6
|
+
app: Application;
|
|
7
|
+
formik: FormikProps<IKubernetesManifestCommandData>;
|
|
8
|
+
}
|
|
9
|
+
export interface IManifestBasicSettingsState {
|
|
10
|
+
rawManifest: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class ManifestEntry extends React.Component<IManifestBasicSettingsProps, IManifestBasicSettingsState> {
|
|
13
|
+
constructor(props: IManifestBasicSettingsProps);
|
|
14
|
+
private handleChange;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Application, IModalComponentProps } from '@spinnaker/core';
|
|
3
|
+
import { TaskMonitor } from '@spinnaker/core';
|
|
4
|
+
import type { IKubernetesManifestCommandData } from '../manifestCommandBuilder.service';
|
|
5
|
+
export interface IKubernetesManifestModalProps extends IModalComponentProps {
|
|
6
|
+
title: string;
|
|
7
|
+
application: Application;
|
|
8
|
+
command: IKubernetesManifestCommandData;
|
|
9
|
+
isNew?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface IKubernetesManifestModalState {
|
|
12
|
+
command: IKubernetesManifestCommandData;
|
|
13
|
+
loaded: boolean;
|
|
14
|
+
taskMonitor: TaskMonitor;
|
|
15
|
+
}
|
|
16
|
+
export declare class ManifestWizard extends React.Component<IKubernetesManifestModalProps, IKubernetesManifestModalState> {
|
|
17
|
+
static defaultProps: Partial<IKubernetesManifestModalProps>;
|
|
18
|
+
static show(props: IKubernetesManifestModalProps): Promise<IKubernetesManifestCommandData>;
|
|
19
|
+
constructor(props: IKubernetesManifestModalProps);
|
|
20
|
+
private submit;
|
|
21
|
+
render(): JSX.Element;
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IManifestCoordinateProps {
|
|
3
|
+
account: string;
|
|
4
|
+
manifestName: string;
|
|
5
|
+
location: string;
|
|
6
|
+
cluster: string;
|
|
7
|
+
criteria: string;
|
|
8
|
+
labelSelectors: ILabelSelectors;
|
|
9
|
+
manifestNamesByNamespace: IManifestNamesByNamespace;
|
|
10
|
+
}
|
|
11
|
+
export interface IManifestNamesByNamespace {
|
|
12
|
+
[namespace: string]: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface ILabelSelectors {
|
|
15
|
+
selectors: Array<{
|
|
16
|
+
key?: string;
|
|
17
|
+
kind: SelectorKind;
|
|
18
|
+
values?: string[];
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
export declare enum SelectorKind {
|
|
22
|
+
ANY = "ANY",
|
|
23
|
+
EQUALS = "EQUALS",
|
|
24
|
+
NOT_EQUALS = "NOT_EQUALS",
|
|
25
|
+
CONTAINS = "CONTAINS",
|
|
26
|
+
NOT_CONTAINS = "NOT_CONTAINS",
|
|
27
|
+
EXISTS = "EXISTS",
|
|
28
|
+
NOT_EXISTS = "NOT_EXISTS"
|
|
29
|
+
}
|
|
30
|
+
export declare const formatLabelSelectors: (labelSelectors: ILabelSelectors) => string;
|
|
31
|
+
export declare const ManifestCoordinates: ({ account, manifestName, location, cluster, criteria, labelSelectors, manifestNamesByNamespace, }: IManifestCoordinateProps) => JSX.Element;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IExecutionDetailsSectionProps } from '@spinnaker/core';
|
|
3
|
+
import type { ILabelSelectors, IManifestNamesByNamespace } from './ManifestCoordinates';
|
|
4
|
+
interface IManifestExecutionDetailsProps extends IExecutionDetailsSectionProps {
|
|
5
|
+
context: {
|
|
6
|
+
account: string;
|
|
7
|
+
manifestName: string;
|
|
8
|
+
location: string;
|
|
9
|
+
cluster: string;
|
|
10
|
+
criteria: string;
|
|
11
|
+
labelSelectors: ILabelSelectors;
|
|
12
|
+
manifestNamesByNamespace: IManifestNamesByNamespace;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare const manifestExecutionDetails: (stageName: string) => {
|
|
16
|
+
new (props: IManifestExecutionDetailsProps | Readonly<IManifestExecutionDetailsProps>): {
|
|
17
|
+
render(): JSX.Element;
|
|
18
|
+
context: any;
|
|
19
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IManifestExecutionDetailsProps>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
|
|
20
|
+
forceUpdate(callback?: () => void): void;
|
|
21
|
+
readonly props: Readonly<IManifestExecutionDetailsProps> & Readonly<{
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
}>;
|
|
24
|
+
state: Readonly<{}>;
|
|
25
|
+
refs: {
|
|
26
|
+
[key: string]: React.ReactInstance;
|
|
27
|
+
};
|
|
28
|
+
componentDidMount?(): void;
|
|
29
|
+
shouldComponentUpdate?(nextProps: Readonly<IManifestExecutionDetailsProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
30
|
+
componentWillUnmount?(): void;
|
|
31
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
32
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<IManifestExecutionDetailsProps>, prevState: Readonly<{}>): any;
|
|
33
|
+
componentDidUpdate?(prevProps: Readonly<IManifestExecutionDetailsProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
34
|
+
componentWillMount?(): void;
|
|
35
|
+
UNSAFE_componentWillMount?(): void;
|
|
36
|
+
componentWillReceiveProps?(nextProps: Readonly<IManifestExecutionDetailsProps>, nextContext: any): void;
|
|
37
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<IManifestExecutionDetailsProps>, nextContext: any): void;
|
|
38
|
+
componentWillUpdate?(nextProps: Readonly<IManifestExecutionDetailsProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
39
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<IManifestExecutionDetailsProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
40
|
+
};
|
|
41
|
+
new (props: IManifestExecutionDetailsProps, context: any): {
|
|
42
|
+
render(): JSX.Element;
|
|
43
|
+
context: any;
|
|
44
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IManifestExecutionDetailsProps>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
|
|
45
|
+
forceUpdate(callback?: () => void): void;
|
|
46
|
+
readonly props: Readonly<IManifestExecutionDetailsProps> & Readonly<{
|
|
47
|
+
children?: React.ReactNode;
|
|
48
|
+
}>;
|
|
49
|
+
state: Readonly<{}>;
|
|
50
|
+
refs: {
|
|
51
|
+
[key: string]: React.ReactInstance;
|
|
52
|
+
};
|
|
53
|
+
componentDidMount?(): void;
|
|
54
|
+
shouldComponentUpdate?(nextProps: Readonly<IManifestExecutionDetailsProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
55
|
+
componentWillUnmount?(): void;
|
|
56
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
57
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<IManifestExecutionDetailsProps>, prevState: Readonly<{}>): any;
|
|
58
|
+
componentDidUpdate?(prevProps: Readonly<IManifestExecutionDetailsProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
59
|
+
componentWillMount?(): void;
|
|
60
|
+
UNSAFE_componentWillMount?(): void;
|
|
61
|
+
componentWillReceiveProps?(nextProps: Readonly<IManifestExecutionDetailsProps>, nextContext: any): void;
|
|
62
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<IManifestExecutionDetailsProps>, nextContext: any): void;
|
|
63
|
+
componentWillUpdate?(nextProps: Readonly<IManifestExecutionDetailsProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
64
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<IManifestExecutionDetailsProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
65
|
+
};
|
|
66
|
+
title: string;
|
|
67
|
+
contextType?: React.Context<any>;
|
|
68
|
+
};
|
|
69
|
+
export {};
|