This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as pulumi from "@pulumi/pulumi"; | |
import * as kubernetes from "@pulumi/kubernetes"; | |
import * as mocha from "mocha"; | |
import * as assert from "assert"; | |
import { init, FeatureGate } from "../src/index"; | |
describe("FeatureGates", function () { | |
it("MachinePool can be enabled", function (done) { | |
const manifests = init({ | |
installCertManager: false, | |
enableFeatureGates: [FeatureGate.MachinePool], | |
}); | |
const controllerSpec = manifests.clusterApi.getResourceProperty( | |
"apps/v1/Deployment", | |
"capi-controller-manager", | |
"spec" | |
); | |
controllerSpec.template.spec.containers.apply((containers) => | |
containers.map((container) => | |
container.args.map((arg) => assert.notStrictEqual(true, true)) | |
) | |
); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment