Documentation ¶
Index ¶
- Constants
- Variables
- func CreateNamespace(cli client.Client, namespace string, metaOptions ...MetaOptions) (*corev1.Namespace, error)
- func CreateSecret(cli client.Client, name, namespace string) error
- func GetDomain(c client.Client) (string, error)
- func UpdatePodSecurityRolebinding(cli client.Client, namespace string, serviceAccountsList ...string) error
- type MetaOptions
Constants ¶
View Source
const (
// ODHGeneratedNamespaceLabel is the label added to all the namespaces generated by odh-deployer.
ODHGeneratedNamespaceLabel = "opendatahub.io/generated-namespace"
)
Variables ¶
View Source
var ( KnativeServingGVK = schema.GroupVersionKind{ Group: "operator.knative.dev", Version: "v1beta1", Kind: "KnativeServing", } OpenshiftIngressGVK = schema.GroupVersionKind{ Group: "config.openshift.io", Version: "v1", Kind: "Ingress", } ServiceMeshControlPlaneGVK = schema.GroupVersionKind{ Group: "maistra.io", Version: "v2", Kind: "ServiceMeshControlPlane", } )
Functions ¶
func CreateNamespace ¶
func CreateNamespace(cli client.Client, namespace string, metaOptions ...MetaOptions) (*corev1.Namespace, error)
CreateNamespace creates namespace required by workbenches component in downstream.
func CreateSecret ¶
CreateSecret creates secrets required by dashboard component in downstream.
Types ¶
type MetaOptions ¶ added in v2.7.0
MetaOptions allows to add additional settings for the object being created through a chain of functions which are applied on metav1.Object before actual resource creation.
func WithLabels ¶ added in v2.7.0
func WithLabels(labels ...string) MetaOptions
Click to show internal directories.
Click to hide internal directories.