You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to provide a kpt package for my users.
I use this function to ensure consistent naming across the resources of the package.
In my kpt package the prefix is set to "example" and added to the resources successfully, e.g. "example-deployment".
When a user clones the kpt package and changes the prefix to "myservice", the name of the deployment becomes "myservice-example-deployment" while I want the name to be "myservice-deployment"
Potential solution
I can provide a delimiter to the functionConfig, like "-". Then the function behaves as follows:
ifdelimiterinoriginal_resource_name:
# replace the previous prefix with the new onenew_resource_name=prefix+delimiter+original_resource_name.split(delimiter, 1)[1]
else:
# current behaviornew_resource_name=prefix+delimiter+original_resource_name
The text was updated successfully, but these errors were encountered:
Describe your problem
I want to provide a kpt package for my users.
I use this function to ensure consistent naming across the resources of the package.
In my kpt package the prefix is set to "example" and added to the resources successfully, e.g. "example-deployment".
When a user clones the kpt package and changes the prefix to "myservice", the name of the deployment becomes "myservice-example-deployment" while I want the name to be "myservice-deployment"
Potential solution
I can provide a delimiter to the functionConfig, like "-". Then the function behaves as follows:
The text was updated successfully, but these errors were encountered: