@spinnaker/oracle 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.
Files changed (138) hide show
  1. package/dist/image/image.reader.d.ts +4 -2
  2. package/dist/index.d.ts +3 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/instance/details/OracleInstanceDetails.d.ts +2 -0
  6. package/dist/loadBalancer/details/OracleLoadBalancerDetails.d.ts +10 -0
  7. package/dist/loadBalancer/loadBalancer.transformer.d.ts +4 -5
  8. package/dist/oracle.provider.d.ts +3 -0
  9. package/dist/pipeline/stages/bake/OracleBakeStageConfig.d.ts +50 -0
  10. package/dist/pipeline/stages/destroyAsg/OracleDestroyAsgStageConfig.d.ts +26 -0
  11. package/dist/pipeline/stages/disableAsg/OracleDisableAsgStageConfig.d.ts +26 -0
  12. package/dist/pipeline/stages/findAmi/OracleFindAmiStageConfig.d.ts +19 -0
  13. package/dist/pipeline/stages/findImageFromTags/OracleFindImageFromTagsStageConfig.d.ts +16 -0
  14. package/dist/pipeline/stages/resizeAsg/OracleResizeAsgStageConfig.d.ts +26 -0
  15. package/dist/pipeline/stages/scaleDownCluster/OracleScaleDownClusterStageConfig.d.ts +20 -0
  16. package/dist/pipeline/stages/shrinkCluster/OracleShrinkClusterStageConfig.d.ts +19 -0
  17. package/dist/securityGroup/details/OracleSecurityGroupDetails.d.ts +2 -0
  18. package/dist/securityGroup/securityGroup.reader.d.ts +3 -2
  19. package/dist/securityGroup/securityGroup.transformer.d.ts +3 -2
  20. package/dist/serverGroup/configure/serverGroupCommandBuilder.service.d.ts +41 -2
  21. package/dist/serverGroup/configure/serverGroupConfiguration.service.d.ts +8 -2
  22. package/dist/serverGroup/details/OracleServerGroupDetails.d.ts +6 -0
  23. package/dist/serverGroup/serverGroup.transformer.d.ts +4 -2
  24. package/package.json +5 -9
  25. package/src/image/image.reader.js +4 -13
  26. package/src/index.ts +4 -1
  27. package/src/instance/details/OracleInstanceDetails.tsx +21 -0
  28. package/src/loadBalancer/details/OracleLoadBalancerDetails.spec.tsx +48 -0
  29. package/src/loadBalancer/details/OracleLoadBalancerDetails.tsx +84 -0
  30. package/src/loadBalancer/loadBalancer.transformer.ts +5 -11
  31. package/src/oracle.provider.spec.ts +45 -0
  32. package/src/oracle.provider.ts +85 -0
  33. package/src/pipeline/stages/bake/OracleBakeStageConfig.tsx +325 -0
  34. package/src/pipeline/stages/destroyAsg/OracleDestroyAsgStageConfig.tsx +87 -0
  35. package/src/pipeline/stages/disableAsg/OracleDisableAsgStageConfig.tsx +105 -0
  36. package/src/pipeline/stages/findAmi/OracleFindAmiStageConfig.tsx +103 -0
  37. package/src/pipeline/stages/findImageFromTags/OracleFindImageFromTagsStageConfig.tsx +90 -0
  38. package/src/pipeline/stages/resizeAsg/OracleResizeAsgStageConfig.tsx +225 -0
  39. package/src/pipeline/stages/scaleDownCluster/OracleScaleDownClusterStageConfig.tsx +122 -0
  40. package/src/pipeline/stages/shrinkCluster/OracleShrinkClusterStageConfig.tsx +136 -0
  41. package/src/securityGroup/details/OracleSecurityGroupDetails.tsx +19 -0
  42. package/src/securityGroup/securityGroup.reader.js +3 -11
  43. package/src/securityGroup/securityGroup.transformer.js +8 -15
  44. package/src/serverGroup/configure/serverGroupCommandBuilder.service.js +71 -87
  45. package/src/serverGroup/configure/serverGroupConfiguration.service.js +210 -214
  46. package/src/serverGroup/details/OracleServerGroupDetails.spec.ts +47 -0
  47. package/src/serverGroup/details/OracleServerGroupDetails.tsx +106 -0
  48. package/src/serverGroup/serverGroup.transformer.js +11 -23
  49. package/dist/common/footer.component.d.ts +0 -2
  50. package/dist/instance/details/instance.details.controller.d.ts +0 -2
  51. package/dist/loadBalancer/configure/createLoadBalancer.controller.d.ts +0 -87
  52. package/dist/loadBalancer/details/loadBalancerDetail.controller.d.ts +0 -21
  53. package/dist/oracle.module.d.ts +0 -2
  54. package/dist/pipeline/stages/bake/bakeExecutionDetails.controller.d.ts +0 -2
  55. package/dist/pipeline/stages/bake/ociBakeStage.d.ts +0 -2
  56. package/dist/pipeline/stages/destroyAsg/destroyAsgStage.d.ts +0 -2
  57. package/dist/pipeline/stages/disableAsg/disableAsgStage.d.ts +0 -2
  58. package/dist/pipeline/stages/findAmi/findAmiStage.d.ts +0 -2
  59. package/dist/pipeline/stages/findImageFromTags/oracleFindImageFromTagsStage.d.ts +0 -2
  60. package/dist/pipeline/stages/resizeAsg/resizeAsgStage.d.ts +0 -2
  61. package/dist/pipeline/stages/scaleDownCluster/scaleDownClusterStage.d.ts +0 -2
  62. package/dist/pipeline/stages/shrinkCluster/shrinkClusterStage.d.ts +0 -2
  63. package/dist/securityGroup/configure/createSecurityGroup.controller.d.ts +0 -2
  64. package/dist/serverGroup/configure/serverGroup.configure.module.d.ts +0 -2
  65. package/dist/serverGroup/configure/wizard/basicSettings/basicSettings.controller.d.ts +0 -2
  66. package/dist/serverGroup/configure/wizard/capacity/capacitySelector.component.d.ts +0 -2
  67. package/dist/serverGroup/configure/wizard/cloneServerGroup.controller.d.ts +0 -2
  68. package/dist/serverGroup/details/resize/resizeCapacity.component.d.ts +0 -2
  69. package/dist/serverGroup/details/resize/resizeServerGroup.controller.d.ts +0 -2
  70. package/dist/serverGroup/details/rollback/rollbackServerGroup.controller.d.ts +0 -2
  71. package/dist/serverGroup/details/serverGroupDetails.controller.d.ts +0 -2
  72. package/src/common/footer.component.html +0 -7
  73. package/src/common/footer.component.js +0 -18
  74. package/src/common/ocid/ocid.component.js +0 -15
  75. package/src/common/ocid/ocid.template.html +0 -10
  76. package/src/common/ocid/truncateOcid.filter.js +0 -14
  77. package/src/instance/details/instance.details.controller.js +0 -56
  78. package/src/instance/details/instanceDetails.html +0 -31
  79. package/src/loadBalancer/configure/backendSets.html +0 -67
  80. package/src/loadBalancer/configure/certificates.html +0 -63
  81. package/src/loadBalancer/configure/createLoadBalancer.controller.spec.ts +0 -201
  82. package/src/loadBalancer/configure/createLoadBalancer.controller.ts +0 -540
  83. package/src/loadBalancer/configure/createLoadBalancer.html +0 -25
  84. package/src/loadBalancer/configure/createLoadBalancerProperties.html +0 -167
  85. package/src/loadBalancer/configure/editLoadBalancer.html +0 -26
  86. package/src/loadBalancer/configure/listeners.html +0 -88
  87. package/src/loadBalancer/details/loadBalancerDetail.controller.spec.ts +0 -62
  88. package/src/loadBalancer/details/loadBalancerDetail.controller.ts +0 -163
  89. package/src/loadBalancer/details/loadBalancerDetail.html +0 -100
  90. package/src/oracle.module.ts +0 -94
  91. package/src/pipeline/disableAsg/disableAsgStage.html +0 -11
  92. package/src/pipeline/disableAsg/disableAsgStage.js +0 -62
  93. package/src/pipeline/disableAsg/disableAsgStepLabel.html +0 -1
  94. package/src/pipeline/stages/bake/bakeExecutionDetails.controller.js +0 -38
  95. package/src/pipeline/stages/bake/bakeExecutionDetails.html +0 -52
  96. package/src/pipeline/stages/bake/bakeStage.html +0 -109
  97. package/src/pipeline/stages/bake/ociBakeStage.js +0 -147
  98. package/src/pipeline/stages/destroyAsg/destroyAsgStage.html +0 -9
  99. package/src/pipeline/stages/destroyAsg/destroyAsgStage.js +0 -64
  100. package/src/pipeline/stages/destroyAsg/destroyAsgStepLabel.html +0 -1
  101. package/src/pipeline/stages/disableAsg/disableAsgStage.html +0 -11
  102. package/src/pipeline/stages/disableAsg/disableAsgStage.js +0 -63
  103. package/src/pipeline/stages/disableAsg/disableAsgStepLabel.html +0 -1
  104. package/src/pipeline/stages/findAmi/findAmiStage.html +0 -20
  105. package/src/pipeline/stages/findAmi/findAmiStage.js +0 -82
  106. package/src/pipeline/stages/findImageFromTags/findImageFromTagsExecutionDetails.html +0 -44
  107. package/src/pipeline/stages/findImageFromTags/findImageFromTagsStage.html +0 -11
  108. package/src/pipeline/stages/findImageFromTags/oracleFindImageFromTagsStage.js +0 -36
  109. package/src/pipeline/stages/resizeAsg/resizeAsgStage.html +0 -89
  110. package/src/pipeline/stages/resizeAsg/resizeAsgStage.js +0 -101
  111. package/src/pipeline/stages/resizeAsg/resizeAsgStepLabel.html +0 -1
  112. package/src/pipeline/stages/scaleDownCluster/scaleDownClusterStage.html +0 -35
  113. package/src/pipeline/stages/scaleDownCluster/scaleDownClusterStage.js +0 -75
  114. package/src/pipeline/stages/shrinkCluster/shrinkClusterStage.html +0 -34
  115. package/src/pipeline/stages/shrinkCluster/shrinkClusterStage.js +0 -71
  116. package/src/securityGroup/configure/createSecurityGroup.controller.js +0 -19
  117. package/src/securityGroup/configure/createSecurityGroup.html +0 -19
  118. package/src/serverGroup/configure/serverGroup.configure.module.js +0 -15
  119. package/src/serverGroup/configure/wizard/advancedSettings/advancedSettings.html +0 -13
  120. package/src/serverGroup/configure/wizard/basicSettings/basicSettings.controller.js +0 -35
  121. package/src/serverGroup/configure/wizard/basicSettings/basicSettings.html +0 -134
  122. package/src/serverGroup/configure/wizard/capacity/capacity.html +0 -7
  123. package/src/serverGroup/configure/wizard/capacity/capacitySelector.component.html +0 -13
  124. package/src/serverGroup/configure/wizard/capacity/capacitySelector.component.js +0 -17
  125. package/src/serverGroup/configure/wizard/cloneServerGroup.controller.js +0 -109
  126. package/src/serverGroup/configure/wizard/instanceType/instanceType.html +0 -29
  127. package/src/serverGroup/configure/wizard/loadBalancers/loadBalancers.html +0 -44
  128. package/src/serverGroup/configure/wizard/network/networkSettings.html +0 -15
  129. package/src/serverGroup/configure/wizard/serverGroupWizard.html +0 -40
  130. package/src/serverGroup/configure/wizard/templateSelection/templateSelection.html +0 -9
  131. package/src/serverGroup/details/resize/resizeCapacity.component.html +0 -36
  132. package/src/serverGroup/details/resize/resizeCapacity.component.js +0 -42
  133. package/src/serverGroup/details/resize/resizeServerGroup.controller.js +0 -62
  134. package/src/serverGroup/details/resize/resizeServerGroup.html +0 -33
  135. package/src/serverGroup/details/rollback/rollbackServerGroup.controller.js +0 -73
  136. package/src/serverGroup/details/rollback/rollbackServerGroup.html +0 -41
  137. package/src/serverGroup/details/serverGroupDetails.controller.js +0 -230
  138. package/src/serverGroup/details/serverGroupDetails.html +0 -94
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function OracleInstanceDetails({ instance }: any): JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export declare function useOracleLoadBalancerDetails({ app, loadBalancerParams, autoClose }: any): {
3
+ data: any;
4
+ loading: boolean;
5
+ error: any;
6
+ refetch: () => void;
7
+ };
8
+ declare function OracleLoadBalancerInformationSection({ loadBalancer }: any): JSX.Element;
9
+ export declare const OracleLoadBalancerDetailsSections: (typeof OracleLoadBalancerInformationSection)[];
10
+ export {};
@@ -1,12 +1,11 @@
1
1
  import type { Application } from '@spinnaker/core';
