Documentation ¶
Overview ¶
Copyright (c) 2019-2020 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Copyright (c) 2019-2020 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Log = logf.Log.WithName("ownerref")
Functions ¶
func CreateClient ¶
CreateClient creates Controller client with default config or returns error if any happens
func FindControllerDeployment ¶
func FindControllerDeployment(ctx context.Context, client crclient.Client) (*appsv1.Deployment, error)
FindControllerDeployment gets the deployment of the deployed controller
func FindControllerOwner ¶
func FindControllerOwner(ctx context.Context, client crclient.Client) (*metav1.OwnerReference, error)
FindControllerOwner returns OwnerReferent that owns controller process it starts searching from the current pod and then resolves owners recursively until object without owner is not found
Types ¶
This section is empty.