Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add addLabels utility #68

Merged
merged 1 commit into from
Oct 9, 2023
Merged

Conversation

mrliptontea
Copy link
Member

Add a utility function that allows to add a set of labels to objects, including to their nested Pod templates.

Example use:

import { Helm } from "cdk8s";
import { addLabels } from "talis-cdk8s-constructs";

const helm = new Helm(chart, "helm-template", {
  repo: "https://aws.github.io/eks-charts",
  chart: "aws-load-balancer-controller",
  releaseName: "aws-load-balancer-controller",
  version: "1.6.1",
});

addLabels(helm.apiObjects, {
  "my-label": "my-value",
});

@mrliptontea mrliptontea force-pushed the feat-add-addlabels-utility branch from 2d515dc to 35507ba Compare October 9, 2023 08:22
@mrliptontea mrliptontea merged commit 49f52d1 into main Oct 9, 2023
1 check passed
@mrliptontea mrliptontea deleted the feat-add-addlabels-utility branch October 9, 2023 10:58
@talisaspire
Copy link
Collaborator

🎉 This PR is included in version 4.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants