package controller import ( acmapi "gitbucket.jerxie.com/yangyangxie/AnthosCertManager/pkg/apis/anthoscertmanager/v1" ) // ResourceNamespace returns the Kubernetes namespace where resources // created or read by `iss` are located. func (o IssuerOptions) ResourceNamespace(iss acmapi.GenericIssuer) string { ns := iss.GetObjectMeta().Namespace if ns == "" { ns = o.ClusterResourceNamespace } return ns }