Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInClusterDeployer

func IsInClusterDeployer(deployer *appv1alpha1.Deployer) bool

func IsNamespaceScoped

func IsNamespaceScoped(deployer *appv1alpha1.Deployer) bool

func SetInClusterDeployer

func SetInClusterDeployer(deployer *appv1alpha1.Deployer)

func SetRemoteDeployer

func SetRemoteDeployer(deployer *appv1alpha1.Deployer)

func StripGroup

func StripGroup(gv string) string

func StripVersion

func StripVersion(gv string) string

StripVersion removes the version part of a GV

Types

type EventRecorder

type EventRecorder struct {
	record.EventRecorder
}

EventRecorder - record kubernetes event

func NewEventRecorder

func NewEventRecorder(cfg *rest.Config, scheme *runtime.Scheme) (*EventRecorder, error)

NewEventRecorder - create new event recorder from rect config

func (*EventRecorder) RecordEvent

func (rec *EventRecorder) RecordEvent(obj runtime.Object, reason, msg string, err error)

RecordEvent - record kuberentes event

Jump to

Keyboard shortcuts

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