code: func NewCertAuthority(caType CertAuthType, clusterName string, signingKeys, checkingKeys [][]byte, roles []string) CertAuthority {
  	return &CertAuthorityV2{
  		Kind:    KindCertAuthority,
  		Version: V2,
  		SubKind: string(caType),
  		Metadata: Metadata{
  			Name:      clusterName,
  			Namespace: defaults.Namespace,
  		},
  		Spec: CertAuthoritySpecV2{
  			Roles:        roles,
  			Type:         caType,
  			ClusterName:  clusterName,
  			CheckingKeys: checkingKeys,
  			SigningKeys:  signingKeys,
  		},
  	}
  }
docs: // NewCertAuthority returns new cert authority