crd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AutoDeployUnitCRD = RegistCRD{
	CustomResourceDefinition: api_x_v1.CustomResourceDefinition{
		TypeMeta: metav1.TypeMeta{Kind: "CustomResourceDefinition", APIVersion: "apiextensions.k8s.io/v1"},
		ObjectMeta: metav1.ObjectMeta{
			Name: "autodeployunits." + autodeploy_v1.SchemeGroupVersion.Group,
		},
		Spec: api_x_v1.CustomResourceDefinitionSpec{
			Group: autodeploy_v1.SchemeGroupVersion.Group,

			Versions: []api_x_v1.CustomResourceDefinitionVersion{{
				Name:    autodeploy_v1.SchemeGroupVersion.Version,
				Served:  true,
				Storage: true,
				Subresources: &api_x_v1.CustomResourceSubresources{
					Status: &api_x_v1.CustomResourceSubresourceStatus{},
				},
				Schema: &api_x_v1.CustomResourceValidation{
					OpenAPIV3Schema: &api_x_v1.JSONSchemaProps{
						Type: "object",
						Properties: map[string]api_x_v1.JSONSchemaProps{
							"spec": {
								Type: "object",
								Properties: map[string]api_x_v1.JSONSchemaProps{
									"image": {
										Type: "string",
									},
									"cmd": {
										Type: "array",
										Items: &api_x_v1.JSONSchemaPropsOrArray{
											Schema: &api_x_v1.JSONSchemaProps{
												Type: "string",
											},
										},
									},
									"url": {
										Type: "string",
									},
									"env": {
										Type: "array",
										Items: &api_x_v1.JSONSchemaPropsOrArray{
											Schema: &api_x_v1.JSONSchemaProps{
												Type: "object",
												Properties: map[string]api_x_v1.JSONSchemaProps{
													"name": {
														Type:        "string",
														Description: "name",
													},
													"value": {
														Type:        "string",
														Description: "value",
													},
													"valueFrom": {
														Type: "object",
														Properties: map[string]api_x_v1.JSONSchemaProps{
															"configMapKeyRef": {
																Type: "object",
																Properties: map[string]api_x_v1.JSONSchemaProps{
																	"name": {
																		Type: "string",
																	},
																	"key": {
																		Type: "string",
																	},
																},
															},
														},
													},
												},
											},
										},
									},
									"sync": {
										Type: "boolean",
									},
								},
							},
						},
					},
				},
			}},
			Names: api_x_v1.CustomResourceDefinitionNames{
				Plural:     "autodeployunits",
				Singular:   "autodeployunit",
				ShortNames: []string{"adunit"},
				Kind:       "AutoDeployUnit",
			},
			Scope: api_x_v1.NamespaceScoped,
		},
		Status: api_x_v1.CustomResourceDefinitionStatus{},
	},
}

Functions

This section is empty.

Types

type AutoDeployUnitCRDEtcdDefaultClient

type AutoDeployUnitCRDEtcdDefaultClient struct {
	AutoDeployUnitCRDEtcdClient
	// contains filtered or unexported fields
}

func (*AutoDeployUnitCRDEtcdDefaultClient) Apply

Apply todo

func (*AutoDeployUnitCRDEtcdDefaultClient) Create

Create todo

func (*AutoDeployUnitCRDEtcdDefaultClient) Delete

Delete todo

func (*AutoDeployUnitCRDEtcdDefaultClient) Get

Get todo

func (*AutoDeployUnitCRDEtcdDefaultClient) List

List todo

func (*AutoDeployUnitCRDEtcdDefaultClient) Namespace

Namespace todo

func (*AutoDeployUnitCRDEtcdDefaultClient) Update

Update todo

type RegistCRD

type RegistCRD struct {
	api_x_v1.CustomResourceDefinition
}

func (*RegistCRD) Regist

func (s *RegistCRD) Regist(k8sXClient *apiextensionsclient.Clientset) error

Jump to

Keyboard shortcuts

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