@spinnaker/kubernetes 0.2.2 → 0.2.6

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.
@@ -9,6 +9,7 @@ export interface IKubernetesResource {
9
9
  export interface IKubernetesInstance extends IInstance, IKubernetesResource {
10
10
  humanReadableName: string;
11
11
  moniker: IMoniker;
12
+ publicDnsName?: string;
12
13
  }
13
14
  export interface IKubernetesLoadBalancer extends ILoadBalancer, IKubernetesResource {
14
15
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spinnaker/kubernetes",
3
3
  "license": "Apache-2.0",
4
- "version": "0.2.2",
4
+ "version": "0.2.6",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "lib": "npm run build"
14
14
  },
15
15
  "dependencies": {
16
- "@spinnaker/core": "^0.14.2",
16
+ "@spinnaker/core": "^0.16.1",
17
17
  "@uirouter/angularjs": "1.0.26",
18
18
  "@uirouter/react": "1.0.7",
19
19
  "angular": "1.6.10",
@@ -35,8 +35,8 @@
35
35
  "rxjs": "6.6.7"
36
36
  },
37
37
  "devDependencies": {
38
- "@spinnaker/eslint-plugin": "^3.0.0",
39
- "@spinnaker/scripts": "^0.2.2",
38
+ "@spinnaker/eslint-plugin": "^3.0.1",
39
+ "@spinnaker/scripts": "^0.2.4",
40
40
  "@types/angular": "1.6.26",
41
41
  "@types/angular-ui-bootstrap": "0.13.41",
42
42
  "@types/dompurify": "0.0.29",
@@ -50,5 +50,5 @@
50
50
  "shx": "0.3.3",
51
51
  "typescript": "4.3.5"
52
52
  },
53
- "gitHead": "dbd5c6c7f9a3f282cd2534887caf132835cf49e2"
53
+ "gitHead": "17b98201c6de43729a39f6d205656d0c4be1db16"
54
54
  }
