Skip to content

error TS2322: Type 'Output<MachineSecrets>' is not assignable to type 'MachineSecrets' #214

Description

@nomasprime
TSError: ⨯ Unable to compile TypeScript:
    index.ts(47,5): error TS2322: Type 'Output<MachineSecrets>' is not assignable to type 'MachineSecrets'.
      The types of 'certs.etcd.cert' are incompatible between these types.
        Type 'Output<string>' is not assignable to type 'string'.
const machineSecrets = new talos.machine.Secrets("machine_secrets", {
    talosVersion: "v1.12.4" // TODO: derive from snapshot
});

const clusterName = "cluster"
const clusterEndpoint = `https://${loadBalancer.ipv4}:6443`;

const controlPlaneConfig = talos.machine.getConfiguration({
    clusterName,
    clusterEndpoint,
    machineType: "controlplane",
    machineSecrets: machineSecrets.machineSecrets,
    docs: false,
    examples: false,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions