Skip to content

Commit

Permalink
added create docker-registry and patch capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
azhry committed Mar 20, 2023
1 parent 91e4af0 commit 4ade196
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,9 @@ func (c *ClusterApiClient) GetSecret(secretName, namespace string) (*v1.Secret,

return secret, nil
}

func (c *ClusterApiClient) PatchServiceAccount(name, namespace string, patch []byte) (*v1.ServiceAccount, error) {
sa, err := c.Clientset.CoreV1().ServiceAccounts(namespace).Patch(context.Background(), name, types.StrategicMergePatchType, patch, metav1.PatchOptions{})

return sa, err
}

0 comments on commit 4ade196

Please sign in to comment.