2
- import type { IOracleBackEndSet, IOracleListener, IOracleListenerCertificate, IOracleListenerSSLConfiguration, IOracleLoadBalancer, IOracleLoadBalancerUpsertCommand } from '../domain/IOracleLoadBalancer';
2
+ import type { IOracleBackEndSet, IOracleListener, IOracleListenerCertificate, IOracleListenerSSLConfiguration, IOracleLoadBalancer } from '../domain/IOracleLoadBalancer';
3
3
  export declare class OracleLoadBalancerTransformer {
4
- normalizeLoadBalancer(loadBalancer: IOracleLoadBalancer): PromiseLike<IOracleLoadBalancer>;
5
- convertLoadBalancerForEditing(loadBalancer: IOracleLoadBalancer): IOracleLoadBalancerUpsertCommand;
6
- constructNewLoadBalancerTemplate(application: Application): IOracleLoadBalancerUpsertCommand;
4
+ normalizeLoadBalancer(loadBalancer: IOracleLoadBalancer): Promise<IOracleLoadBalancer>;
5
+ convertLoadBalancerForEditing(loadBalancer: any): any;
6
+ constructNewLoadBalancerTemplate(application: Application): any;
7
7
  constructNewListenerTemplate(): IOracleListener;
8
8
  constructNewBackendSetTemplate(name: string): IOracleBackEndSet;
9
9
  constructNewSSLConfiguration(): IOracleListenerSSLConfiguration;
10
10
  constructNewCertificateTemplate(name: string): IOracleListenerCertificate;
11
11
  }
