1
0
mirror of https://github.com/rancher/types.git synced 2025-09-09 00:48:56 +00:00

Generated changes

This commit is contained in:
Dan Ramich
2018-08-23 15:04:47 -07:00
committed by Craig Jellick
parent c1a8152342
commit a2e5eb253f
4 changed files with 0 additions and 40 deletions

View File

@@ -187,11 +187,6 @@ func (s *clusterRoleBindingClient) ObjectClient() *objectclient.ObjectClient {
}
func (s *clusterRoleBindingClient) Create(o *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) {
if o.Labels == nil {
labels := make(map[string]string)
o.Labels = labels
}
o.Labels["creator.cattle.io/rancher-created"] = "true"
obj, err := s.objectClient.Create(o)
return obj.(*v1.ClusterRoleBinding), err
}
@@ -207,11 +202,6 @@ func (s *clusterRoleBindingClient) GetNamespaced(namespace, name string, opts me
}
func (s *clusterRoleBindingClient) Update(o *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) {
if o.Labels == nil {
labels := make(map[string]string)
o.Labels = labels
}
o.Labels["creator.cattle.io/rancher-created"] = "true"
obj, err := s.objectClient.Update(o.Name, o)
return obj.(*v1.ClusterRoleBinding), err
}

View File

@@ -187,11 +187,6 @@ func (s *clusterRoleClient) ObjectClient() *objectclient.ObjectClient {
}
func (s *clusterRoleClient) Create(o *v1.ClusterRole) (*v1.ClusterRole, error) {
if o.Labels == nil {
labels := make(map[string]string)
o.Labels = labels
}
o.Labels["creator.cattle.io/rancher-created"] = "true"
obj, err := s.objectClient.Create(o)
return obj.(*v1.ClusterRole), err
}
@@ -207,11 +202,6 @@ func (s *clusterRoleClient) GetNamespaced(namespace, name string, opts metav1.Ge
}
func (s *clusterRoleClient) Update(o *v1.ClusterRole) (*v1.ClusterRole, error) {
if o.Labels == nil {
labels := make(map[string]string)
o.Labels = labels
}
o.Labels["creator.cattle.io/rancher-created"] = "true"
obj, err := s.objectClient.Update(o.Name, o)
return obj.(*v1.ClusterRole), err
}

View File

@@ -188,11 +188,6 @@ func (s *roleBindingClient) ObjectClient() *objectclient.ObjectClient {
}
func (s *roleBindingClient) Create(o *v1.RoleBinding) (*v1.RoleBinding, error) {
if o.Labels == nil {
labels := make(map[string]string)
o.Labels = labels
}
o.Labels["creator.cattle.io/rancher-created"] = "true"
obj, err := s.objectClient.Create(o)
return obj.(*v1.RoleBinding), err
}
@@ -208,11 +203,6 @@ func (s *roleBindingClient) GetNamespaced(namespace, name string, opts metav1.Ge
}
func (s *roleBindingClient) Update(o *v1.RoleBinding) (*v1.RoleBinding, error) {
if o.Labels == nil {
labels := make(map[string]string)
o.Labels = labels
}
o.Labels["creator.cattle.io/rancher-created"] = "true"
obj, err := s.objectClient.Update(o.Name, o)
return obj.(*v1.RoleBinding), err
}

View File

@@ -188,11 +188,6 @@ func (s *roleClient) ObjectClient() *objectclient.ObjectClient {
}
func (s *roleClient) Create(o *v1.Role) (*v1.Role, error) {
if o.Labels == nil {
labels := make(map[string]string)
o.Labels = labels
}
o.Labels["creator.cattle.io/rancher-created"] = "true"
obj, err := s.objectClient.Create(o)
return obj.(*v1.Role), err
}
@@ -208,11 +203,6 @@ func (s *roleClient) GetNamespaced(namespace, name string, opts metav1.GetOption
}
func (s *roleClient) Update(o *v1.Role) (*v1.Role, error) {
if o.Labels == nil {
labels := make(map[string]string)
o.Labels = labels
}
o.Labels["creator.cattle.io/rancher-created"] = "true"
obj, err := s.objectClient.Update(o.Name, o)
return obj.(*v1.Role), err
}