https://pulumi.com logo
Title
b

brash-kite-78002

06/30/2021, 11:25 AM
Hello! Did anyone try to use ConfigGroup? For me, it creates empty CRDs from the files I specify...
b

billowy-army-68599

06/30/2021, 11:37 AM
Can you share your code?
b

brash-kite-78002

06/30/2021, 11:40 AM
const koptions: eks.KubeconfigOptions = {
    profileName: 'saml'
};



const cluster = new eks.Cluster(
    "aizi-test-cluster",
    {
        providerCredentialOpts: koptions
    }
);


const crds = new k8s.yaml.ConfigFile(
    "prometheusCRDs",
    {
        file: process.cwd() + "/crds-init/prometheus/9.3.1/crd-servicemonitor.yaml",
    },
    {
        provider: cluster.provider
    }
)
I receive the same results for ConfigFile and ConfigGroup.
b

billowy-army-68599

06/30/2021, 12:01 PM
the file you're linking is a custom resource definition which just registers the definition with the API server
👍 1
🍺 1
you need to instantiate an instance of that now
you getting an empty list is correct for your command
b

brash-kite-78002

06/30/2021, 12:03 PM
Hmm, interesting. How should I instantiate it? Thank you for your help!
b

billowy-army-68599

06/30/2021, 12:04 PM
do you know what you want to monitor?
b

brash-kite-78002

06/30/2021, 12:14 PM
Uff, sorry! I basically executed the wrong CLI command. Sorry, for taking your time. I should have checked the stack to be sure.
Everything works fine. I've just made a silly mistake!
b

billowy-army-68599

06/30/2021, 12:21 PM
😃
glad you got it sorted!
b

brash-kite-78002

06/30/2021, 12:27 PM
I owe you a beer)) And thank you again.