Skip to content

Commit 0589d7b

Browse files
authored
(kubernetes) Only strip underscores from names (spinnaker#2593)
@danielpeach @leelasharma Turns out the only invalid character in a docker repo name is the underscore: https://github.com/docker/docker/blob/f63cdf0260cf6287d28a589a79d3f947def6a569/runtime.go#L33 - so we can keep the dash.
1 parent 28b9f02 commit 0589d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/scripts/modules/kubernetes/serverGroup/configure/configuration.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = angular.module('spinnaker.serverGroup.configure.kubernetes.conf
6363
function mapImageToContainer(command) {
6464
return (image) => {
6565
return {
66-
name: image.repository.replace(/\W/g, '').toLowerCase(),
66+
name: image.repository.replace(/_/g, '').toLowerCase(),
6767
imageDescription: {
6868
repository: image.repository,
6969
tag: image.tag,

0 commit comments

Comments
 (0)