diff --git a/apis/apps/v1beta2/zz_generated_deployment_controller.go b/apis/apps/v1beta2/zz_generated_deployment_controller.go index 20c93e94..f02b743e 100644 --- a/apis/apps/v1beta2/zz_generated_deployment_controller.go +++ b/apis/apps/v1beta2/zz_generated_deployment_controller.go @@ -24,8 +24,9 @@ var ( DeploymentResource = metav1.APIResource{ Name: "deployments", SingularName: "deployment", - Namespaced: false, - Kind: DeploymentGroupVersionKind.Kind, + Namespaced: true, + + Kind: DeploymentGroupVersionKind.Kind, } ) diff --git a/apis/core/v1/zz_generated_k8s_client.go b/apis/core/v1/zz_generated_k8s_client.go index af4bf155..be605b67 100644 --- a/apis/core/v1/zz_generated_k8s_client.go +++ b/apis/core/v1/zz_generated_k8s_client.go @@ -14,11 +14,11 @@ type Interface interface { RESTClient() rest.Interface controller.Starter - PodsGetter NodesGetter ComponentStatusesGetter NamespacesGetter EventsGetter + PodsGetter } type Client struct { @@ -26,11 +26,11 @@ type Client struct { restClient rest.Interface starters []controller.Starter - podControllers map[string]PodController nodeControllers map[string]NodeController componentStatusControllers map[string]ComponentStatusController namespaceControllers map[string]NamespaceController eventControllers map[string]EventController + podControllers map[string]PodController } func NewForConfig(config rest.Config) (Interface, error) { @@ -47,11 +47,11 @@ func NewForConfig(config rest.Config) (Interface, error) { return &Client{ restClient: restClient, - podControllers: map[string]PodController{}, nodeControllers: map[string]NodeController{}, componentStatusControllers: map[string]ComponentStatusController{}, namespaceControllers: map[string]NamespaceController{}, eventControllers: map[string]EventController{}, + podControllers: map[string]PodController{}, }, nil } @@ -67,19 +67,6 @@ func (c *Client) Start(ctx context.Context, threadiness int) error { return controller.Start(ctx, threadiness, c.starters...) } -type PodsGetter interface { - Pods(namespace string) PodInterface -} - -func (c *Client) Pods(namespace string) PodInterface { - objectClient := clientbase.NewObjectClient(namespace, c.restClient, &PodResource, PodGroupVersionKind, podFactory{}) - return &podClient{ - ns: namespace, - client: c, - objectClient: objectClient, - } -} - type NodesGetter interface { Nodes(namespace string) NodeInterface } @@ -131,3 +118,16 @@ func (c *Client) Events(namespace string) EventInterface { objectClient: objectClient, } } + +type PodsGetter interface { + Pods(namespace string) PodInterface +} + +func (c *Client) Pods(namespace string) PodInterface { + objectClient := clientbase.NewObjectClient(namespace, c.restClient, &PodResource, PodGroupVersionKind, podFactory{}) + return &podClient{ + ns: namespace, + client: c, + objectClient: objectClient, + } +} diff --git a/apis/core/v1/zz_generated_pod_controller.go b/apis/core/v1/zz_generated_pod_controller.go index 2168cd2c..c42b4d7b 100644 --- a/apis/core/v1/zz_generated_pod_controller.go +++ b/apis/core/v1/zz_generated_pod_controller.go @@ -24,8 +24,9 @@ var ( PodResource = metav1.APIResource{ Name: "pods", SingularName: "pod", - Namespaced: false, - Kind: PodGroupVersionKind.Kind, + Namespaced: true, + + Kind: PodGroupVersionKind.Kind, } ) diff --git a/apis/core/v1/zz_generated_scheme.go b/apis/core/v1/zz_generated_scheme.go index 754d7997..3fe68a2b 100644 --- a/apis/core/v1/zz_generated_scheme.go +++ b/apis/core/v1/zz_generated_scheme.go @@ -33,11 +33,11 @@ func addKnownTypes(scheme *runtime.Scheme) error { // TODO this gets cleaned up when the types are fixed scheme.AddKnownTypes(SchemeGroupVersion, - &PodList{}, &NodeList{}, &ComponentStatusList{}, &NamespaceList{}, &EventList{}, + &PodList{}, ) return nil } diff --git a/apis/project.cattle.io/v3/zz_generated_deepcopy.go b/apis/project.cattle.io/v3/zz_generated_deepcopy.go index 1b05d7c8..c11044f3 100644 --- a/apis/project.cattle.io/v3/zz_generated_deepcopy.go +++ b/apis/project.cattle.io/v3/zz_generated_deepcopy.go @@ -41,6 +41,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { in.(*DeploymentParallelConfig).DeepCopyInto(out.(*DeploymentParallelConfig)) return nil }, InType: reflect.TypeOf(&DeploymentParallelConfig{})}, + conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { + in.(*Link).DeepCopyInto(out.(*Link)) + return nil + }, InType: reflect.TypeOf(&Link{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { in.(*Workload).DeepCopyInto(out.(*Workload)) return nil @@ -201,6 +205,22 @@ func (in *DeploymentParallelConfig) DeepCopy() *DeploymentParallelConfig { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Link) DeepCopyInto(out *Link) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Link. +func (in *Link) DeepCopy() *Link { + if in == nil { + return nil + } + out := new(Link) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Workload) DeepCopyInto(out *Workload) { *out = *in @@ -277,6 +297,11 @@ func (in *WorkloadSpec) DeepCopyInto(out *WorkloadSpec) { *out = *in in.DeployConfig.DeepCopyInto(&out.DeployConfig) in.Template.DeepCopyInto(&out.Template) + if in.ServiceLinks != nil { + in, out := &in.ServiceLinks, &out.ServiceLinks + *out = make([]Link, len(*in)) + copy(*out, *in) + } return } diff --git a/apis/rbac.authorization.k8s.io/v1/zz_generated_k8s_client.go b/apis/rbac.authorization.k8s.io/v1/zz_generated_k8s_client.go index ba4c0917..0816a067 100644 --- a/apis/rbac.authorization.k8s.io/v1/zz_generated_k8s_client.go +++ b/apis/rbac.authorization.k8s.io/v1/zz_generated_k8s_client.go @@ -14,9 +14,9 @@ type Interface interface { RESTClient() rest.Interface controller.Starter - RoleBindingsGetter ClusterRoleBindingsGetter ClusterRolesGetter + RoleBindingsGetter RolesGetter } @@ -25,9 +25,9 @@ type Client struct { restClient rest.Interface starters []controller.Starter - roleBindingControllers map[string]RoleBindingController clusterRoleBindingControllers map[string]ClusterRoleBindingController clusterRoleControllers map[string]ClusterRoleController + roleBindingControllers map[string]RoleBindingController roleControllers map[string]RoleController } @@ -45,9 +45,9 @@ func NewForConfig(config rest.Config) (Interface, error) { return &Client{ restClient: restClient, - roleBindingControllers: map[string]RoleBindingController{}, clusterRoleBindingControllers: map[string]ClusterRoleBindingController{}, clusterRoleControllers: map[string]ClusterRoleController{}, + roleBindingControllers: map[string]RoleBindingController{}, roleControllers: map[string]RoleController{}, }, nil } @@ -64,19 +64,6 @@ func (c *Client) Start(ctx context.Context, threadiness int) error { return controller.Start(ctx, threadiness, c.starters...) } -type RoleBindingsGetter interface { - RoleBindings(namespace string) RoleBindingInterface -} - -func (c *Client) RoleBindings(namespace string) RoleBindingInterface { - objectClient := clientbase.NewObjectClient(namespace, c.restClient, &RoleBindingResource, RoleBindingGroupVersionKind, roleBindingFactory{}) - return &roleBindingClient{ - ns: namespace, - client: c, - objectClient: objectClient, - } -} - type ClusterRoleBindingsGetter interface { ClusterRoleBindings(namespace string) ClusterRoleBindingInterface } @@ -103,6 +90,19 @@ func (c *Client) ClusterRoles(namespace string) ClusterRoleInterface { } } +type RoleBindingsGetter interface { + RoleBindings(namespace string) RoleBindingInterface +} + +func (c *Client) RoleBindings(namespace string) RoleBindingInterface { + objectClient := clientbase.NewObjectClient(namespace, c.restClient, &RoleBindingResource, RoleBindingGroupVersionKind, roleBindingFactory{}) + return &roleBindingClient{ + ns: namespace, + client: c, + objectClient: objectClient, + } +} + type RolesGetter interface { Roles(namespace string) RoleInterface } diff --git a/apis/rbac.authorization.k8s.io/v1/zz_generated_role_binding_controller.go b/apis/rbac.authorization.k8s.io/v1/zz_generated_role_binding_controller.go index e6643cfc..186ec3ff 100644 --- a/apis/rbac.authorization.k8s.io/v1/zz_generated_role_binding_controller.go +++ b/apis/rbac.authorization.k8s.io/v1/zz_generated_role_binding_controller.go @@ -24,8 +24,9 @@ var ( RoleBindingResource = metav1.APIResource{ Name: "rolebindings", SingularName: "rolebinding", - Namespaced: false, - Kind: RoleBindingGroupVersionKind.Kind, + Namespaced: true, + + Kind: RoleBindingGroupVersionKind.Kind, } ) diff --git a/apis/rbac.authorization.k8s.io/v1/zz_generated_role_controller.go b/apis/rbac.authorization.k8s.io/v1/zz_generated_role_controller.go index 80b183e0..d4ff6792 100644 --- a/apis/rbac.authorization.k8s.io/v1/zz_generated_role_controller.go +++ b/apis/rbac.authorization.k8s.io/v1/zz_generated_role_controller.go @@ -24,8 +24,9 @@ var ( RoleResource = metav1.APIResource{ Name: "roles", SingularName: "role", - Namespaced: false, - Kind: RoleGroupVersionKind.Kind, + Namespaced: true, + + Kind: RoleGroupVersionKind.Kind, } ) diff --git a/apis/rbac.authorization.k8s.io/v1/zz_generated_scheme.go b/apis/rbac.authorization.k8s.io/v1/zz_generated_scheme.go index dd59f8ac..1c7b90a8 100644 --- a/apis/rbac.authorization.k8s.io/v1/zz_generated_scheme.go +++ b/apis/rbac.authorization.k8s.io/v1/zz_generated_scheme.go @@ -33,9 +33,9 @@ func addKnownTypes(scheme *runtime.Scheme) error { // TODO this gets cleaned up when the types are fixed scheme.AddKnownTypes(SchemeGroupVersion, - &RoleBindingList{}, &ClusterRoleBindingList{}, &ClusterRoleList{}, + &RoleBindingList{}, &RoleList{}, ) return nil diff --git a/client/project/v3/zz_generated_container.go b/client/project/v3/zz_generated_container.go index f8f58bf2..428dc067 100644 --- a/client/project/v3/zz_generated_container.go +++ b/client/project/v3/zz_generated_container.go @@ -12,6 +12,7 @@ const ( ContainerFieldHealthcheck = "healthcheck" ContainerFieldImage = "image" ContainerFieldInitContainer = "initContainer" + ContainerFieldName = "name" ContainerFieldPorts = "ports" ContainerFieldPostStart = "postStart" ContainerFieldPreStop = "preStop" @@ -43,6 +44,7 @@ type Container struct { Healthcheck *Probe `json:"healthcheck,omitempty"` Image string `json:"image,omitempty"` InitContainer *bool `json:"initContainer,omitempty"` + Name string `json:"name,omitempty"` Ports []ContainerPort `json:"ports,omitempty"` PostStart *Handler `json:"postStart,omitempty"` PreStop *Handler `json:"preStop,omitempty"` diff --git a/client/project/v3/zz_generated_daemon_set.go b/client/project/v3/zz_generated_daemon_set.go index 29c81047..ea2a510d 100644 --- a/client/project/v3/zz_generated_daemon_set.go +++ b/client/project/v3/zz_generated_daemon_set.go @@ -60,7 +60,7 @@ type DaemonSet struct { Annotations map[string]string `json:"annotations,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` Created string `json:"created,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` diff --git a/client/project/v3/zz_generated_daemon_set_spec.go b/client/project/v3/zz_generated_daemon_set_spec.go index 561820e8..100363b9 100644 --- a/client/project/v3/zz_generated_daemon_set_spec.go +++ b/client/project/v3/zz_generated_daemon_set_spec.go @@ -38,7 +38,7 @@ type DaemonSetSpec struct { ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` Fsgid *int64 `json:"fsgid,omitempty"` diff --git a/client/project/v3/zz_generated_deployment.go b/client/project/v3/zz_generated_deployment.go index e5c8dc26..8a29645b 100644 --- a/client/project/v3/zz_generated_deployment.go +++ b/client/project/v3/zz_generated_deployment.go @@ -60,7 +60,7 @@ type Deployment struct { Annotations map[string]string `json:"annotations,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` Created string `json:"created,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` diff --git a/client/project/v3/zz_generated_deployment_spec.go b/client/project/v3/zz_generated_deployment_spec.go index 2afd909e..147132f8 100644 --- a/client/project/v3/zz_generated_deployment_spec.go +++ b/client/project/v3/zz_generated_deployment_spec.go @@ -38,7 +38,7 @@ type DeploymentSpec struct { ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` Fsgid *int64 `json:"fsgid,omitempty"` diff --git a/client/project/v3/zz_generated_link.go b/client/project/v3/zz_generated_link.go new file mode 100644 index 00000000..a79ab000 --- /dev/null +++ b/client/project/v3/zz_generated_link.go @@ -0,0 +1,12 @@ +package client + +const ( + LinkType = "link" + LinkFieldAlias = "alias" + LinkFieldName = "name" +) + +type Link struct { + Alias string `json:"alias,omitempty"` + Name string `json:"name,omitempty"` +} diff --git a/client/project/v3/zz_generated_pod.go b/client/project/v3/zz_generated_pod.go index fb5064a8..d1ab40b0 100644 --- a/client/project/v3/zz_generated_pod.go +++ b/client/project/v3/zz_generated_pod.go @@ -53,7 +53,7 @@ type Pod struct { ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` Created string `json:"created,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` Finalizers []string `json:"finalizers,omitempty"` diff --git a/client/project/v3/zz_generated_pod_spec.go b/client/project/v3/zz_generated_pod_spec.go index d12a183b..cf136394 100644 --- a/client/project/v3/zz_generated_pod_spec.go +++ b/client/project/v3/zz_generated_pod_spec.go @@ -31,7 +31,7 @@ const ( type PodSpec struct { ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` Fsgid *int64 `json:"fsgid,omitempty"` Gids []int64 `json:"gids,omitempty"` diff --git a/client/project/v3/zz_generated_pod_template_spec.go b/client/project/v3/zz_generated_pod_template_spec.go index eb42bf9e..b3cbeff2 100644 --- a/client/project/v3/zz_generated_pod_template_spec.go +++ b/client/project/v3/zz_generated_pod_template_spec.go @@ -32,7 +32,7 @@ const ( type PodTemplateSpec struct { ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` Fsgid *int64 `json:"fsgid,omitempty"` Gids []int64 `json:"gids,omitempty"` diff --git a/client/project/v3/zz_generated_replica_set.go b/client/project/v3/zz_generated_replica_set.go index 68fe38da..fd81368a 100644 --- a/client/project/v3/zz_generated_replica_set.go +++ b/client/project/v3/zz_generated_replica_set.go @@ -58,7 +58,7 @@ type ReplicaSet struct { Annotations map[string]string `json:"annotations,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` Created string `json:"created,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` diff --git a/client/project/v3/zz_generated_replica_set_spec.go b/client/project/v3/zz_generated_replica_set_spec.go index 9fc06ca4..7200ebfc 100644 --- a/client/project/v3/zz_generated_replica_set_spec.go +++ b/client/project/v3/zz_generated_replica_set_spec.go @@ -36,7 +36,7 @@ type ReplicaSetSpec struct { ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` Fsgid *int64 `json:"fsgid,omitempty"` diff --git a/client/project/v3/zz_generated_replication_controller.go b/client/project/v3/zz_generated_replication_controller.go index dd0bf577..a2806472 100644 --- a/client/project/v3/zz_generated_replication_controller.go +++ b/client/project/v3/zz_generated_replication_controller.go @@ -58,7 +58,7 @@ type ReplicationController struct { Annotations map[string]string `json:"annotations,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` Created string `json:"created,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` diff --git a/client/project/v3/zz_generated_replication_controller_spec.go b/client/project/v3/zz_generated_replication_controller_spec.go index da17fa72..d20ce954 100644 --- a/client/project/v3/zz_generated_replication_controller_spec.go +++ b/client/project/v3/zz_generated_replication_controller_spec.go @@ -36,7 +36,7 @@ type ReplicationControllerSpec struct { ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` Fsgid *int64 `json:"fsgid,omitempty"` diff --git a/client/project/v3/zz_generated_stateful_set.go b/client/project/v3/zz_generated_stateful_set.go index 5f0e1360..64fbaf8d 100644 --- a/client/project/v3/zz_generated_stateful_set.go +++ b/client/project/v3/zz_generated_stateful_set.go @@ -63,7 +63,7 @@ type StatefulSet struct { Annotations map[string]string `json:"annotations,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` Created string `json:"created,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` diff --git a/client/project/v3/zz_generated_stateful_set_spec.go b/client/project/v3/zz_generated_stateful_set_spec.go index e2d8c80b..b534b337 100644 --- a/client/project/v3/zz_generated_stateful_set_spec.go +++ b/client/project/v3/zz_generated_stateful_set_spec.go @@ -41,7 +41,7 @@ type StatefulSetSpec struct { ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` Fsgid *int64 `json:"fsgid,omitempty"` diff --git a/client/project/v3/zz_generated_workload.go b/client/project/v3/zz_generated_workload.go index 18916661..e48dd42d 100644 --- a/client/project/v3/zz_generated_workload.go +++ b/client/project/v3/zz_generated_workload.go @@ -38,6 +38,7 @@ const ( WorkloadFieldScale = "scale" WorkloadFieldSchedulerName = "schedulerName" WorkloadFieldServiceAccountName = "serviceAccountName" + WorkloadFieldServiceLinks = "serviceLinks" WorkloadFieldState = "state" WorkloadFieldStatus = "status" WorkloadFieldSubdomain = "subdomain" @@ -58,7 +59,7 @@ type Workload struct { Annotations map[string]string `json:"annotations,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` Created string `json:"created,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` @@ -86,6 +87,7 @@ type Workload struct { Scale *int64 `json:"scale,omitempty"` SchedulerName string `json:"schedulerName,omitempty"` ServiceAccountName string `json:"serviceAccountName,omitempty"` + ServiceLinks []Link `json:"serviceLinks,omitempty"` State string `json:"state,omitempty"` Status *WorkloadStatus `json:"status,omitempty"` Subdomain string `json:"subdomain,omitempty"` diff --git a/client/project/v3/zz_generated_workload_spec.go b/client/project/v3/zz_generated_workload_spec.go index 417923e8..1759a969 100644 --- a/client/project/v3/zz_generated_workload_spec.go +++ b/client/project/v3/zz_generated_workload_spec.go @@ -25,6 +25,7 @@ const ( WorkloadSpecFieldScale = "scale" WorkloadSpecFieldSchedulerName = "schedulerName" WorkloadSpecFieldServiceAccountName = "serviceAccountName" + WorkloadSpecFieldServiceLinks = "serviceLinks" WorkloadSpecFieldSubdomain = "subdomain" WorkloadSpecFieldTerminationGracePeriodSeconds = "terminationGracePeriodSeconds" WorkloadSpecFieldTolerations = "tolerations" @@ -36,7 +37,7 @@ type WorkloadSpec struct { ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` BatchSize string `json:"batchSize,omitempty"` - Containers map[string]Container `json:"containers,omitempty"` + Containers []Container `json:"containers,omitempty"` DNSPolicy string `json:"dnsPolicy,omitempty"` DeploymentStrategy *DeployStrategy `json:"deploymentStrategy,omitempty"` Fsgid *int64 `json:"fsgid,omitempty"` @@ -56,6 +57,7 @@ type WorkloadSpec struct { Scale *int64 `json:"scale,omitempty"` SchedulerName string `json:"schedulerName,omitempty"` ServiceAccountName string `json:"serviceAccountName,omitempty"` + ServiceLinks []Link `json:"serviceLinks,omitempty"` Subdomain string `json:"subdomain,omitempty"` TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` Tolerations []Toleration `json:"tolerations,omitempty"`