Skip to content

Commit

Permalink
run pkg/api/v1/rewrite....sh, pkg/api/v1 (not including subdir) compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao Xu committed Jun 22, 2017
1 parent 58edb6b commit 9f5f4ba
Show file tree
Hide file tree
Showing 8 changed files with 1,170 additions and 1,162 deletions.
1 change: 1 addition & 0 deletions pkg/api/v1/backward_compatibility_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package v1_test

import (
"k8s.io/api/core/v1"
"testing"

"k8s.io/apimachinery/pkg/runtime"
Expand Down
171 changes: 86 additions & 85 deletions pkg/api/v1/conversion.go

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions pkg/api/v1/conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package v1_test

import (
"k8s.io/api/core/v1"
"net/url"
"reflect"
"testing"
Expand All @@ -38,7 +39,7 @@ func TestPodLogOptions(t *testing.T) {
limitBytes := int64(3)

versionedLogOptions := &v1.PodLogOptions{
Container: "mycontainer",
v1.Container: "mycontainer",
Follow: true,
Previous: true,
SinceSeconds: &sinceSeconds,
Expand All @@ -48,7 +49,7 @@ func TestPodLogOptions(t *testing.T) {
LimitBytes: &limitBytes,
}
unversionedLogOptions := &api.PodLogOptions{
Container: "mycontainer",
v1.Container: "mycontainer",
Follow: true,
Previous: true,
SinceSeconds: &sinceSeconds,
Expand Down Expand Up @@ -117,7 +118,7 @@ func TestPodLogOptions(t *testing.T) {
}
}

// TestPodSpecConversion tests that ServiceAccount is an alias for
// TestPodSpecConversion tests that v1.ServiceAccount is an alias for
// ServiceAccountName.
func TestPodSpecConversion(t *testing.T) {
name, other := "foo", "bar"
Expand Down
Loading

0 comments on commit 9f5f4ba

Please sign in to comment.