common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package common provides common utilities for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTarGz

func ExtractTarGz(ctx context.Context, gzipStream io.Reader, destDir string, stripPathComponents int) ([]string, error)

ExtractTarGz extracts a *.tar.gz compressed archive and moves its content to destDir. Returns a slice containing the full path of the extracted files.

func FormatFinalizerName

func FormatFinalizerName(prefix, suffix string) string

FormatFinalizerName creates a finalizer name by combining a prefix and suffix with a hyphen.

func IsSidecarContainersFeatureEnabled

func IsSidecarContainersFeatureEnabled(cfg *rest.Config) (bool, error)

IsSidecarContainersFeatureEnabled checks if the SidecarContainers feature is enabled in the cluster. It returns true if the feature is enabled, false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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