Replace YAML ConfigMap with Pulumi code in GitOps blog post#17633
Replace YAML ConfigMap with Pulumi code in GitOps blog post#17633
Conversation
The gitops-bridge example in the blog post was a raw YAML ConfigMap. Replace it with real Pulumi code in TypeScript and Python using the chooser/choosable shortcodes for language tabs.
Documentation ReviewThe changes look good overall. Replacing the static YAML with real Pulumi code is a meaningful improvement for a Pulumi blog post — it demonstrates actual SDK usage rather than the Kubernetes resource output. IssuesPython: inconsistent use of The Python example uses TypeScript: unquoted data keys vs Python quoted keys In the TypeScript example, the This is a minor style note, not a correctness issue. Duplicate resource name and Both examples pass CorrectnessThe If you'd like me to take another look after any changes, mention @claude in a comment. |
|
Your site preview for commit 17a406d is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-17633-17a406d8.s3-website.us-west-2.amazonaws.com. |
| ```typescript | ||
| import * as k8s from "@pulumi/kubernetes"; | ||
|
|
||
| const clusterMetadata = new k8s.core.v1.ConfigMap("cluster-metadata", { |
There was a problem hiding this comment.
This declares the ConfigMap, but where does the serialization of it happen? Is there an export or a .write() method or something somewhere that should show this (and ideally also show the serialized YAML as before)?
Summary
chooser/choosableHugo shortcodes for language tabs@pulumi/kubernetes(TypeScript) andpulumi_kubernetes(Python) to create the samecluster-metadataConfigMap in theargocdnamespaceTest plan
make lintpasses with no new errorsmake serverenders the page correctly