Skip to content

errors compiling policies #27

@tarfik

Description

@tarfik

When I try to compile (npm run compile) code with loadYaml and dumpYaml methods (below)

import * as k8s from "@kubernetes/client-node";

function updateJobTemplate(jobTemplate: string, namespace: string): string {
    const jobTemplateObj = k8s.loadYaml(jobTemplate) as k8s.V1Job;
    return k8s.dumpYaml(jobTemplateObj);
}

I have many errors like:
errors.txt

Tested on nodejs 14 and 18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions