crd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package crd help to create a operator controller by kubeilder or code-generate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAPI

func CreateAPI(gvk *GVK)

func Generate

func Generate(gvk *GVK, wd *WorkOption)

func Init

func Init(owner, repo string, gvk *GVK)

Types

type GVK

type GVK struct {
	Domain       string
	Group        string
	Version      string
	Kind         string
	UseNamespace bool
	UseStatus    bool
	// attempt to create resource even if it already exists
	Force bool
}

GVK this is the infomation of your CRD

type WorkOption

type WorkOption struct {
	Options   string
	Generated string
	API       string
	Group     string
	Version   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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