@spinnaker/google 2025.2.3 → 2025.4.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spinnaker/google",
3
3
  "license": "Apache-2.0",
4
- "version": "2025.2.3",
4
+ "version": "2025.4.0",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "publishConfig": {
@@ -41,5 +41,5 @@
41
41
  "shx": "0.3.3",
42
42
  "typescript": "5.0.4"
43
43
  },
44
- "gitHead": "3d7358e1af26a8b81dfb7a4fc7774a05e30cbefc"
44
+ "gitHead": "5a87decae3d8b46a74bbc7fd579c1dff28e7bf99"
45
45
  }
@@ -22,7 +22,7 @@
22
22
  <select
23
23
  class="form-control input-sm"
24
24
  ng-change="$ctrl.onProtocolChange()"
25
- ng-options="protocol as protocol for protocol in ['HTTP', 'HTTPS', 'TCP', 'SSL']"
25
+ ng-options="protocol as protocol for protocol in ['HTTP', 'HTTPS', 'TCP', 'SSL', 'HTTP2', 'GRPC']"
26
26
  ng-model="$ctrl.healthCheck.healthCheckType"
27
27
  ></select>
28
28
  </div>
@@ -75,7 +75,11 @@
75
75
 
76
76
  <div
77
77
  class="form-group"
78
- ng-if="$ctrl.healthCheck.healthCheckType === 'HTTP' || $ctrl.healthCheck.healthCheckType === 'HTTPS'"
78
+ ng-if="
79
+ $ctrl.healthCheck.healthCheckType === 'HTTP' ||
80
+ $ctrl.healthCheck.healthCheckType === 'HTTPS' ||
81
+ $ctrl.healthCheck.healthCheckType === 'HTTP2'
82
+ "
79
83
  >
80
84
  <div class="col-md-4 sm-label-right">Request Path</div>
81
85
  <div class="col-md-4">
@@ -97,6 +101,17 @@
97
101
  </div>
98
102
  </div>
99
103
 
104
+ <div class="form-group" ng-if="$ctrl.healthCheck.healthCheckType === 'GRPC'">
105
+ <div class="col-md-4 sm-label-right">Service Name</div>
106
+ <div class="col-md-4">
107
+ <input
108
+ class="form-control input-sm"
109
+ ng-model="$ctrl.healthCheck.grpcServiceName"
110
+ placeholder="com.example.HealthService"
111
+ />
112
+ </div>
113
+ </div>
114
+
100
115
  <div class="form-group">
101
116
  <div class="col-md-4 sm-label-right">
102
117
  <b>Timeout</b><help-field key="loadBalancer.advancedSettings.healthTimeout"></help-field>
@@ -23,7 +23,7 @@
23
23
  class="form-control input-sm"
24
24
  ng-change="$ctrl.onProtocolChange()"
25
25
  ng-model="$ctrl.healthCheckType"
26
- ng-options="protocol as protocol for protocol in ['HTTP', 'HTTPS', 'TCP', 'SSL']"
26
+ ng-options="protocol as protocol for protocol in ['HTTP', 'HTTPS', 'TCP', 'SSL', 'HTTP2', 'GRPC']"
27
27
  ></select>
28
28
  </div>
29
29
  <div class="col-md-2">
@@ -80,7 +80,11 @@
80
80
 
81
81
  <div
82
82
  class="form-group"
83
- ng-if="$ctrl.healthCheck.healthCheckType === 'HTTP' || $ctrl.healthCheck.healthCheckType === 'HTTPS'"
83
+ ng-if="
84
+ $ctrl.healthCheck.healthCheckType === 'HTTP' ||
85
+ $ctrl.healthCheck.healthCheckType === 'HTTPS' ||
86
+ $ctrl.healthCheck.healthCheckType === 'HTTP2'
87
+ "
84
88
  >
85
89
  <div class="col-md-4 sm-label-right">Request Path</div>
86
90
  <div class="col-md-4">
@@ -102,6 +106,13 @@
102
106
  </div>
103
107
  </div>
104
108
 
109
+ <div class="form-group" ng-if="$ctrl.healthCheck.healthCheckType === 'GRPC'">
110
+ <div class="col-md-4 sm-label-right">Service Name</div>
111
+ <div class="col-md-4">
112
+ <input class="form-control input-sm" ng-model="$ctrl.healthCheck.grpcServiceName" />
113
+ </div>
114
+ </div>
115
+
105
116
  <div class="form-group">
106
117
  <div class="col-md-4 sm-label-right">
107
118
  <b>Timeout</b><help-field key="loadBalancer.advancedSettings.healthTimeout"></help-field>
@@ -45,6 +45,12 @@ describe('Controller: gceCreateLoadBalancerCtrl', function () {
45
45
 
46
46
  loadBalancer.healthCheckProtocol = 'TCP';
47
47
  expect(this.ctrl.requiresHealthCheckPath()).toBe(false);
48
+
49
+ loadBalancer.healthCheckProtocol = 'HTTP2';
50
+ expect(this.ctrl.requiresHealthCheckPath()).toBe(true);
51
+
52
+ loadBalancer.healthCheckProtocol = 'GRPC';
53
+ expect(this.ctrl.requiresHealthCheckPath()).toBe(false);
48
54
  });
49
55
 
50
56
  it('should update name', function () {
@@ -57,8 +57,10 @@ class GceLoadBalancingPolicySelectorController implements IController {
57
57
 
58
58
  const hasSsl = selected.find((loadBalancer: any) => get(index[loadBalancer], 'loadBalancerType') === 'SSL');
59
59
  const hasTcp = selected.find((loadBalancer: any) => get(index[loadBalancer], 'loadBalancerType') === 'TCP');
60
- const hasHttp = selected.find((loadBalancer: any) => get(index[loadBalancer], 'loadBalancerType') === 'HTTP');
61
-
60
+ const hasHttp =
61
+ selected.find((loadBalancer: any) => get(index[loadBalancer], 'loadBalancerType') === 'HTTP') ||
62
+ selected.find((loadBalancer: any) => get(index[loadBalancer], 'loadBalancerType') === 'HTTP2') ||
63
+ selected.find((loadBalancer: any) => get(index[loadBalancer], 'loadBalancerType') === 'GRPC');
62
64
  if ((hasSsl || hasTcp) && hasHttp) {
63
65
  balancingModes = ['UTILIZATION'];
64
66
  } else if (hasSsl || hasTcp) {
@@ -105,6 +107,8 @@ class GceLoadBalancingPolicySelectorController implements IController {
105
107
  switch (get(index[loadBalancer], 'loadBalancerType')) {
106
108
  case 'SSL':
107
109
  case 'TCP':
110
+ case 'GRPC':
111
+ case 'HTTP2':
108
112
  case 'HTTP': {
109
113
  const lbBackendServices: string[] = get(index[loadBalancer], 'backendServices');
110
114
  const filteredBackendServices = globalBackendServices.filter((service: IGceBackendService) =>