Skip to content

Commit e441290

Browse files
committed
1 parent da76006 commit e441290

File tree

7 files changed

+50
-24
lines changed

7 files changed

+50
-24
lines changed

scripts/publish-bins.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
# Usage ex:
17+
# $ publish-bins.sh release-typegen-v0.13.0
18+
1619
set -xeuo pipefail
1720

1821
VERSION=${1#*-v};

scripts/publish-npm.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
# Usage ex:
17+
# $ publish-npm.sh release-kpt-functions-v0.13.0-rc.1
18+
1619
set -euo pipefail
1720

21+
1822
TAG_VERSION=${1#*-v};
1923
echo "tag version: $TAG_VERSION"
2024

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2019 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Usage:
17+
# $ version-kpt-functinos-sdk.sh 0.13.0-rc.1
18+
19+
set -euo pipefail
20+
21+
TAG_VERSION=${1};
22+
23+
cd ts/kpt-functions
24+
npm --no-git-tag-version version "${TAG_VERSION}"
25+
git add package.json package-lock.json
26+
git commit -m "kpt-functions@${TAG_VERSION}"

ts/kpt-functions/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/kpt-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kpt-functions",
3-
"version": "0.12.2",
3+
"version": "0.13.0-rc.5",
44
"description": "KPT functions framework library",
55
"author": "KPT Authors",
66
"license": "Apache-2.0",

ts/kpt-functions/src/errors.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { KubernetesObject, Result, Severity } from './types';
17+
import { KubernetesObject, Result, Severity, FieldInfo } from './types';
1818
import {
1919
SOURCE_INDEX_ANNOTATION,
2020
SOURCE_PATH_ANNOTATION,
@@ -107,18 +107,6 @@ export class ConfigFileError extends ConfigError {
107107
}
108108
}
109109

110-
/**
111-
* Metadata about a specific field in a Kubernetes object.
112-
*/
113-
export interface FieldInfo {
114-
// JSON path of the field.
115-
path: string;
116-
// Current value of the field.
117-
currentValue: string | number | boolean;
118-
// Suggeste value of the field to fix the issue.
119-
suggestedValue: string | number | boolean;
120-
}
121-
122110
/**
123111
* Represents an issue with a Kubernetes object.
124112
*/

ts/kpt-functions/src/types.ts

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,19 @@ export class ResourceList implements KubernetesObject {
302302
*/
303303
export type Severity = 'error' | 'warn' | 'info';
304304

305+
/**
306+
* Metadata about a specific field in a Kubernetes object.
307+
*/
308+
export interface FieldInfo {
309+
// JSON Path
310+
// e.g. "spec.template.spec.containers[3].resources.limits.cpu"
311+
path: string;
312+
// Current value of the field.
313+
currentValue?: string | number | boolean;
314+
// Proposed value to fix the issue.
315+
suggestedValue?: string | number | boolean;
316+
}
317+
305318
/**
306319
* Result represents a configuration-related issue returned by a function.
307320
*
@@ -333,15 +346,7 @@ export interface Result {
333346
index?: number;
334347
};
335348
// A specific field in the object.
336-
field?: {
337-
// JSON Path
338-
// e.g. "spec.template.spec.containers[3].resources.limits.cpu"
339-
path: string;
340-
// Current value of the field.
341-
currentValue: string | number | boolean;
342-
// Proposed value to fix the issue.
343-
suggestedValue: string | number | boolean;
344-
};
349+
field?: FieldInfo;
345350
}
346351

347352
interface ConfigMap extends KubernetesObject {

0 commit comments

Comments
 (0)