Giter VIP home page Giter VIP logo

Comments (8)

saschaa442 avatar saschaa442 commented on June 10, 2024 1

Highly interested as well!

from kustomize.

stormqueen1990 avatar stormqueen1990 commented on June 10, 2024 1

/kind support
/triage needs-information

from kustomize.

ciaccotaco avatar ciaccotaco commented on June 10, 2024 1

Hi @stormqueen1990 👋

I tested your suggestion and it indeed works - I guess I should have rtfm!

Our GitOps pipeline uses a common set of configs that are referenced when applications are promoted between environments. Having transformer configuration support for labels would help ease the transition from commonLabels (and let us utilize the sweet new functionality to ignore selectors 😀).

While a desirable feature, I understand if it is something that cannot be implemented. We can certainly make things work using labels.fields.

Thanks!

Edit: It currently is not in the manual. Thank you for creating an issue to add it.

from kustomize.

stormqueen1990 avatar stormqueen1990 commented on June 10, 2024 1

Hi @stormqueen1990 👋

I tested your suggestion and it indeed works - I guess I should have rtfm!

Our GitOps pipeline uses a common set of configs that are referenced when applications are promoted between environments. Having transformer configuration support for labels would help ease the transition from commonLabels (and let us utilize the sweet new functionality to ignore selectors 😀).

While a desirable feature, I understand if it is something that cannot be implemented. We can certainly make things work using labels.fields.

Thanks!

Edit: It currently is not in the manual. Thank you for creating an issue to add it.

Nice to know this addresses your use case! I added a note to record this feedback in #5436 (comment), as the deprecation of commonLabels is being handled through that other issue.

I will be closing this issue but feel free to reopen if needed!

/close

from kustomize.

koba1t avatar koba1t commented on June 10, 2024

/assign @stormqueen1990

from kustomize.

stormqueen1990 avatar stormqueen1990 commented on June 10, 2024

Hello there, @ciaccotaco! 👋

The labels structure in the Kustomization file can optionally take a list of fields to which you would like to apply the labels. I tested it locally and it appears to cover the use case you described in this issue, but would you please give it a try and confirm whether it works for your use case?

The configuration I tested looks similar to the following:

labels:
  - includeSelectors: false # or true
    includeTemplates: true  # or false
    pairs:
      app: myapp
      contact: username
      department: kustomize
      environment: dv
    fields:
      - path: spec/podTemplate/metadata/labels
        create: true
        kind: FlinkDeployment
      - path: spec/jobManager/podTemplate/metadata/labels
        create: true
        kind: FlinkDeployment
      - path: spec/taskManager/podTemplate/metadata/labels
        create: true
        kind: FlinkDeployment

resources:
  - resources/flinkdeployment.yaml

Note the absence of the configurations section in this example.

from kustomize.

stormqueen1990 avatar stormqueen1990 commented on June 10, 2024

/remove-kind feature

from kustomize.

k8s-ci-robot avatar k8s-ci-robot commented on June 10, 2024

@stormqueen1990: Closing this issue.

In response to this:

Hi @stormqueen1990 👋

I tested your suggestion and it indeed works - I guess I should have rtfm!

Our GitOps pipeline uses a common set of configs that are referenced when applications are promoted between environments. Having transformer configuration support for labels would help ease the transition from commonLabels (and let us utilize the sweet new functionality to ignore selectors 😀).

While a desirable feature, I understand if it is something that cannot be implemented. We can certainly make things work using labels.fields.

Thanks!

Edit: It currently is not in the manual. Thank you for creating an issue to add it.

Nice to know this addresses your use case! I added a note to record this feedback in #5436 (comment), as the deprecation of commonLabels is being handled through that other issue.

I will be closing this issue but feel free to reopen if needed!

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

from kustomize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.