crd

command
v0.51.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

README

Test CRD Generator

Overview

This directory contains a script that is used to download CRDs that we need for unit testing.

The pattern is based on the following Kubebuilder documentation: https://book-v3.book.kubebuilder.io/reference/using_an_external_type#prepare-for-testing

Usage

To download the CRDs, run the following command:

go run ./test/crd/generator.go

This will download the CRDs to the test/crd directory, under the appropriate subdirectory.

Updating CRDs

To update the CRDs that get generated, update the crds variable in the generator.go script.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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