mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Fixing Typos
This commit is contained in:
parent
7ab785dc5f
commit
c4f4f69b93
@ -65,7 +65,7 @@ func (a *APIObject) SetYAML(tag string, value interface{}) bool {
|
||||
// into an API object.
|
||||
b, err := yaml.Marshal(value)
|
||||
if err != nil {
|
||||
panic("yaml can't reverse it's own object")
|
||||
panic("yaml can't reverse its own object")
|
||||
}
|
||||
obj, err := Decode(b)
|
||||
if err != nil {
|
||||
|
@ -163,7 +163,7 @@ func prepareEncode(obj interface{}) (*JSONBase, error) {
|
||||
}
|
||||
knownTypes, found := versionMap[jsonBase.APIVersion]
|
||||
if !found {
|
||||
return nil, fmt.Errorf("struct %s, %v won't be unmarshalable because its not in known versions", jsonBase.APIVersion, obj)
|
||||
return nil, fmt.Errorf("struct %s, %v won't be unmarshalable because it's not in known versions", jsonBase.APIVersion, obj)
|
||||
}
|
||||
if _, contains := knownTypes[name]; !contains {
|
||||
return nil, fmt.Errorf("struct %s won't be unmarshalable because it's not in knownTypes", name)
|
||||
|
@ -183,7 +183,7 @@ func buildDockerName(pod *Pod, container *api.Container) string {
|
||||
// construct the docker name. If the docker name isn't one we created, we may return empty strings.
|
||||
func parseDockerName(name string) (podFullName, containerName string) {
|
||||
// For some reason docker appears to be appending '/' to names.
|
||||
// If its there, strip it.
|
||||
// If it's there, strip it.
|
||||
if name[0] == '/' {
|
||||
name = name[1:]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user