12
- export declare const ORACLE_LOAD_BALANCER_TRANSFORMER = "spinnaker.oracle.loadBalancer.transformer";
@@ -0,0 +1,3 @@
1
+ import './helpContents/oracleHelpContents';
2
+ export declare function registerOracleProvider(): void;
3
+ export declare function registerOraclePipelineStages(): void;
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import type { IAccount, IStageConfigProps } from '@spinnaker/core';
3
+ import { BakeExecutionLabel, ExecutionDetailsTasks } from '@spinnaker/core';
4
+ interface IBaseOsOption {
5
+ id: string;
6
+ shortDescription?: string;
7
+ detailedDescription?: string;
8
+ }
9
+ interface IOracleBakeStageState {
10
+ accounts: IAccount[];
11
+ baseOsOptions: IBaseOsOption[];
12
+ extendedAttributeKey: string;
13
+ extendedAttributeValue: string;
14
+ loading: boolean;
15
+ }
16
+ export declare class OracleBakeStageConfig extends React.Component<IStageConfigProps, IOracleBakeStageState> {
17
+ private mounted;
18
+ state: IOracleBakeStageState;
19
+ componentDidMount(): void;
20
+ componentWillUnmount(): void;
21
+ private loadRegionForAccount;
22
+ private accountChanged;
23
+ private updateExtendedAttribute;
24
+ private removeExtendedAttribute;
25
+ private addExtendedAttribute;
26
+ render(): JSX.Element;
27
+ }
28
+ export declare const oracleBakeStage: {
29
+ key: string;
30
+ provides: string;
31
+ cloudProvider: string;
32
+ label: string;
33
+ description: string;
34
+ component: typeof OracleBakeStageConfig;
35
+ executionDetailsSections: (typeof ExecutionDetailsTasks)[];
36
+ executionLabelComponent: typeof BakeExecutionLabel;
37
+ supportsCustomTimeout: boolean;
38
+ validators: ({
39
+ type: string;
40
+ fieldName: string;
41
+ fieldLabel?: undefined;
42
+ } | {
43
+ type: string;
44
+ fieldName: string;
45
+ fieldLabel: string;
46
+ })[];
47
+ restartable: boolean;
48
+ };
49
+ export declare function registerOracleBakeStage(): void;
50
+ export {};
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import type { IStageConfigProps } from '@spinnaker/core';
3
+ export declare function OracleDestroyAsgStageConfig(props: IStageConfigProps): JSX.Element;
4
+ export declare const oracleDestroyAsgStage: {
5
+ key: string;
6
+ provides: string;
7
+ cloudProvider: string;
8
+ component: typeof OracleDestroyAsgStageConfig;
9
+ validators: ({
10
+ type: string;
11
+ message: string;
12
+ fieldName?: undefined;
13
+ fieldLabel?: undefined;
14
+ } | {
15
+ type: string;
16
+ fieldName: string;
17
+ message?: undefined;
18
+ fieldLabel?: undefined;
19
+ } | {
20
+ type: string;
21
+ fieldName: string;
22
+ fieldLabel: string;
23
+ message?: undefined;
24
+ })[];
25
+ };
26
+ export declare function registerOracleDestroyAsgStage(): void;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import type { IStageConfigProps } from '@spinnaker/core';
3
+ export declare function OracleDisableAsgStageConfig(props: IStageConfigProps): JSX.Element;
4
+ export declare const oracleDisableAsgStage: {
5
+ key: string;
6
+ provides: string;
7
+ cloudProvider: string;
8
+ component: typeof OracleDisableAsgStageConfig;
9
+ validators: ({
10
+ type: string;
11
+ message: string;
12
+ fieldName?: undefined;
13
+ fieldLabel?: undefined;
14
+ } | {
15
+ type: string;
16
+ fieldName: string;
17
+ message?: undefined;
18
+ fieldLabel?: undefined;
19
+ } | {
20
+ type: string;
21
+ fieldName: string;
22
+ fieldLabel: string;
23
+ message?: undefined;
24
+ })[];
25
+ };
26
+ export declare function registerOracleDisableAsgStage(): void;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { IStageConfigProps } from '@spinnaker/core';
3
+ export declare function OracleFindAmiStageConfig(props: IStageConfigProps): JSX.Element;
4
+ export declare const oracleFindAmiStage: {
5
+ key: string;
6
+ provides: string;
7
+ cloudProvider: string;
8
+ component: typeof OracleFindAmiStageConfig;
9
+ validators: ({
10
+ type: string;
11
+ fieldName: string;
12
+ fieldLabel?: undefined;
13
+ } | {
14
+ type: string;
15
+ fieldName: string;
16
+ fieldLabel: string;
17
+ })[];
18
+ };
19
+ export declare function registerOracleFindAmiStage(): void;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { IStageConfigProps } from '@spinnaker/core';
3
+ import { ExecutionDetailsTasks } from '@spinnaker/core';
4
+ export declare function OracleFindImageFromTagsStageConfig({ pipeline, stage, updateStageField }: IStageConfigProps): JSX.Element;
5
+ export declare const oracleFindImageFromTagsStage: {
6
+ key: string;
7
+ provides: string;
8
+ cloudProvider: string;
9
+ component: typeof OracleFindImageFromTagsStageConfig;
10
+ executionDetailsSections: (typeof ExecutionDetailsTasks)[];
11
+ validators: {
12
+ type: string;
13
+ fieldName: string;
14
+ }[];
15
+ };
16
+ export declare function registerOracleFindImageFromTagsStage(): void;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import type { IStageConfigProps } from '@spinnaker/core';
3
+ export declare function OracleResizeAsgStageConfig(props: IStageConfigProps): JSX.Element;
4
+ export declare const oracleResizeAsgStage: {
5
+ key: string;
6
+ provides: string;
7
+ cloudProvider: string;
8
+ component: typeof OracleResizeAsgStageConfig;
9
+ validators: ({
10
+ type: string;
11
+ message: string;
12
+ fieldName?: undefined;
13
+ fieldLabel?: undefined;
14
+ } | {
15
+ type: string;
16
+ fieldName: string;
17
+ message?: undefined;
18
+ fieldLabel?: undefined;
19
+ } | {
20
+ type: string;
21
+ fieldName: string;
22
+ fieldLabel: string;
23
+ message?: undefined;
24
+ })[];
25
+ };
26
+ export declare function registerOracleResizeAsgStage(): void;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import type { IStageConfigProps } from '@spinnaker/core';
3
+ export declare function OracleScaleDownClusterStageConfig(props: IStageConfigProps): JSX.Element;
4
+ export declare const oracleScaleDownClusterStage: {
5
+ key: string;
6
+ provides: string;
7
+ cloudProvider: string;
8
+ component: typeof OracleScaleDownClusterStageConfig;
9
+ validators: ({
10
+ type: string;
11
+ fieldName: string;
12
+ fieldLabel?: undefined;
13
+ } | {
14
+ type: string;
15
+ fieldName: string;
16
+ fieldLabel: string;
17
+ })[];
18
+ strategy: boolean;
19
+ };
20
+ export declare function registerOracleScaleDownClusterStage(): void;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { IStageConfigProps } from '@spinnaker/core';
3
+ export declare function OracleShrinkClusterStageConfig(props: IStageConfigProps): JSX.Element;
4
+ export declare const oracleShrinkClusterStage: {
5
+ key: string;
6
+ provides: string;
7
+ cloudProvider: string;
8
+ component: typeof OracleShrinkClusterStageConfig;
9
+ validators: ({
10
+ type: string;
11
+ fieldName: string;
12
+ fieldLabel?: undefined;
13
+ } | {
14
+ type: string;
15
+ fieldName: string;
16
+ fieldLabel: string;
17
+ })[];
18
+ };
19
+ export declare function registerOracleShrinkClusterStage(): void;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function OracleSecurityGroupDetails({ resolvedSecurityGroup }: any): JSX.Element;
@@ -1,2 +1,3 @@
1
- export const ORACLE_SECURITYGROUP_SECURITYGROUP_READER: "spinnaker.oracle.securityGroup.reader";
2
- export const name: "spinnaker.oracle.securityGroup.reader";
1
+ export class OracleSecurityGroupReader {
2
+ resolveIndexedSecurityGroup(indexedSecurityGroups: any, container: any, securityGroupId: any): any;
3
+ }
@@ -1,2 +1,3 @@
1
- export const ORACLE_SECURITYGROUP_SECURITYGROUP_TRANSFORMER: "spinnaker.oracle.securityGroup.transformer";
2
- export const name: "spinnaker.oracle.securityGroup.transformer";
1
+ export class OracleSecurityGroupTransformer {
2
+ normalizeSecurityGroup(securityGroup: any): Promise<void>;
3
+ }
@@ -1,2 +1,41 @@
1
- export const ORACLE_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER_SERVICE: "spinnaker.oracle.serverGroupCommandBuilder.service";
2
- export const name: "spinnaker.oracle.serverGroupCommandBuilder.service";
1
+ export class OracleServerGroupCommandBuilder {
2
+ buildNewServerGroupCommand(application: any, defaults: any): Promise<{
3
+ account: any;
4
+ application: any;
5
+ capacity: {
6
+ desired: number;
7
+ };
8
+ region: any;
9
+ selectedProvider: string;
10
+ viewState: {
11
+ mode: any;
12
+ disableStrategySelection: boolean;
13
+ };
14
+ }>;
15
+ buildServerGroupCommandFromExisting(application: any, serverGroup: any, mode: any): Promise<{
16
+ account: any;
17
+ application: any;
18
+ shape: any;
19
+ strategy: string;
20
+ stack: string;
21
+ vpcId: any;
22
+ subnetId: any;
23
+ region: any;
24
+ availabilityDomain: any;
25
+ sshAuthorizedKeys: any;
26
+ selectedProvider: string;
27
+ capacity: {
28
+ desired: any;
29
+ };
30
+ viewState: {
31
+ mode: any;
32
+ disableStrategySelection: boolean;
33
+ };
34
+ }>;
35
+ buildServerGroupCommandFromPipeline(application: any, originalCluster: any): Promise<any>;
36
+ buildNewServerGroupCommandForPipeline(): Promise<{
37
+ viewState: {
38
+ requiresTemplateSelection: boolean;
39
+ };
40
+ }>;
41
+ }
@@ -1,2 +1,8 @@
1
- export const ORACLE_SERVERGROUP_CONFIGURE_SERVERGROUPCONFIGURATION_SERVICE: "spinnaker.oracle.serverGroup.configure.configuration.service";
2
- export const name: "spinnaker.oracle.serverGroup.configure.configuration.service";
1
+ export class OracleServerGroupConfigurationService {
2
+ static requiresDeckRuntimeServices: boolean;
3
+ constructor(_promiseService: any, runtimeServices: any);
4
+ oracleImageReader: OracleImageReader;
5
+ securityGroupReader: any;
6
+ configureCommand(application: any, command: any): Promise<void>;
7
+ }
8
+ import { OracleImageReader } from '../../image/image.reader';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare function oracleServerGroupDetailsGetter(props: any, autoClose: () => void): import("rxjs").Observable<any>;
3
+ export declare function OracleServerGroupActions({ app, serverGroup }: any): JSX.Element;
4
+ export declare function OracleServerGroupInformationSection({ serverGroup }: any): JSX.Element;
5
+ export declare function OracleServerGroupSizeSection({ serverGroup }: any): JSX.Element;
6
+ export declare function OracleServerGroupLaunchConfigSection({ serverGroup }: any): JSX.Element;
@@ -1,2 +1,4 @@
1
- export const ORACLE_SERVERGROUP_SERVERGROUP_TRANSFORMER: "spinnaker.oracle.serverGroup.transformer";
2
- export const name: "spinnaker.oracle.serverGroup.transformer";
1
+ export class OracleServerGroupTransformer {
2
+ normalizeServerGroup(serverGroup: any): Promise<any>;
3
+ convertServerGroupCommandToDeployConfiguration(base: any): any;
4
+ }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/spinnaker/spinnaker.git"
6
6
  },
