1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 04:49:37 +00:00

Generated changes

This commit is contained in:
Dan Ramich 2018-07-25 09:55:43 -07:00 committed by Alena Prokharchyk
parent e6619dfa0b
commit 8c7ec63626
4 changed files with 40 additions and 0 deletions

View File

@ -187,6 +187,11 @@ 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
}
@ -202,6 +207,11 @@ 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,6 +187,11 @@ 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
}
@ -202,6 +207,11 @@ 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,6 +188,11 @@ 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
}
@ -203,6 +208,11 @@ 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,6 +188,11 @@ 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
}
@ -203,6 +208,11 @@ 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
}