seiapi

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 4 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

Package seiapi is the CR-agnostic plumbing for seictl's sei.io custom resources. A Kind binds one resource's GVK / list GVK / dynamic GVR; the New/NewList/Apply helpers are parameterized over it so the `seinetwork` and `seinode` trees share one server-side-apply path instead of duplicating it (and risking FieldOwner/ForceOwnership drift).

It replaces internal/snd: the SeiNodeDeployment GVK is gone, and the split surface needs two bindings, not one. Once sei-protocol/sei-k8s-controller#175 splits the api surface into a leaf module, this is the natural place to introduce typed accessors in place of the unstructured helpers below.

Index

Constants

This section is empty.

Variables

View Source
var FieldOwner = client.FieldOwner("seictl")

FieldOwner is the server-side-apply field manager for every seictl write, across both CR trees. Shared so a future change can't leave one tree applying under a different manager.

Functions

This section is empty.

Types

type Kind

Kind binds one sei.io custom resource: its object GVK, its list GVK (for client.List), and its dynamic-client GVR (for the watch path, which talks to the dynamic client rather than controller-runtime).

func (Kind) Apply

func (k Kind) Apply(ctx context.Context, c client.Client, obj *unstructured.Unstructured, dryRun bool) error

Apply server-side-applies obj as the seictl FieldManager, mutating obj in place to match the apiserver response. The GVK is reasserted from the Kind so a caller that hand-built the object can't apply under the wrong Kind.

func (Kind) New

func (k Kind) New() *unstructured.Unstructured

New returns an empty unstructured object stamped with the Kind's GVK, ready for Get/Delete/Apply.

func (Kind) NewList

func (k Kind) NewList() *unstructured.UnstructuredList

NewList returns an empty unstructured list stamped with the Kind's list GVK, ready for client.List.

Jump to

Keyboard shortcuts

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