Hello! Did anyone try to use ConfigGroup? For me, ...
# general
b
Hello! Did anyone try to use ConfigGroup? For me, it creates empty CRDs from the files I specify...
b
Can you share your code?
b
Copy code
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
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
Hmm, interesting. How should I instantiate it? Thank you for your help!
b
do you know what you want to monitor?
b
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
😃
glad you got it sorted!
b
I owe you a beer)) And thank you again.