unstructured

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package unstructured provides schema-aware conversion of Kubernetes unstructured data to CEL ref.Val values. It is a port of the upstream k8s.io/apiserver/pkg/cel/common.UnstructuredToVal with adjustments for kro.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnstructuredToVal

func UnstructuredToVal(unstructured interface{}, schema common.Schema) ref.Val

UnstructuredToVal converts a Kubernetes unstructured data element to a CEL Val. The root schema of custom resource schemas is expected to contain type meta and object meta schemas. If Embedded resources do not contain type meta and object meta schemas, they will be added automatically. nolint:gocyclo // this should stay close to upstream common.UnstructuredToVal

Types

This section is empty.

Jump to

Keyboard shortcuts

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