mirror of https://github.com/k3s-io/k3s
diff: Make filename cross-platform compatible
parent
934a62b8cb
commit
4980403d4e
|
@ -294,7 +294,7 @@ func (obj InfoObject) Name() string {
|
|||
group = fmt.Sprintf("%v.", obj.Info.Mapping.GroupVersionKind.Group)
|
||||
}
|
||||
return group + fmt.Sprintf(
|
||||
"%v.%v:%v.%v",
|
||||
"%v.%v.%v.%v",
|
||||
obj.Info.Mapping.GroupVersionKind.Version,
|
||||
obj.Info.Mapping.GroupVersionKind.Kind,
|
||||
obj.Info.Namespace,
|
||||
|
|
|
@ -49,10 +49,10 @@ run_kubectl_diff_same_names() {
|
|||
kube::log::status "Test kubectl diff with multiple resources with the same name"
|
||||
|
||||
output_message=$(KUBECTL_EXTERNAL_DIFF=find kubectl diff -Rf hack/testdata/diff/)
|
||||
kube::test::if_has_string "${output_message}" 'v1.Pod:.*.test'
|
||||
kube::test::if_has_string "${output_message}" 'apps.v1.Deployment:.*.test'
|
||||
kube::test::if_has_string "${output_message}" 'v1.ConfigMap:.*.test'
|
||||
kube::test::if_has_string "${output_message}" 'v1.Secret:.*.test'
|
||||
kube::test::if_has_string "${output_message}" 'v1\.Pod\..*\.test'
|
||||
kube::test::if_has_string "${output_message}" 'apps\.v1\.Deployment\..*\.test'
|
||||
kube::test::if_has_string "${output_message}" 'v1\.ConfigMap\..*\.test'
|
||||
kube::test::if_has_string "${output_message}" 'v1\.Secret\..*\.test'
|
||||
|
||||
set +o nounset
|
||||
set +o errexit
|
||||
|
|
Loading…
Reference in New Issue