https://pulumi.com logo
#python
Title
# python
q

quaint-match-50796

07/25/2023, 11:53 AM
Some of our deployments were working perfectly, but now they started to get errors from Kubernetes API. The same YAML being delivered via kubectl works, via ConfigGroup fails the validation. We are going version by version down, and it still not works. If we go back to 3.27 it works (unsure when it got introduced, if anything got). Is anyone else facing this?
self.plugin = ConfigGroup(
f"kong-key-plugin-{name}",
opts=ResourceOptions(parent=self),
yaml=[
yaml.dump(
{
"apiVersion": "<http://configuration.konghq.com/v1|configuration.konghq.com/v1>",
"kind": "KongPlugin",
"metadata": {
"name": args.name,
"namespace": args.namespace,
# "annotations": {"<http://pulumi.com/patchForce|pulumi.com/patchForce>": "true"},
},
"config": {
"key_names": args.api_keys,
},
"plugin": "key-auth",
}
)
],
)
The error is
<http://KongPlugin.configuration.konghq.com|KongPlugin.configuration.konghq.com> "keyauth-plugin" is invalid: plugin: Required value
Would it be normal that the RPC call doesn't show the plugin field and the config?
I0725 09:15:34.455091  677851 log.go:81] eventSink::Infoerr(<{%reset%}>I0725 09:15:34.454965  678505 log.go:81] Unmarshaling property for RPC[Provider[kubernetes].Create(urn:pulumi:dev::infrastructure.br1-cluster1::kubernetes:yaml:ConfigGroup$kubernetes:yaml:ConfigFile$kubernetes:<http://configuration.konghq.com/v1:KongPlugin::opensearch/opensearch-keyauth-plugin).properties]|configuration.konghq.com/v1:KongPlugin::opensearch/opensearch-keyauth-plugin).properties]>: metadata={map[annotations:{map[<http://pulumi.com/patchForce:{true}]|pulumi.com/patchForce:{true}]>} name:{opensearch-keyauth-plugin} namespace:{opensearch}]}
I0725 09:15:34.454957  677851 log.go:81] eventSink::Infoerr(<{%reset%}>I0725 09:15:34.454937  678505 log.go:81] Unmarshaling property for RPC[Provider[kubernetes].Create(urn:pulumi:dev::infrastructure.br1-cluster1::kubernetes:yaml:ConfigGroup$kubernetes:yaml:ConfigFile$kubernetes:<http://configuration.konghq.com/v1:KongPlugin::opensearch/opensearch-keyauth-plugin).properties]|configuration.konghq.com/v1:KongPlugin::opensearch/opensearch-keyauth-plugin).properties]>: apiVersion={<http://configuration.konghq.com/v1|configuration.konghq.com/v1>}
<{%reset%}>)
I0725 09:15:34.454959  677851 log.go:81] Marshaling property for RPC[ResourceMonitor.RegisterResource(kubernetes:<http://helm.sh/v3:Release,cert-manager|helm.sh/v3:Release,cert-manager>)]: preferredDuringSchedulingIgnoredDuringExecution={[{map[preference:{map[matchExpressions:{[{map[key:{<http://kubernetes.azure.com/scalesetpriority|kubernetes.azure.com/scalesetpriority>} operator:{NotIn} values:{[{spot}]}]}]}]} weight:{100}]}]}
I0725 09:15:34.454964  677851 log.go:81] Marshaling property for RPC[ResourceMonitor.RegisterResource(kubernetes:<http://helm.sh/v3:Release,cert-manager|helm.sh/v3:Release,cert-manager>)]: preference={map[matchExpressions:{[{map[key:{<http://kubernetes.azure.com/scalesetpriority|kubernetes.azure.com/scalesetpriority>} operator:{NotIn} values:{[{spot}]}]}]}]}
I0725 09:15:34.454964  677851 log.go:81] eventSink::Infoerr(<{%reset%}>I0725 09:15:34.454946  678505 log.go:81] Unmarshaling property for RPC[Provider[kubernetes].Create(urn:pulumi:dev::infrastructure.br1-cluster1::kubernetes:yaml:ConfigGroup$kubernetes:yaml:ConfigFile$kubernetes:<http://configuration.konghq.com/v1:KongPlugin::opensearch/opensearch-keyauth-plugin).properties]|configuration.konghq.com/v1:KongPlugin::opensearch/opensearch-keyauth-plugin).properties]>: kind={KongPlugin}
<{%reset%}>)
I0725 09:15:34.454968  677851 log.go:81] Marshaling property for RPC[ResourceMonitor.RegisterResource(kubernetes:<http://helm.sh/v3:Release,cert-manager|helm.sh/v3:Release,cert-manager>)]: matchExpressions={[{map[key:{<http://kubernetes.azure.com/scalesetpriority|kubernetes.azure.com/scalesetpriority>} operator:{NotIn} values:{[{spot}]}]}]}
I0725 09:15:34.454969  677851 log.go:81] eventSink::Infoerr(<{%reset%}>I0725 09:15:34.454949  678505 log.go:81] Unmarshaling property for RPC[Provider[kubernetes].Create(urn:pulumi:dev::infrastructure.br1-cluster1::kubernetes:yaml:ConfigGroup$kubernetes:yaml:ConfigFile$kubernetes:<http://configuration.konghq.com/v1:KongPlugin::opensearch/opensearch-keyauth-plugin).properties]|configuration.konghq.com/v1:KongPlugin::opensearch/opensearch-keyauth-plugin).properties]>: <http://pulumi.com/patchForce={true}|pulumi.com/patchForce={true}>
<{%reset%}>)
I0725 09:15:34.454971  677851 log.go:81] Marshaling property for RPC[ResourceMonitor.RegisterResource(kubernetes:<http://helm.sh/v3:Release,cert-manager|helm.sh/v3:Release,cert-manager>)]: key={<http://kubernetes.azure.com/scalesetpriority|kubernetes.azure.com/scalesetpriority>}
I0725 09:15:34.454975  677851 log.go:81] Marshaling property for RPC[ResourceMonitor.RegisterResource(kubernetes:<http://helm.sh/v3:Release,cert-manager|helm.sh/v3:Release,cert-manager>)]: operator={NotIn}
I0725 09:15:34.454975  677851 log.go:81] eventSink::Infoerr(<{%reset%}>I0725 09:15:34.454956  678505 log.go:81] Unmarshaling property for RPC[Provider[kubernetes].Create(urn:pulumi:dev::infrastructure.br1-cluster1::kubernetes:yaml:ConfigGroup$kubernetes:yaml:ConfigFile$kubernetes:<http://configuration.konghq.com/v1:KongPlugin::opensearch/opensearch-keyauth-plugin).properties]|configuration.konghq.com/v1:KongPlugin::opensearch/opensearch-keyauth-plugin).properties]>: annotations={map[<http://pulumi.com/patchForce:{true}]|pulumi.com/patchForce:{true}]>}
<{%reset%}>)