@spinnaker/kubernetes 2026.2.2 → 2026.3.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/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/instance/details/KubernetesInstanceDetails.d.ts +54 -0
- package/dist/instance/details/kubernetesInstanceDetails.utils.d.ts +13 -0
- package/dist/instance/index.d.ts +1 -1
- package/dist/kubernetes.module.d.ts +5 -1
- package/dist/loadBalancer/transformer.d.ts +1 -1
- package/dist/manifest/AnnotationCustomSections.d.ts +3 -2
- package/dist/manifest/ManifestKindSearch.d.ts +1 -1
- package/dist/manifest/delete/Delete.d.ts +0 -1
- package/dist/manifest/delete/DeleteModal.d.ts +1 -1
- package/dist/manifest/delete/delete.types.d.ts +4 -0
- package/dist/manifest/index.d.ts +3 -6
- package/dist/manifest/manifest.service.d.ts +5 -0
- package/dist/manifest/manifestCommandBuilder.service.d.ts +1 -1
- package/dist/manifest/rollout/PauseRollout.d.ts +0 -1
- package/dist/manifest/rollout/ResumeRollout.d.ts +0 -1
- package/dist/manifest/rollout/RollingRestart.d.ts +4 -4
- package/dist/manifest/rollout/UndoRollout.d.ts +0 -1
- package/dist/manifest/scale/Scale.d.ts +1 -2
- package/dist/manifest/scale/ScaleModal.d.ts +3 -3
- package/dist/manifest/scale/ScaleSettingsForm.d.ts +7 -1
- package/dist/manifest/selector/ManifestSelector.d.ts +1 -1
- package/dist/manifest/traffic/ManifestTrafficService.d.ts +2 -2
- package/dist/pipelines/stages/deleteManifest/DeleteManifestOptionsForm.d.ts +1 -1
- package/dist/pipelines/stages/deployManifest/manifestStatus/DeployStatus.d.ts +1 -0
- package/dist/pipelines/stages/deployManifest/manifestStatus/ManifestDetailsLink.d.ts +6 -3
- package/dist/pipelines/stages/traffic/disableManifest.stage.d.ts +2 -1
- package/dist/pipelines/stages/traffic/enableManifest.stage.d.ts +2 -1
- package/dist/rawResource/index.d.ts +3 -1
- package/dist/rawResource/rawResource.dataSource.d.ts +1 -1
- package/dist/rawResource/rawResource.states.d.ts +4 -1
- package/dist/resources/resources.state.d.ts +2 -1
- package/dist/securityGroup/details/KubernetesSecurityGroupDetails.d.ts +49 -0
- package/dist/securityGroup/index.d.ts +3 -1
- package/dist/securityGroup/transformer.d.ts +4 -1
- package/dist/serverGroup/serverGroupCommandBuilder.d.ts +1 -1
- package/dist/serverGroup/serverGroupTransformer.d.ts +1 -1
- package/dist/serverGroupManager/details/ServerGroupManagerDetails.d.ts +7 -3
- package/package.json +3 -12
- package/src/help/kubernetes.help.ts +2 -0
- package/src/index.ts +2 -2
- package/src/instance/details/KubernetesInstanceDetails.spec.tsx +451 -0
- package/src/instance/details/KubernetesInstanceDetails.tsx +342 -0
- package/src/instance/details/kubernetesInstanceDetails.utils.ts +77 -0
- package/src/instance/index.ts +1 -1
- package/src/kubernetes.module.spec.ts +25 -0
- package/src/kubernetes.module.ts +23 -87
- package/src/loadBalancer/details/KubernetesLoadBalancerActions.tsx +30 -35
- package/src/loadBalancer/details/sections/LoadBalancerAnnotationCustomSection.tsx +2 -3
- package/src/loadBalancer/transformer.ts +1 -1
- package/src/manifest/AnnotationCustomSections.spec.tsx +178 -0
- package/src/manifest/AnnotationCustomSections.tsx +179 -2
- package/src/manifest/ManifestKindSearch.tsx +1 -1
- package/src/manifest/delete/Delete.tsx +0 -9
- package/src/manifest/delete/DeleteModal.tsx +69 -72
- package/src/manifest/delete/delete.types.ts +4 -0
- package/src/manifest/index.ts +3 -6
- package/src/manifest/manifest.service.ts +18 -1
- package/src/manifest/manifestCommandBuilder.service.spec.ts +41 -0
- package/src/manifest/manifestCommandBuilder.service.ts +45 -59
- package/src/manifest/rollout/PauseRollout.tsx +1 -9
- package/src/manifest/rollout/ResumeRollout.tsx +2 -10
- package/src/manifest/rollout/RollingRestart.tsx +16 -22
- package/src/manifest/rollout/UndoRollout.tsx +1 -10
- package/src/manifest/rollout/UndoRolloutModal.tsx +5 -1
- package/src/manifest/scale/Scale.tsx +12 -11
- package/src/manifest/scale/ScaleModal.tsx +43 -31
- package/src/manifest/scale/ScaleSettingsForm.tsx +8 -1
- package/src/manifest/selector/ManifestSelector.spec.tsx +89 -46
- package/src/manifest/selector/ManifestSelector.tsx +4 -5
- package/src/manifest/traffic/ManifestTrafficService.ts +2 -2
- package/src/manifest/wizard/ManifestWizard.tsx +1 -1
- package/src/pipelines/stages/deleteManifest/DeleteManifestOptionsForm.tsx +1 -1
- package/src/pipelines/stages/deleteManifest/DeleteManifestStageConfig.tsx +1 -1
- package/src/pipelines/stages/deployManifest/DeployManifestStageForm.tsx +16 -0
- package/src/pipelines/stages/deployManifest/ManifestCopier.spec.ts +52 -77
- package/src/pipelines/stages/deployManifest/ManifestDeploymentOptions.spec.tsx +2 -0
- package/src/pipelines/stages/deployManifest/manifestStatus/DeployStatus.tsx +39 -4
- package/src/pipelines/stages/deployManifest/manifestStatus/ManifestDetailsLink.spec.tsx +35 -0
- package/src/pipelines/stages/deployManifest/manifestStatus/ManifestDetailsLink.tsx +10 -5
- package/src/pipelines/stages/traffic/ManifestTrafficStageRegistration.spec.ts +34 -0
- package/src/pipelines/stages/traffic/disableManifest.stage.ts +17 -19
- package/src/pipelines/stages/traffic/enableManifest.stage.ts +17 -19
- package/src/rawResource/index.ts +18 -1
- package/src/rawResource/rawResource.dataSource.ts +5 -8
- package/src/rawResource/rawResource.states.ts +50 -51
- package/src/resources/resources.state.spec.ts +138 -0
- package/src/resources/resources.state.ts +30 -35
- package/src/securityGroup/details/KubernetesSecurityGroupDetails.spec.tsx +292 -0
- package/src/securityGroup/details/KubernetesSecurityGroupDetails.tsx +304 -0
- package/src/securityGroup/index.ts +3 -1
- package/src/securityGroup/transformer.ts +2 -10
- package/src/serverGroup/details/KubernetesServerGroupActions.tsx +31 -61
- package/src/serverGroup/details/kubernetesServerGroupDetailsGetter.ts +1 -1
- package/src/serverGroup/details/sections/ServerGroupAnnotationCustomSection.tsx +2 -3
- package/src/serverGroup/serverGroupCommandBuilder.ts +1 -1
- package/src/serverGroup/serverGroupTransformer.ts +1 -1
- package/src/serverGroupManager/details/ServerGroupManagerActions.tsx +48 -128
- package/src/serverGroupManager/details/ServerGroupManagerDetails.spec.ts +12 -0
- package/src/serverGroupManager/details/ServerGroupManagerDetails.tsx +19 -8
- package/src/serverGroupManager/details/sections/ServerGroupManagerAnnotationCustomSection.tsx +2 -3
- package/src/serverGroupManager/details/useKubernetesServerGroupManagerDetails.spec.tsx +112 -0
- package/src/serverGroupManager/details/useKubernetesServerGroupManagerDetails.tsx +50 -29
- package/dist/instance/details/details.controller.d.ts +0 -1
- package/dist/manifest/annotationCustomSections.component.d.ts +0 -3
- package/dist/manifest/delete/delete.controller.d.ts +0 -12
- package/dist/manifest/delete/deleteOptionsForm.component.d.ts +0 -1
- package/dist/manifest/editor/json/jsonEditor.component.d.ts +0 -1
- package/dist/manifest/manifestEvents.component.d.ts +0 -1
- package/dist/manifest/manifestImageDetails.component.d.ts +0 -1
- package/dist/manifest/manifestLabels.component.d.ts +0 -1
- package/dist/manifest/manifestQos.component.d.ts +0 -1
- package/dist/manifest/manifestResources.component.d.ts +0 -1
- package/dist/manifest/rollout/pause.controller.d.ts +0 -1
- package/dist/manifest/rollout/resume.controller.d.ts +0 -1
- package/dist/manifest/rollout/undo.controller.d.ts +0 -5
- package/dist/manifest/scale/scale.controller.d.ts +0 -8
- package/dist/manifest/scale/scaleSettingsForm.component.d.ts +0 -1
- package/dist/manifest/selector/selector.component.d.ts +0 -1
- package/dist/manifest/status/condition.component.d.ts +0 -1
- package/dist/manifest/status/status.component.d.ts +0 -1
- package/dist/rawResource/rawResource.module.d.ts +0 -1
- package/dist/reactShims/index.d.ts +0 -1
- package/dist/reactShims/kubernetes.react.injector.d.ts +0 -11
- package/dist/reactShims/kubernetes.react.module.d.ts +0 -1
- package/dist/securityGroup/details/details.controller.d.ts +0 -1
- package/src/instance/details/details.controller.ts +0 -186
- package/src/instance/details/details.html +0 -80
- package/src/manifest/annotationCustomSections.component.ts +0 -114
- package/src/manifest/delete/delete.controller.ts +0 -80
- package/src/manifest/delete/delete.html +0 -42
- package/src/manifest/delete/deleteOptionsForm.component.ts +0 -52
- package/src/manifest/editor/json/jsonEditor.component.ts +0 -12
- package/src/manifest/manifestEvents.component.ts +0 -12
- package/src/manifest/manifestImageDetails.component.ts +0 -12
- package/src/manifest/manifestLabels.component.ts +0 -12
- package/src/manifest/manifestQos.component.ts +0 -12
- package/src/manifest/manifestResources.component.ts +0 -12
- package/src/manifest/rollout/pause.controller.ts +0 -66
- package/src/manifest/rollout/pause.html +0 -28
- package/src/manifest/rollout/resume.controller.ts +0 -66
- package/src/manifest/rollout/resume.html +0 -28
- package/src/manifest/rollout/undo.controller.ts +0 -74
- package/src/manifest/rollout/undo.html +0 -44
- package/src/manifest/scale/scale.controller.ts +0 -75
- package/src/manifest/scale/scale.html +0 -32
- package/src/manifest/scale/scaleSettingsForm.component.ts +0 -11
- package/src/manifest/selector/selector.component.ts +0 -17
- package/src/manifest/status/condition.component.ts +0 -12
- package/src/manifest/status/status.component.ts +0 -11
- package/src/rawResource/rawResource.module.ts +0 -8
- package/src/reactShims/index.ts +0 -1
- package/src/reactShims/kubernetes.react.injector.ts +0 -30
- package/src/reactShims/kubernetes.react.module.ts +0 -12
- package/src/securityGroup/details/details.controller.ts +0 -118
- package/src/securityGroup/details/details.html +0 -91
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import type { StateService } from '@uirouter/angularjs';
|
|
2
|
-
import type { IController, IQService, IScope } from 'angular';
|
|
3
|
-
import { module } from 'angular';
|
|
4
|
-
import type { IModalService } from 'angular-ui-bootstrap';
|
|
5
|
-
|
|
6
|
-
import type { Application, IManifest, ISecurityGroupDetail, SecurityGroupReader } from '@spinnaker/core';
|
|
7
|
-
import { ManifestReader, SECURITY_GROUP_READER, SETTINGS } from '@spinnaker/core';
|
|
8
|
-
|
|
9
|
-
import type { IKubernetesSecurityGroup } from '../../interfaces';
|
|
10
|
-
import { KubernetesManifestCommandBuilder } from '../../manifest/manifestCommandBuilder.service';
|
|
11
|
-
import { ManifestWizard } from '../../manifest/wizard/ManifestWizard';
|
|
12
|
-
|
|
13
|
-
interface ISecurityGroupFromStateParams {
|
|
14
|
-
accountId: string;
|
|
15
|
-
region: string;
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
class KubernetesSecurityGroupDetailsController implements IController {
|
|
20
|
-
public state = { loading: true };
|
|
21
|
-
public securityGroup: IKubernetesSecurityGroup;
|
|
22
|
-
public manifest: IManifest;
|
|
23
|
-
|
|
24
|
-
public static $inject = [
|
|
25
|
-
'$uibModal',
|
|
26
|
-
'$state',
|
|
27
|
-
'$scope',
|
|
28
|
-
'securityGroupReader',
|
|
29
|
-
'resolvedSecurityGroup',
|
|
30
|
-
'app',
|
|
31
|
-
'$q',
|
|
32
|
-
];
|
|
33
|
-
constructor(
|
|
34
|
-
private $uibModal: IModalService,
|
|
35
|
-
private $state: StateService,
|
|
36
|
-
private $scope: IScope,
|
|
37
|
-
private securityGroupReader: SecurityGroupReader,
|
|
38
|
-
resolvedSecurityGroup: ISecurityGroupFromStateParams,
|
|
39
|
-
private app: Application,
|
|
40
|
-
private $q: IQService,
|
|
41
|
-
) {
|
|
42
|
-
const dataSource = app.getDataSource('securityGroups');
|
|
43
|
-
dataSource
|
|
44
|
-
.ready()
|
|
45
|
-
.then(() => {
|
|
46
|
-
this.extractSecurityGroup(resolvedSecurityGroup);
|
|
47
|
-
this.$scope.isDisabled = !SETTINGS.kubernetesAdHocInfraWritesEnabled;
|
|
48
|
-
dataSource.onRefresh(this.$scope, () => this.extractSecurityGroup(resolvedSecurityGroup));
|
|
49
|
-
})
|
|
50
|
-
.catch(() => this.autoClose());
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
public deleteSecurityGroup(): void {
|
|
54
|
-
this.$uibModal.open({
|
|
55
|
-
templateUrl: require('../../manifest/delete/delete.html'),
|
|
56
|
-
controller: 'kubernetesV2ManifestDeleteCtrl',
|
|
57
|
-
controllerAs: 'ctrl',
|
|
58
|
-
resolve: {
|
|
59
|
-
coordinates: {
|
|
60
|
-
name: this.securityGroup.name,
|
|
61
|
-
namespace: this.securityGroup.region,
|
|
62
|
-
account: this.securityGroup.account,
|
|
63
|
-
},
|
|
64
|
-
application: this.app,
|
|
65
|
-
manifestController: (): string => null,
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
public editSecurityGroup(): void {
|
|
71
|
-
KubernetesManifestCommandBuilder.buildNewManifestCommand(
|
|
72
|
-
this.app,
|
|
73
|
-
this.manifest.manifest,
|
|
74
|
-
this.securityGroup.moniker,
|
|
75
|
-
this.securityGroup.account,
|
|
76
|
-
).then((builtCommand) => {
|
|
77
|
-
ManifestWizard.show({ title: 'Edit Manifest', application: this.app, command: builtCommand });
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
private extractSecurityGroup({ accountId, name, region }: ISecurityGroupFromStateParams): void {
|
|
82
|
-
this.$q
|
|
83
|
-
.all([
|
|
84
|
-
this.securityGroupReader.getSecurityGroupDetails(
|
|
85
|
-
this.app,
|
|
86
|
-
accountId,
|
|
87
|
-
'kubernetes',
|
|
88
|
-
region,
|
|
89
|
-
'', // unused vpc id
|
|
90
|
-
name,
|
|
91
|
-
),
|
|
92
|
-
ManifestReader.getManifest(accountId, region, name),
|
|
93
|
-
])
|
|
94
|
-
.then(([securityGroup, manifest]: [ISecurityGroupDetail, IManifest]) => {
|
|
95
|
-
if (!securityGroup) {
|
|
96
|
-
return this.autoClose();
|
|
97
|
-
}
|
|
98
|
-
this.securityGroup = securityGroup as IKubernetesSecurityGroup;
|
|
99
|
-
this.manifest = manifest;
|
|
100
|
-
this.state.loading = false;
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private autoClose(): void {
|
|
105
|
-
if (this.$scope.$$destroyed) {
|
|
106
|
-
return;
|
|
107
|
-
} else {
|
|
108
|
-
this.$state.params.allowModalToStayOpen = true;
|
|
109
|
-
this.$state.go('^', null, { location: 'replace' });
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export const KUBERNETES_SECURITY_GROUP_DETAILS_CTRL = 'spinnaker.kubernetes.securityGroupDetails.controller';
|
|
115
|
-
module(KUBERNETES_SECURITY_GROUP_DETAILS_CTRL, [SECURITY_GROUP_READER]).controller(
|
|
116
|
-
'kubernetesV2SecurityGroupDetailsCtrl',
|
|
117
|
-
KubernetesSecurityGroupDetailsController,
|
|
118
|
-
);
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
<div class="details-panel">
|
|
2
|
-
<div ng-if="ctrl.state.loading" class="header">
|
|
3
|
-
<div class="close-button">
|
|
4
|
-
<a class="btn btn-link" ui-sref="^">
|
|
5
|
-
<span class="glyphicon glyphicon-remove"></span>
|
|
6
|
-
</a>
|
|
7
|
-
</div>
|
|
8
|
-
<h4 class="text-center">
|
|
9
|
-
<span us-spinner="{radius:20, width:6, length: 12}"></span>
|
|
10
|
-
</h4>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<div class="header" ng-if="!ctrl.state.loading">
|
|
14
|
-
<div class="close-button">
|
|
15
|
-
<a class="btn btn-link" ui-sref="^">
|
|
16
|
-
<span class="glyphicon glyphicon-remove"></span>
|
|
17
|
-
</a>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="header-text horizontal middle">
|
|
20
|
-
<cloud-provider-logo
|
|
21
|
-
provider="ctrl.securityGroup.cloudProvider"
|
|
22
|
-
height="'36px'"
|
|
23
|
-
width="'36px'"
|
|
24
|
-
></cloud-provider-logo>
|
|
25
|
-
<h3 class="horizontal middle space-between flex-1" select-on-dbl-click>
|
|
26
|
-
{{ctrl.securityGroup.displayName}}
|
|
27
|
-
|
|
28
|
-
<render-if-feature feature="entityTags">
|
|
29
|
-
<entity-notifications
|
|
30
|
-
ng-if="!state.loading"
|
|
31
|
-
entity="ctrl.securityGroup"
|
|
32
|
-
application="ctrl.app"
|
|
33
|
-
placement="bottom"
|
|
34
|
-
h-offset-percent="90%"
|
|
35
|
-
entity-type="securityGroup"
|
|
36
|
-
page-location="details"
|
|
37
|
-
on-update="ctrl.app.securityGroups.refresh()"
|
|
38
|
-
></entity-notifications>
|
|
39
|
-
</render-if-feature>
|
|
40
|
-
</h3>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="actions">
|
|
43
|
-
<div class="dropdown" uib-dropdown dropdown-append-to-body>
|
|
44
|
-
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" uib-dropdown-toggle ng-hide="isDisabled">
|
|
45
|
-
<firewall-label label="{{ctrl.securityGroup.kind | robotToHuman}}"></firewall-label> Actions
|
|
46
|
-
<span class="caret"></span>
|
|
47
|
-
</button>
|
|
48
|
-
<ul class="dropdown-menu" uib-dropdown-menu role="menu">
|
|
49
|
-
<li>
|
|
50
|
-
<a href ng-click="ctrl.deleteSecurityGroup()">Delete <firewall-label label="Firewall"></firewall-label></a>
|
|
51
|
-
</li>
|
|
52
|
-
<li>
|
|
53
|
-
<a href ng-click="ctrl.editSecurityGroup()">Edit <firewall-label label="Firewall"></firewall-label></a>
|
|
54
|
-
</li>
|
|
55
|
-
<render-if-feature feature="entityTags">
|
|
56
|
-
<add-entity-tag-links
|
|
57
|
-
component="ctrl.securityGroup"
|
|
58
|
-
application="ctrl.app"
|
|
59
|
-
entity-type="securityGroup"
|
|
60
|
-
on-update="ctrl.app.securityGroups.refresh"
|
|
61
|
-
></add-entity-tag-links>
|
|
62
|
-
</render-if-feature>
|
|
63
|
-
</ul>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
|
|
68
|
-
<div ng-if="!ctrl.state.loading" class="content">
|
|
69
|
-
<collapsible-section heading="Information" expanded="true">
|
|
70
|
-
<dl class="dl-horizontal dl-narrow">
|
|
71
|
-
<dt>Created</dt>
|
|
72
|
-
<dd>{{ctrl.securityGroup.createdTime | timestamp}}</dd>
|
|
73
|
-
<dt>Account</dt>
|
|
74
|
-
<dd><account-tag account="ctrl.securityGroup.account" pad="right"></account-tag></dd>
|
|
75
|
-
<dt>Namespace</dt>
|
|
76
|
-
<dd>{{ctrl.securityGroup.namespace}}</dd>
|
|
77
|
-
<dt>Kind</dt>
|
|
78
|
-
<dd>{{ctrl.securityGroup.kind}}</dd>
|
|
79
|
-
</dl>
|
|
80
|
-
</collapsible-section>
|
|
81
|
-
|
|
82
|
-
<kubernetes-annotation-custom-sections
|
|
83
|
-
manifest="ctrl.manifest.manifest"
|
|
84
|
-
resource="ctrl.securityGroup"
|
|
85
|
-
></kubernetes-annotation-custom-sections>
|
|
86
|
-
|
|
87
|
-
<collapsible-section heading="Labels" expanded="true">
|
|
88
|
-
<kubernetes-manifest-labels manifest="ctrl.manifest.manifest"></kubernetes-manifest-labels>
|
|
89
|
-
</collapsible-section>
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|