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

View Source
var Log = logf.Log.WithName("ownerref")

Functions

func CreateClient

func CreateClient() (client.Client, error)

CreateClient creates Controller client with default config or returns error if any happens

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.