kompose icon indicating copy to clipboard operation
kompose copied to clipboard

Feature 1635 - customizing service name with prefix, flag --prefix (-x)

Open sosan opened this issue 1 year ago • 1 comments

What type of PR is this?

/kind feature

What this PR does / why we need it:

The --prefix flag serves the purpose of allowing users to specify prefixes to be added to the names of services

Which issue(s) this PR fixes:

Feature #1635

Special notes for your reviewer:

I haven't had time to document the --prefix flag documentation will be cooming soon in the following commits.

sosan avatar Feb 23 '24 23:02 sosan

@TessaIO shouldn't we have this as a label instead? or do you think CLI parameter would be fine?

cdrage avatar Mar 01 '24 20:03 cdrage

@TessaIO shouldn't we have this as a label instead? or do you think CLI parameter would be fine?

That's actually true if we want to offer users flexibility to specify per-service prefixes that's the option to go (I mean labels here). wdyt @sosan?

TessaIO avatar Mar 01 '24 20:03 TessaIO

@TessaIO shouldn't we have this as a label instead? or do you think CLI parameter would be fine?

That's actually true if we want to offer users flexibility to specify per-service prefixes that's the option to go (I mean labels here). wdyt @sosan?

Yeah just thinking about it again, I think I'm good for terminal / cli based prefixes being added, we could always customize the name individually via labels instead.

cdrage avatar Mar 01 '24 20:03 cdrage

Updated cli

Sounds like a good idea to me. That way, we can fine-tune the names individually using labels

sosan avatar Mar 05 '24 19:03 sosan

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sosan, TessaIO

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Mar 06 '24 09:03 k8s-ci-robot

we should also add suffix too.

ok, roger that

sosan avatar Apr 02 '24 13:04 sosan

ping @cdrage

TessaIO avatar Apr 18 '24 14:04 TessaIO

PR needs rebase.

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.

k8s-ci-robot avatar Apr 19 '24 17:04 k8s-ci-robot

Hey sorry @sosan for some reason I didn't realize that we reached a conclusion on https://github.com/kubernetes/kompose/issues/1635#issuecomment-2031874480 that we should actually close this PR, and I apologize the work you've put into this back and forth.

Going forward I do not think we should be adding too many suffix and prefix / name customizations unless it's "generic", if someone wants to edit the entire -tcp suffix, they could do it with a sed / ctrl +f / ctrl + replace after converting.

There's too much work and labels / parameters to be added to make something small like this happen.

cdrage avatar Apr 25 '24 16:04 cdrage