Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Application = &apiextensionv1beta1.CustomResourceDefinition{ ObjectMeta: metav1.ObjectMeta{ Name: "applications.shipper.booking.com", }, Spec: apiextensionv1beta1.CustomResourceDefinitionSpec{ Group: "shipper.booking.com", Versions: []apiextensionv1beta1.CustomResourceDefinitionVersion{ apiextensionv1beta1.CustomResourceDefinitionVersion{ Name: "v1alpha1", Served: true, Storage: true, }, }, Names: apiextensionv1beta1.CustomResourceDefinitionNames{ Plural: "applications", Singular: "application", Kind: "Application", ShortNames: []string{"app"}, Categories: []string{"all", "shipper"}, }, Validation: &apiextensionv1beta1.CustomResourceValidation{ OpenAPIV3Schema: &apiextensionv1beta1.JSONSchemaProps{ Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "spec": apiextensionv1beta1.JSONSchemaProps{ Type: "object", Required: []string{ "template", }, Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "template": environmentValidation, }, }, }, }, }, }, }
View Source
var CapacityTarget = &apiextensionv1beta1.CustomResourceDefinition{ ObjectMeta: metav1.ObjectMeta{ Name: "capacitytargets.shipper.booking.com", }, Spec: apiextensionv1beta1.CustomResourceDefinitionSpec{ Group: "shipper.booking.com", Versions: []apiextensionv1beta1.CustomResourceDefinitionVersion{ apiextensionv1beta1.CustomResourceDefinitionVersion{ Name: "v1alpha1", Served: true, Storage: true, }, }, Names: apiextensionv1beta1.CustomResourceDefinitionNames{ Plural: "capacitytargets", Singular: "capacitytarget", Kind: "CapacityTarget", ShortNames: []string{"ct"}, Categories: []string{"shipper"}, }, Validation: &apiextensionv1beta1.CustomResourceValidation{ OpenAPIV3Schema: &apiextensionv1beta1.JSONSchemaProps{ Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "spec": apiextensionv1beta1.JSONSchemaProps{ Type: "object", Required: []string{ "clusters", }, Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "clusters": apiextensionv1beta1.JSONSchemaProps{ Type: "array", Items: &apiextensionv1beta1.JSONSchemaPropsOrArray{ Schema: &apiextensionv1beta1.JSONSchemaProps{ Type: "object", Required: []string{ "name", "percent", }, Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "name": apiextensionv1beta1.JSONSchemaProps{ Type: "string", }, "percent": apiextensionv1beta1.JSONSchemaProps{ Type: "integer", Minimum: &zero, Maximum: &hundred, }, }, }, }, }, }, }, }, }, }, }, }
View Source
var Cluster = &apiextensionv1beta1.CustomResourceDefinition{ ObjectMeta: metav1.ObjectMeta{ Name: "clusters.shipper.booking.com", }, Spec: apiextensionv1beta1.CustomResourceDefinitionSpec{ Group: "shipper.booking.com", Versions: []apiextensionv1beta1.CustomResourceDefinitionVersion{ apiextensionv1beta1.CustomResourceDefinitionVersion{ Name: "v1alpha1", Served: true, Storage: true, }, }, Names: apiextensionv1beta1.CustomResourceDefinitionNames{ Plural: "clusters", Singular: "cluster", Kind: "Cluster", ShortNames: []string{"cl"}, Categories: []string{"shipper"}, }, Scope: apiextensionv1beta1.ClusterScoped, Validation: &apiextensionv1beta1.CustomResourceValidation{ OpenAPIV3Schema: &apiextensionv1beta1.JSONSchemaProps{ Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "spec": apiextensionv1beta1.JSONSchemaProps{ Type: "object", Required: []string{ "region", "apiMaster", }, Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "region": apiextensionv1beta1.JSONSchemaProps{ Type: "string", }, "apiMaster": apiextensionv1beta1.JSONSchemaProps{ Type: "string", }, "capabilities": apiextensionv1beta1.JSONSchemaProps{ Type: "array", Items: &apiextensionv1beta1.JSONSchemaPropsOrArray{ Schema: &apiextensionv1beta1.JSONSchemaProps{ Type: "string", }, }, }, "scheduler": apiextensionv1beta1.JSONSchemaProps{ Type: "object", Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "unschedulable": apiextensionv1beta1.JSONSchemaProps{ Type: "boolean", }, "weight": apiextensionv1beta1.JSONSchemaProps{ Type: "integer", }, "identity": apiextensionv1beta1.JSONSchemaProps{ Type: "string", }, }, }, }, }, }, }, }, }, }
View Source
var InstallationTarget = &apiextensionv1beta1.CustomResourceDefinition{ ObjectMeta: metav1.ObjectMeta{ Name: "installationtargets.shipper.booking.com", }, Spec: apiextensionv1beta1.CustomResourceDefinitionSpec{ Group: "shipper.booking.com", Versions: []apiextensionv1beta1.CustomResourceDefinitionVersion{ apiextensionv1beta1.CustomResourceDefinitionVersion{ Name: "v1alpha1", Served: true, Storage: true, }, }, Names: apiextensionv1beta1.CustomResourceDefinitionNames{ Plural: "installationtargets", Singular: "installationtarget", Kind: "InstallationTarget", ShortNames: []string{"it"}, Categories: []string{"shipper"}, }, Validation: &apiextensionv1beta1.CustomResourceValidation{ OpenAPIV3Schema: &apiextensionv1beta1.JSONSchemaProps{ Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "spec": apiextensionv1beta1.JSONSchemaProps{ Type: "object", Required: []string{ "clusters", }, Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "clusters": apiextensionv1beta1.JSONSchemaProps{ Type: "array", Items: &apiextensionv1beta1.JSONSchemaPropsOrArray{ Schema: &apiextensionv1beta1.JSONSchemaProps{ Type: "string", }, }, }, }, }, }, }, }, }, }
View Source
var Release = &apiextensionv1beta1.CustomResourceDefinition{ ObjectMeta: metav1.ObjectMeta{ Name: "releases.shipper.booking.com", }, Spec: apiextensionv1beta1.CustomResourceDefinitionSpec{ Group: "shipper.booking.com", Versions: []apiextensionv1beta1.CustomResourceDefinitionVersion{ apiextensionv1beta1.CustomResourceDefinitionVersion{ Name: "v1alpha1", Served: true, Storage: true, }, }, Names: apiextensionv1beta1.CustomResourceDefinitionNames{ Plural: "releases", Singular: "release", Kind: "Release", ShortNames: []string{"rel"}, Categories: []string{"all", "shipper"}, }, Validation: &apiextensionv1beta1.CustomResourceValidation{ OpenAPIV3Schema: &apiextensionv1beta1.JSONSchemaProps{ Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "spec": apiextensionv1beta1.JSONSchemaProps{ Type: "object", Required: []string{ "targetStep", "environment", }, Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "targetStep": apiextensionv1beta1.JSONSchemaProps{ Type: "integer", Minimum: &zero, }, "environment": environmentValidation, }, }, }, }, }, }, }
View Source
var TrafficTarget = &apiextensionv1beta1.CustomResourceDefinition{ ObjectMeta: metav1.ObjectMeta{ Name: "traffictargets.shipper.booking.com", }, Spec: apiextensionv1beta1.CustomResourceDefinitionSpec{ Group: "shipper.booking.com", Versions: []apiextensionv1beta1.CustomResourceDefinitionVersion{ apiextensionv1beta1.CustomResourceDefinitionVersion{ Name: "v1alpha1", Served: true, Storage: true, }, }, Names: apiextensionv1beta1.CustomResourceDefinitionNames{ Plural: "traffictargets", Singular: "traffictarget", Kind: "TrafficTarget", ShortNames: []string{"tt"}, Categories: []string{"shipper"}, }, Validation: &apiextensionv1beta1.CustomResourceValidation{ OpenAPIV3Schema: &apiextensionv1beta1.JSONSchemaProps{ Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "spec": apiextensionv1beta1.JSONSchemaProps{ Type: "object", Required: []string{ "clusters", }, Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "clusters": apiextensionv1beta1.JSONSchemaProps{ Type: "array", Items: &apiextensionv1beta1.JSONSchemaPropsOrArray{ Schema: &apiextensionv1beta1.JSONSchemaProps{ Type: "object", Required: []string{ "name", "weight", }, Properties: map[string]apiextensionv1beta1.JSONSchemaProps{ "name": apiextensionv1beta1.JSONSchemaProps{ Type: "string", }, "weight": apiextensionv1beta1.JSONSchemaProps{ Type: "integer", Minimum: &zero, }, }, }, }, }, }, }, }, }, }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.