netbox

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GroupName is the unique namespace name for the resources.
	GroupName = "netbox.digitalocean.com"

	// NetBoxIPKind is the kind of the CRD.
	NetBoxIPKind = "NetBoxIP"

	// NetBoxIPPlural is the plural form of the CRD.
	NetBoxIPPlural = "netboxips"

	// NetBoxIPCRDName is the full name of the CRD.
	NetBoxIPCRDName = NetBoxIPPlural + "." + GroupName
)

Variables

View Source
var (
	// NetBoxIPShortNames is the list of short names for the CRD.
	NetBoxIPShortNames = []string{"netboxip"}

	// NetBoxIPCRD is the full custom resource definition.
	NetBoxIPCRD = &apiextensionsv1.CustomResourceDefinition{
		ObjectMeta: metav1.ObjectMeta{
			Name: NetBoxIPCRDName,
		},
		Spec: apiextensionsv1.CustomResourceDefinitionSpec{
			Group: GroupName,
			Scope: apiextensionsv1.NamespaceScoped,
			Names: apiextensionsv1.CustomResourceDefinitionNames{
				Plural:     NetBoxIPPlural,
				Kind:       NetBoxIPKind,
				ShortNames: NetBoxIPShortNames,
			},
			Versions: []apiextensionsv1.CustomResourceDefinitionVersion{{
				Name:    "v1beta1",
				Served:  true,
				Storage: true,
				Schema:  v1beta1.NetBoxIPValidationSchema,
				AdditionalPrinterColumns: []apiextensionsv1.CustomResourceColumnDefinition{
					{
						Name:     "address",
						Type:     "string",
						JSONPath: ".spec.address",
					}, {
						Name:     "dnsname",
						Type:     "string",
						JSONPath: ".spec.dnsName",
					},
				},
			}},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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