@@ -42,6 +42,7 @@ class KubernetesInstanceDetailsController implements IController {
42
42
  public instance: IKubernetesInstance;
43
43
  public manifest: IManifest;
44
44
  public consoleOutputInstance: IConsoleOutputInstance;
45
+ public environment: string;
45
46
 
46
47
  public static $inject = ['instance', '$uibModal', '$q', '$scope', 'app', '$state'];
47
48
  constructor(
@@ -68,5 +68,13 @@
68
68
  <collapsible-section heading="Labels" expanded="true">
69
69
  <kubernetes-manifest-labels manifest="ctrl.manifest.manifest"></kubernetes-manifest-labels>
70
70
  </collapsible-section>
71
+
72
+ <instance-links
73
+ address="ctrl.instance.publicDnsName"
74
+ application="ctrl.app"
75
+ instance="ctrl.instance"
76
+ moniker="ctrl.instance.moniker"
77
+ environment="ctrl.environment"
78
+ ></instance-links>
71
79
  </div>
72
80
  </div>
@@ -18,6 +18,7 @@ export interface IKubernetesResource {
18
18
  export interface IKubernetesInstance extends IInstance, IKubernetesResource {
19
19
  humanReadableName: string;
20
20
  moniker: IMoniker;
21
+ publicDnsName?: string;
21
22
  }
22
23
 
23
24
  export interface IKubernetesLoadBalancer extends ILoadBalancer, IKubernetesResource {}
@@ -1,6 +1,7 @@
1
- import React from 'react';
2
1
  import { mount } from 'enzyme';
3
2
  import { load } from 'js-yaml';
3
+ import React from 'react';
4
+
4
5
  import { ManifestImageDetails } from '../manifest/ManifestImageDetails';
5
6
 
6
7
  describe('<ManifestImageDetails />', () => {
@@ -1,22 +1,25 @@
1
- import React from 'react';
2
1
  import { mount } from 'enzyme';
3
- import Select, { Creatable, Option } from 'react-select';
4
2
  import { $q } from 'ngimport';
5
- import Spy = jasmine.Spy;
3
+ import React from 'react';
4
+ import type { Option } from 'react-select';
5
+ import Select, { Creatable } from 'react-select';
6
6
 
7
7
  import {
8
8
  AccountSelectInput,
9
9
  AccountService,
10
- ScopeClusterSelector,
11
10
  createFakeReactSyntheticEvent,
12
11
  noop,
12
+ ScopeClusterSelector,
13
13
  } from '@spinnaker/core';
14
14
 
15
- import { ManifestKindSearchService } from '../ManifestKindSearch';
16
- import { ManifestSelector, IManifestSelectorState } from './ManifestSelector';
15
+ import type { IManifestLabelSelector } from './IManifestLabelSelector';
17
16
  import { SelectorMode } from './IManifestSelector';
17
+ import { ManifestKindSearchService } from '../ManifestKindSearch';
18
+ import type { IManifestSelectorState } from './ManifestSelector';
19
+ import { ManifestSelector } from './ManifestSelector';
18
20
  import LabelEditor from './labelEditor/LabelEditor';
19
- import { IManifestLabelSelector } from './IManifestLabelSelector';
21
+
22
+ import Spy = jasmine.Spy;
20
23
 
21
24
  describe('<ManifestSelector />', () => {
22
25
  let searchService: Spy;
@@ -1,7 +1,9 @@
1
+ import type { ShallowWrapper } from 'enzyme';
2
+ import { shallow } from 'enzyme';
1
3
  import React from 'react';
2
- import { shallow, ShallowWrapper } from 'enzyme';
3
4
 
4
- import LabelEditor, { ILabelEditorProps } from './LabelEditor';
5
+ import type { ILabelEditorProps } from './LabelEditor';
6
+ import LabelEditor from './LabelEditor';
5
7
 
6
8
  describe('<LabelEditor />', () => {
7
9
  let onChangeSpy: jasmine.Spy;
@@ -1,9 +1,11 @@
1
+ import type { ShallowWrapper } from 'enzyme';
2
+ import { shallow } from 'enzyme';
1
3
  import React from 'react';
2
- import { shallow, ShallowWrapper } from 'enzyme';
3
4
 
4
5
  import { StageConfigField } from '@spinnaker/core';
5
6
 
6
- import DeleteManifestOptionsForm, { IDeleteManifestOptionsFormProps } from './DeleteManifestOptionsForm';
7
+ import type { IDeleteManifestOptionsFormProps } from './DeleteManifestOptionsForm';
8
+ import DeleteManifestOptionsForm from './DeleteManifestOptionsForm';
7
9
 
8
10
  describe('<DeleteManifestOptionsForm />', () => {
9
11
  let onChangeSpy: jasmine.Spy;
@@ -1,6 +1,8 @@
1
- import { IQService, IScope, mock } from 'angular';
1
+ import type { IQService, IScope } from 'angular';
2
+ import { mock } from 'angular';
2
3
 
3
- import { ApplicationModelBuilder, Application, noop } from '@spinnaker/core';
4
+ import type { Application } from '@spinnaker/core';
5
+ import { ApplicationModelBuilder, noop } from '@spinnaker/core';
4
6
  import { ManifestCopier } from './ManifestCopier';
5
7
 
6
8
  describe('<ManifestCopier />', () => {
@@ -1,13 +1,10 @@
1
- import React from 'react';
2
1
  import { shallow } from 'enzyme';
2
+ import React from 'react';
3
3
 
4
4
  import { StageConfigField } from '@spinnaker/core';
5
5
 
6
- import {
7
- IManifestDeploymentOptionsProps,
8
- ManifestDeploymentOptions,
9
- defaultTrafficManagementConfig,
10
- } from './ManifestDeploymentOptions';
6
+ import type { IManifestDeploymentOptionsProps } from './ManifestDeploymentOptions';
7
+ import { defaultTrafficManagementConfig, ManifestDeploymentOptions } from './ManifestDeploymentOptions';
11
8
 
12
9
  describe('<ManifestDeploymentOptions />', () => {
13
10
  const onConfigChangeSpy = jasmine.createSpy('onConfigChangeSpy');
@@ -1,6 +1,7 @@
1
- import { KubernetesV2ServerGroupTransformer } from './serverGroupTransformer.service';
2
1
  import { Application } from '@spinnaker/core';
3
- import { IKubernetesServerGroup } from '../interfaces';
2
+
3
+ import type { IKubernetesServerGroup } from '../interfaces';
4
+ import { KubernetesV2ServerGroupTransformer } from './serverGroupTransformer.service';
4
5
 
5
6
  describe('KubernetesV2ServerGroupTransformer', function () {
6
7
  it('normalizes server group name', async () => {