Skip to content

Commit 851f45e

Browse files
committed
Update deps to [email protected]
1 parent a177a9e commit 851f45e

File tree

12 files changed

+25
-25
lines changed

12 files changed

+25
-25
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
needs: [node-ci, go-ci]
7373
strategy:
7474
matrix:
75-
platform: [ubuntu-latest]
75+
platform: [ubuntu-latest, macos-latest]
7676
node-version: [12.x]
7777
runs-on: ${{ matrix.platform }}
7878
steps:

ts/demo-functions/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/demo-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"kpt:type-create": "kpt type-create"
2323
},
2424
"dependencies": {
25-
"@googlecontainertools/kpt-functions": "^0.11.0",
25+
"@googlecontainertools/kpt-functions": "^0.12.0",
2626
"glob": "^7.1.3",
2727
"js-yaml": "^3.13.1"
2828
},

ts/demo-functions/src/label_namespace_test.ts

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

17-
import { Configs, TestRunner } from '@googlecontainertools/kpt-functions';
17+
import { Configs, TestRunner, ConfigError } from '@googlecontainertools/kpt-functions';
1818
import { labelNamespace } from './label_namespace';
1919
import { Namespace, ConfigMap } from './gen/io.k8s.api.core.v1';
2020

@@ -30,7 +30,7 @@ const FUNC_CONFIG: ConfigMap = new ConfigMap({
3030
describe('labelNamespace', () => {
3131
it('empty input ok', RUNNER.assertCallback(new Configs(undefined, FUNC_CONFIG)));
3232

33-
it('requires functionConfig', RUNNER.assertCallback(undefined, undefined, TypeError));
33+
it('requires functionConfig', RUNNER.assertCallback(undefined, undefined, ConfigError));
3434

3535
it('adds label namespace when metadata.labels is undefined', async () => {
3636
const input = new Configs(undefined, FUNC_CONFIG);

ts/demo-functions/src/read_yaml_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('readYaml', () => {
4444
it('replicates test dir', async () => {
4545
const sourceDir = path.resolve(__dirname, '../test-data/source/foo-yaml');
4646
const expectedIntermediateFile = path.resolve(__dirname, '../test-data/intermediate/foo.yaml');
47-
const expectedConfigs = readConfigs(expectedIntermediateFile, FileFormat.YAML);
47+
const expectedConfigs = await readConfigs(expectedIntermediateFile, FileFormat.YAML);
4848
functionConfig.data![SOURCE_DIR] = sourceDir;
4949
const actualConfigs = new Configs(undefined, functionConfig);
5050

ts/demo-functions/src/validate_rolebinding_test.ts

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

17-
import { Configs, TestRunner } from '@googlecontainertools/kpt-functions';
17+
import { Configs, TestRunner, ConfigError } from '@googlecontainertools/kpt-functions';
1818
import { ClusterRoleBinding, RoleBinding, Subject } from './gen/io.k8s.api.rbac.v1';
1919
import { validateRolebinding } from './validate_rolebinding';
2020
import { ConfigMap } from './gen/io.k8s.api.core.v1';
@@ -26,7 +26,7 @@ const FUNC_CONFIG: ConfigMap = new ConfigMap({
2626
});
2727

2828
describe(validateRolebinding.name, () => {
29-
it('passes empty input', RUNNER.assertCallback(undefined, undefined, TypeError));
29+
it('passes empty input', RUNNER.assertCallback(undefined, undefined, ConfigError));
3030

3131
it(
3232
'passes valid RoleBindings',

ts/demo-functions/src/write_yaml_test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('writeYaml', () => {
4646
});
4747

4848
it('test dir', async () => {
49-
const input = readIntermediate();
49+
const input = await readIntermediate();
5050
functionConfig.data![SINK_DIR] = tmpDir;
5151
const configs = new kpt.Configs(input.getAll(), functionConfig);
5252

@@ -57,7 +57,7 @@ describe('writeYaml', () => {
5757

5858
it("throws if --overwrite isn't passed for non-empty directory", async () => {
5959
fs.copySync(SINK_DIR_EXPECTED, tmpDir);
60-
const input = readIntermediate();
60+
const input = await readIntermediate();
6161
functionConfig.data![SINK_DIR] = tmpDir;
6262
const configs = new kpt.Configs(input.getAll(), functionConfig);
6363

@@ -66,7 +66,7 @@ describe('writeYaml', () => {
6666

6767
it("silently makes output directory if it doesn't exist", async () => {
6868
const sinkDir = path.resolve(tmpDir, 'foo');
69-
const input = readIntermediate();
69+
const input = await readIntermediate();
7070
functionConfig.data![SINK_DIR] = sinkDir;
7171
const configs = new kpt.Configs(input.getAll(), functionConfig);
7272

@@ -88,7 +88,7 @@ describe('writeYaml', () => {
8888
path.resolve(tmpDir, 'foo-corp-1.0.0', 'podsecuritypolicy_psp.yaml'),
8989
path.resolve(tmpDir, 'foo-corp-1.0.0', 'other.yaml'),
9090
);
91-
const input = readIntermediate();
91+
const input = await readIntermediate();
9292
functionConfig.data![SINK_DIR] = tmpDir;
9393
functionConfig.data![OVERWRITE] = 'true';
9494
const configs = new kpt.Configs(input.getAll(), functionConfig);
@@ -160,7 +160,7 @@ describe('buildSourcePath', () => {
160160
});
161161
});
162162

163-
function readIntermediate(): kpt.Configs {
163+
function readIntermediate(): Promise<kpt.Configs> {
164164
return kpt.readConfigs(INTERMEDIATE_FILE, kpt.FileFormat.YAML);
165165
}
166166

ts/hello-world/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/hello-world/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"kpt:type-create": "kpt type-create"
1616
},
1717
"dependencies": {
18-
"@googlecontainertools/kpt-functions": "^0.11.0"
18+
"@googlecontainertools/kpt-functions": "^0.12.0"
1919
},
2020
"devDependencies": {
2121
"@googlecontainertools/create-kpt-functions": "^0.15.0",

ts/hello-world/src/label_namespace_test.ts

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

17-
import { Configs, TestRunner } from '@googlecontainertools/kpt-functions';
17+
import { Configs, TestRunner, ConfigError } from '@googlecontainertools/kpt-functions';
1818
import { labelNamespace, LABEL_NAME, LABEL_VALUE } from './label_namespace';
1919
import { Namespace, ConfigMap } from './gen/io.k8s.api.core.v1';
2020

@@ -32,7 +32,7 @@ describe('labelNamespace', () => {
3232

3333
it('empty input ok', RUNNER.assertCallback(new Configs(undefined, functionConfig)));
3434

35-
it('requires functionConfig', RUNNER.assertCallback(undefined, undefined, TypeError));
35+
it('requires functionConfig', RUNNER.assertCallback(undefined, undefined, ConfigError));
3636

3737
it('adds label namespace when metadata.labels is undefined', async () => {
3838
const actual = new Configs(undefined, functionConfig);

0 commit comments

Comments
 (0)