platform/v1-serviceaccount.go
Function execV1ServiceAccountResource
has 101 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func execV1ServiceAccountResource(k kubernetes.Interface, objdep *v1.ServiceAccount, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
name := "ServiceAccount"
client := k.CoreV1().ServiceAccounts(namespace)
Function execV1ServiceAccountResource
has 22 return statements (exceeds 4 allowed). Open
Open
func execV1ServiceAccountResource(k kubernetes.Interface, objdep *v1.ServiceAccount, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
name := "ServiceAccount"
client := k.CoreV1().ServiceAccounts(namespace)
Function execV1ServiceAccountResource
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func execV1ServiceAccountResource(k kubernetes.Interface, objdep *v1.ServiceAccount, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {