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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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