v1alpha1

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Group = "group01.project01.com"
View Source
const Version = "v1alpha1"

Variables

View Source
var Resource01 = apiextensionsV1.CustomResourceDefinition{
	TypeMeta: metaV1.TypeMeta{
		APIVersion: "apiextensions.k8s.io/v1",
		Kind:       "CustomResourceDefinition",
	},
	ObjectMeta: metaV1.ObjectMeta{
		Name: "resource01s" + "." + Group,
	},
	Spec: apiextensionsV1.CustomResourceDefinitionSpec{
		Group: Group,
		Names: apiextensionsV1.CustomResourceDefinitionNames{
			Plural:   "resource01s",
			Singular: "resource01",
			Kind:     "Resource01",
		},
		Scope: apiextensionsV1.ResourceScope("Namespaced"),
		Versions: []apiextensionsV1.CustomResourceDefinitionVersion{
			apiextensionsV1.CustomResourceDefinitionVersion{
				Name:    Version,
				Served:  true,
				Storage: true,
				Schema: &apiextensionsV1.CustomResourceValidation{
					OpenAPIV3Schema: &apiextensionsV1.JSONSchemaProps{
						Type: "object",
						Properties: map[string]apiextensionsV1.JSONSchemaProps{
							"spec": apiextensionsV1.JSONSchemaProps{
								Type: "object",
								Properties: map[string]apiextensionsV1.JSONSchemaProps{
									"field01": apiextensionsV1.JSONSchemaProps{Type: "integer"},
									"field02": apiextensionsV1.JSONSchemaProps{Type: "string"},
								},
							},
						},
					},
				},
			},
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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