Hello, I’ve been trying to use the Pulumi Kubernet...
# dotnet
a
Hello, I’ve been trying to use the Pulumi Kubernetes NuGet (C#) package (v4.26.0) as is stated in this page https://www.pulumi.com/registry/packages/kubernetes/api-docs/apiextensions/customresource/. But the property “`Others`” for the
CustomResourceArgs
class is missing and when I look into the assembly is not there. Is this something intended? If so, how should I provide the additional properties that this field enabled or should I use a previous version?
l
According to the documentation on the page you linked:
This field is not an actual property. It is used to represent custom property names and their values that can be passed in addition to the other input properties.
a
So it’s just inheriting from it and adding the
Others
field?
l
Not sure, but from reading the docs, probably not. There is no property called Others.
a
Ok, will see what happens there when I’m done 🙂
thank you @little-cartoon-10569
l
You're adding ManagedFields to the metadata, right? I'm guessing that Others is representing those fields.
Or maybe not. Maybe an example is what we need 🙂
a
I’m trying to create a Kafka cluster using the Strimzi operator
the whole Kafka spec should go in the “Others” field as far as I understand
l
Ok. Then you will need to add the Others property as you suggested earlier. I can't find any Pulumi examples. I'll browse around from some TF examples, should be able to extrapolate from those.
a
wow, I’d appreciate that! I’ll move forward with this idea and let you know to share what I learned.
l
Every example I'm coming across uses only the spec field. Others seems to be a documentation-only "reminder" that there are other fields in the resource, and their values are not in the CustomResource itself, they're nested in the spec. (I think)
The Pulumi blog post about crd2pulumi seems to be relevant though, maybe it'd help?
a
I will check, thank you!!
👍 1