mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 14:45:28 +00:00
Rename JSONBase -> TypeMeta in preparation for v1beta3
Will make subsequent refactor much easier
This commit is contained in:
@@ -211,7 +211,7 @@ func RunController(ctx api.Context, image, name string, replicas int, client cli
|
||||
return err
|
||||
}
|
||||
controller := &api.ReplicationController{
|
||||
JSONBase: api.JSONBase{
|
||||
TypeMeta: api.TypeMeta{
|
||||
ID: name,
|
||||
},
|
||||
DesiredState: api.ReplicationControllerState{
|
||||
@@ -265,7 +265,7 @@ func RunController(ctx api.Context, image, name string, replicas int, client cli
|
||||
|
||||
func createService(ctx api.Context, name string, port int, client client.Interface) (*api.Service, error) {
|
||||
svc := &api.Service{
|
||||
JSONBase: api.JSONBase{ID: name},
|
||||
TypeMeta: api.TypeMeta{ID: name},
|
||||
Port: port,
|
||||
Labels: map[string]string{
|
||||
"simpleService": name,
|
||||
|
Reference in New Issue
Block a user