ocpcli

package
v0.0.0-...-9253115 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyConfig

func ApplyConfig(
	pathToTemplate,
	pathToConfigFile string,
	variablesToReplace map[string]interface{}) error

ApplyConfig applies config using shell method.

func CreateConfig

func CreateConfig(
	pathToTemplate,
	pathToConfigFile string,
	variablesToReplace map[string]interface{}) error

CreateConfig creates config using shell method.

func DownloadAndExtractOcBinaryArchive

func DownloadAndExtractOcBinaryArchive(apiClient *clients.Settings) error

DownloadAndExtractOcBinaryArchive downloads and extracts oc binary archive.

func ExecuteViaDebugPodOnNode

func ExecuteViaDebugPodOnNode(
	nodeName string,
	cmd string) (string, error)

ExecuteViaDebugPodOnNode creates debug pod and executes provided command.

func PatchAPIObject

func PatchAPIObject(objName, objNamespace, objKind, patchType, patchStr string) error

PatchAPIObject patches the resource using the given patch type, object belongs to the specific namespace The following patches are exactly the same patch but using different types, 'merge' and 'json' --type merge -p '{"spec": {"selector": {"app": "frommergepatch"}}}' --type json -p '[{ "op": "replace", "path": "/spec/selector/app", "value": "fromjsonpatch"}]'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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