7
7
  "license": "Apache-2.0",
8
- "version": "2026.2.2",
8
+ "version": "2026.3.0",
9
9
  "module": "dist/index.js",
10
10
  "typings": "dist/index.d.ts",
11
11
  "publishConfig": {
@@ -22,21 +22,17 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@spinnaker/core": "^0.29.1",
25
- "@uirouter/angularjs": "1.0.26",
26
- "@uirouter/core": "6.0.8",
27
- "angular": "1.8.3",
28
- "angular-ui-bootstrap": "2.5.0",
29
25
  "lodash": "4.18.1",
30
- "ngimport": "0.6.1"
26
+ "react": "16.14.0",
27
+ "rxjs": "6.6.7"
31
28
  },
32
29
  "devDependencies": {
33
30
  "@spinnaker/eslint-plugin": "^3.0.2",
34
31
  "@spinnaker/scripts": "^0.4.0",
35
- "@types/angular": "1.6.26",
36
- "@types/angular-ui-bootstrap": "0.13.41",
37
32
  "@types/lodash": "4.14.64",
33
+ "@types/react": "16.14.10",
38
34
  "shx": "0.3.3",
39
35
  "typescript": "5.0.4"
40
36
  },
41
- "gitHead": "db086c61529c9421e8c0c2d4a2b8eca88c675ac8"
37
+ "gitHead": "0f7d75f5d4b42c1675e2ecc69a53f8eb73090eb9"
42
38
  }
