kubernetes

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePlacementArgs

func ParsePlacementArgs(args string) (map[string]string, error)

ParsePlacementArgs parses command arguments for placement operations

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the mcp-kubernetes kubectl executor

func NewClient

func NewClient() (*Client, error)

NewClient creates a new Kubernetes client using mcp-kubernetes kubectl executor

func (*Client) ExecuteKubectl

func (c *Client) ExecuteKubectl(command string, cfg *config.ConfigData) (string, error)

ExecuteKubectl executes a kubectl command

type PlacementOperations

type PlacementOperations struct {
	// contains filtered or unexported fields
}

PlacementOperations handles Fleet placement CRD operations

func NewPlacementOperations

func NewPlacementOperations(client *Client) *PlacementOperations

NewPlacementOperations creates a new placement operations handler

func (*PlacementOperations) CreatePlacement

func (p *PlacementOperations) CreatePlacement(name, selector, policy string, cfg *config.ConfigData) (string, error)

CreatePlacement creates a new ClusterResourcePlacement using kubectl

func (*PlacementOperations) DeletePlacement

func (p *PlacementOperations) DeletePlacement(name string, cfg *config.ConfigData) (string, error)

DeletePlacement deletes a ClusterResourcePlacement by name using kubectl

func (*PlacementOperations) GetPlacement

func (p *PlacementOperations) GetPlacement(name string, cfg *config.ConfigData) (string, error)

GetPlacement retrieves a ClusterResourcePlacement by name using kubectl

func (*PlacementOperations) ListPlacements

func (p *PlacementOperations) ListPlacements(cfg *config.ConfigData) (string, error)

ListPlacements lists all ClusterResourcePlacements using kubectl

Jump to

Keyboard shortcuts

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