resources

package
v0.7.1 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: 8 Imported by: 0

Documentation

Overview

Package resources provides resource factories for the custom-resource example.

Index

Constants

This section is empty.

Variables

View Source
var CertificateRequestGVK = schema.GroupVersionKind{
	Group:   "cert.example.io",
	Version: "v1",
	Kind:    "CertificateRequest",
}

CertificateRequestGVK is the GVK for the fictional CertificateRequest CRD.

Functions

func BaseCertificateRequest

func BaseCertificateRequest(owner *app.ExampleApp) *uns.Unstructured

BaseCertificateRequest returns the desired-state unstructured object for a CertificateRequest. This is the baseline before mutations are applied.

func NewCertificateResource

func NewCertificateResource(owner *app.ExampleApp) (component.Resource, error)

NewCertificateResource constructs an unstructured CertificateRequest with mutations that set the spec fields. This demonstrates how to manage any CRD without a typed primitive wrapper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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