Skip to content

Instantly share code, notes, and snippets.

@rawkode

rawkode/help.ts Secret

Created November 17, 2020 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rawkode/12bf391cb58ab2ccdcfe968a9d2e83ad to your computer and use it in GitHub Desktop.
Save rawkode/12bf391cb58ab2ccdcfe968a9d2e83ad to your computer and use it in GitHub Desktop.
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