@@ -1,13 +1,9 @@
1
1
  'use strict';
2
2
 
3
- import { module } from 'angular';
4
-
5
3
  import { REST } from '@spinnaker/core';
6
4
 
7
- export const ORACLE_IMAGE_IMAGE_READER = 'spinnaker.oracle.image.reader';
8
- export const name = ORACLE_IMAGE_IMAGE_READER; // for backwards compatibility
9
- module(ORACLE_IMAGE_IMAGE_READER, []).factory('oracleImageReader', function () {
10
- function findImages(params) {
5
+ export class OracleImageReader {
6
+ findImages(params) {
11
7
  return REST('/images/find')
12
8
  .query(params)
13
9
  .get()
@@ -16,7 +12,7 @@ module(ORACLE_IMAGE_IMAGE_READER, []).factory('oracleImageReader', function () {
16
12
  });
17
13
  }
18
14
 
19
- function getImage(imageId, region, credentials) {
15
+ getImage(imageId, region, credentials) {
20
16
  return REST('/images')
21
17
  .path(credentials, region, imageId)
22
18
  .query({ provider: 'oracle' })
@@ -30,9 +26,4 @@ module(ORACLE_IMAGE_IMAGE_READER, []).factory('oracleImageReader', function () {
30
26
  },
31
27
  );
32
28
  }
33
-
34
- return {
35
- findImages,
36
- getImage,
37
- };
38
- });
29
+ }
package/src/index.ts CHANGED
@@ -1 +1,4 @@
1
- export { ORACLE_MODULE } from './oracle.module';
1
+ import './oracle.provider';
2
+
3
+ export * from './domain/IOracleLoadBalancer';
4
+ export * from './oracle.settings';
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { CollapsibleSection, timestamp } from '@spinnaker/core';
3
+
4
+ export function OracleInstanceDetails({ instance }: any) {
5
+ return (
6
+ <CollapsibleSection heading="Instance Information" defaultExpanded={true}>
7
+ <dl className="dl-horizontal dl-narrow">
8
+ <dt>Launched</dt>
9
+ <dd>{instance.launchTime ? timestamp(instance.launchTime) : '(Unknown)'}</dd>
10
+ <dt>In</dt>
11
+ <dd>{instance.availabilityZone}</dd>
12
+ <dt>Type</dt>
13
+ <dd>{instance.instanceType}</dd>
14
+ <dt>Server Group</dt>
15
+ <dd>{instance.serverGroup}</dd>
16
+ <dt>Network</dt>
17
+ <dd>{instance.network}</dd>
18
+ </dl>
19
+ </CollapsibleSection>
20
+ );
21
+ }
@@ -0,0 +1,48 @@
1
+ import { mount } from 'enzyme';
2
+ import React from 'react';
3
+ import { BehaviorSubject } from 'rxjs';
4
+
5
+ import { useOracleLoadBalancerDetails } from './OracleLoadBalancerDetails';
6
+
7
+ describe('useOracleLoadBalancerDetails', () => {
8
+ function renderHook(status: any, appOverrides: any = {}) {
9
+ let result: any;
10
+ const dataSource = {
11
+ status$: new BehaviorSubject(status),
12
+ refresh: jasmine.createSpy('refresh'),
13
+ };
14
+ const app = {
15
+ getDataSource: jasmine.createSpy('getDataSource').and.returnValue(dataSource),
16
+ ...appOverrides,
17
+ };
18
+ const props = {
19
+ app,
20
+ loadBalancerParams: { name: 'my-lb', region: 'us-phoenix-1', accountId: 'oracle-account' },
21
+ autoClose: jasmine.createSpy('autoClose'),
22
+ };
23
+
24
+ function TestComponent() {
25
+ result = useOracleLoadBalancerDetails(props);
26
+ return null;
27
+ }
28
+
29
+ const component = mount(<TestComponent />);
30
+ return { result, component, dataSource, props };
31
+ }
32
+
33
+ it('waits for load balancers to load before reporting not found', () => {
34
+ const { result, props } = renderHook({ status: 'NOT_INITIALIZED', loaded: false, data: [], lastRefresh: 0 });
35
+
36
+ expect(result.loading).toBe(true);
37
+ expect(result.error).toBeUndefined();
38
+ expect(props.autoClose).not.toHaveBeenCalled();
39
+ });
40
+
41
+ it('closes after loaded load balancers do not contain the requested load balancer', () => {
42
+ const { result, props } = renderHook({ status: 'FETCHED', loaded: true, data: [], lastRefresh: 1 });
43
+
44
+ expect(result.loading).toBe(false);
45
+ expect(result.error).toBe('Load balancer not found');
46
+ expect(props.autoClose).toHaveBeenCalled();
47
+ });
48
+ });
@@ -0,0 +1,84 @@
1
+ import React, { useEffect } from 'react';
2
+ import { AccountTag, CollapsibleSection, useDataSource } from '@spinnaker/core';
3
+
4
+ export function useOracleLoadBalancerDetails({ app, loadBalancerParams, autoClose }: any) {
5
+ const { data: loadBalancers, loaded, refresh, error: loadBalancersError } = useDataSource<any[]>(
6
+ app.getDataSource('loadBalancers'),
7
+ );
8
+ const loading = !loaded;
9
+ const loadBalancer = loading
10
+ ? undefined
11
+ : (loadBalancers || []).find(
12
+ (test: any) =>
13
+ test.name === loadBalancerParams.name &&
14
+ test.region === loadBalancerParams.region &&
15
+ test.account === loadBalancerParams.accountId,
16
+ );
17
+
18
+ useEffect(() => {
19
+ if (!loading && !loadBalancersError && !loadBalancer) {
20
+ autoClose();
21
+ }
22
+ }, [autoClose, loadBalancer, loadBalancersError, loading]);
23
+
24
+ return {
25
+ data: loadBalancer,
26
+ loading,
27
+ error: loadBalancersError || (!loading && !loadBalancer ? 'Load balancer not found' : undefined),
28
+ refetch: refresh,
29
+ };
30
+ }
31
+
32
+ function OracleLoadBalancerInformationSection({ loadBalancer }: any) {
33
+ return (
34
+ <CollapsibleSection heading="Load Balancer Details" defaultExpanded={true}>
35
+ <dl className="dl-horizontal dl-narrow">
36
+ <dt>Created</dt>
37
+ <dd>{loadBalancer.timeCreated}</dd>
38
+ <dt>In</dt>
39
+ <dd>
40
+ <AccountTag account={loadBalancer.account} /> {loadBalancer.region}
41
+ </dd>
42
+ <dt>Subnets</dt>
43
+ <dd>{(loadBalancer.subnets || []).map((subnet: any) => subnet.name).join(', ')}</dd>
44
+ <dt>Public IP</dt>
45
+ <dd>{(loadBalancer.ipAddresses || []).map((ip: any) => ip.ipAddress).join(', ')}</dd>
46
+ </dl>
47
+ </CollapsibleSection>
48
+ );
49
+ }
50
+
51
+ function OracleLoadBalancerBackendSetsSection({ loadBalancer }: any) {
52
+ return (
53
+ <CollapsibleSection heading="Backend Sets">
54
+ {(Object.values(loadBalancer.backendSets || {}) as any[]).map((backendSet: any) => (
55
+ <dl key={backendSet.name || backendSet.policy}>
56
+ <dt>{backendSet.name}</dt>
57
+ <dd>{backendSet.policy}</dd>
58
+ <dd>Health Check: {backendSet.healthChecker?.urlPath}</dd>
59
+ </dl>
60
+ ))}
61
+ </CollapsibleSection>
62
+ );
63
+ }
64
+
65
+ function OracleLoadBalancerListenersSection({ loadBalancer }: any) {
66
+ return (
67
+ <CollapsibleSection heading="Listeners">
68
+ <dl>
69
+ <dt>Listener - Backend Set</dt>
70
+ {(Object.values(loadBalancer.listeners || {}) as any[]).map((listener: any) => (
71
+ <dd key={`${listener.protocol}-${listener.port}`}>
72
+ {listener.protocol}:{listener.port} - {listener.defaultBackendSetName}
73
+ </dd>
74
+ ))}
75
+ </dl>
76
+ </CollapsibleSection>
77
+ );
78
+ }
79
+
80
+ export const OracleLoadBalancerDetailsSections = [
81
+ OracleLoadBalancerInformationSection,
82
+ OracleLoadBalancerBackendSetsSection,
83
+ OracleLoadBalancerListenersSection,
84
+ ];
@@ -1,6 +1,3 @@
1
- import { module } from 'angular';
2
- import { $q } from 'ngimport';
3
-
4
1
  import type { Application } from '@spinnaker/core';
5
2
  import type {
6
3
  IOracleBackEndSet,
@@ -15,7 +12,7 @@ import { OracleProviderSettings } from '../oracle.settings';
15
12
  import { OracleDefaultProviderSettings } from '../oracle.settings';
16
13
 
17
14
  export class OracleLoadBalancerTransformer {
18
- public normalizeLoadBalancer(loadBalancer: IOracleLoadBalancer): PromiseLike<IOracleLoadBalancer> {
15
+ public normalizeLoadBalancer(loadBalancer: IOracleLoadBalancer): Promise<IOracleLoadBalancer> {
19
16
  /*loadBalancer.serverGroups.forEach(function(serverGroup) {
20
17
  serverGroup.account = loadBalancer.account;
21
18
  serverGroup.region = loadBalancer.region;
@@ -39,10 +36,10 @@ export class OracleLoadBalancerTransformer {
39
36
  .map('detachedInstances')
40
37
  .flatten()
41
38
  .value();*/
42
- return $q.resolve(loadBalancer);
39
+ return Promise.resolve(loadBalancer);
43
40
  }
44
41
 
45
- public convertLoadBalancerForEditing(loadBalancer: IOracleLoadBalancer): IOracleLoadBalancerUpsertCommand {
42
+ public convertLoadBalancerForEditing(loadBalancer: any): any {
46
43
  if (loadBalancer.listeners) {
47
44
  Object.keys(loadBalancer.listeners).forEach((key) => {
48
45
  const lis = loadBalancer.listeners[key];
@@ -56,7 +53,7 @@ export class OracleLoadBalancerTransformer {
56
53
  region: loadBalancer.region,
57
54
  shape: loadBalancer.shape,
58
55
  isPrivate: loadBalancer.isPrivate,
59
- subnetIds: loadBalancer.subnets.map((subnet) => subnet.id),
56
+ subnetIds: loadBalancer.subnets.map((subnet: any) => subnet.id),
60
57
  certificates: loadBalancer.certificates,
61
58
  listeners: loadBalancer.listeners,
62
59
  hostnames: loadBalancer.hostnames,
@@ -70,7 +67,7 @@ export class OracleLoadBalancerTransformer {
70
67
  return toEdit;
71
68
  }
72
69
 
73
- public constructNewLoadBalancerTemplate(application: Application): IOracleLoadBalancerUpsertCommand {
70
+ public constructNewLoadBalancerTemplate(application: Application): any {
74
71
  const defaultCredentials =
75
72
  application.defaultCredentials.oracle ||
76
73
  (OracleProviderSettings.defaults
@@ -139,6 +136,3 @@ export class OracleLoadBalancerTransformer {
139
136
  };
140
137
  }
141
138
  }
142
-
143
- export const ORACLE_LOAD_BALANCER_TRANSFORMER = 'spinnaker.oracle.loadBalancer.transformer';
144
- module(ORACLE_LOAD_BALANCER_TRANSFORMER, []).service('oracleLoadBalancerTransformer', OracleLoadBalancerTransformer);