controller

package
v1.0.0-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2020 License: EPL-2.0 Imports: 9 Imported by: 0

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL