diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json new file mode 100644 index 000000000..02e541edf --- /dev/null +++ b/api/openapi-spec/swagger.json @@ -0,0 +1,1606 @@ +{ + "swagger": "2.0", + "info": { + "title": "Shipper", + "version": "v1alpha1" + }, + "paths": {}, + "definitions": { + "io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference": { + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": "boolean" + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": "boolean" + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + }, + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Time": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string" + }, + "io.k8s.api.core.v1.ContainerState": { + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", + "properties": { + "running": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateRunning", + "description": "Details about a running container" + }, + "terminated": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateTerminated", + "description": "Details about a terminated container" + }, + "waiting": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateWaiting", + "description": "Details about a waiting container" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ContainerStateRunning": { + "description": "ContainerStateRunning is a running state of a container.", + "properties": { + "startedAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container was last (re-)started" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ContainerStateTerminated": { + "description": "ContainerStateTerminated is a terminated state of a container.", + "properties": { + "containerID": { + "description": "Container's ID in the format 'docker://'", + "type": "string" + }, + "exitCode": { + "description": "Exit status from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "finishedAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container last terminated" + }, + "message": { + "description": "Message regarding the last termination of the container", + "type": "string" + }, + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": "string" + }, + "signal": { + "description": "Signal from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "startedAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which previous execution of the container started" + } + }, + "required": [ + "exitCode" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ContainerStateWaiting": { + "description": "ContainerStateWaiting is a waiting state of a container.", + "properties": { + "message": { + "description": "Message regarding why the container is not yet running.", + "type": "string" + }, + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ContainerStatus": { + "description": "ContainerStatus contains details for the current status of this container.", + "properties": { + "containerID": { + "description": "Container's ID in the format 'docker://'.", + "type": "string" + }, + "image": { + "description": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images", + "type": "string" + }, + "imageID": { + "description": "ImageID of the container's image.", + "type": "string" + }, + "lastState": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState", + "description": "Details about the container's last termination condition." + }, + "name": { + "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", + "type": "string" + }, + "ready": { + "description": "Specifies whether the container has passed its readiness probe.", + "type": "boolean" + }, + "restartCount": { + "description": "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.", + "format": "int32", + "type": "integer" + }, + "started": { + "description": "Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined.", + "type": "boolean" + }, + "state": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState", + "description": "Details about the container's current condition." + } + }, + "required": [ + "name", + "ready", + "restartCount", + "image", + "imageID" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodCondition": { + "description": "PodCondition contains details for the current condition of this pod.", + "properties": { + "lastProbeTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": "string" + }, + "type": { + "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "properties": { + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", + "type": "string" + }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", + "format": "int64", + "type": "integer" + }, + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "selfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", + "type": "string" + } + }, + "type": "object" + }, + "AchievedStep.shipper.booking.com": { + "type": "object", + "required": [ + "step", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "step": { + "type": "integer", + "format": "int32" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "type": "object" + }, + "clusterName": { + "description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", + "type": "string" + }, + "creationTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "format": "int64", + "type": "integer" + }, + "deletionTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": "string" + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "format": "int64", + "type": "integer" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", + "type": "object" + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" + }, + "type": "array" + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "namespace": { + "description": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", + "type": "string" + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", + "type": "string" + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": "string" + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": "string" + }, + "fieldsV1": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1", + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type." + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": "string" + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": "string" + }, + "time": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'" + } + }, + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1": { + "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", + "type": "object" + }, + "Application.shipper.booking.com": { + "description": "Application describes a deployable application", + "type": "object", + "required": [ + "spec", + "status" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/ApplicationSpec.shipper.booking.com" + }, + "status": { + "description": "Most recently observed status of the application", + "$ref": "#/definitions/ApplicationStatus.shipper.booking.com" + } + } + }, + "ApplicationCondition.shipper.booking.com": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "ApplicationList.shipper.booking.com": { + "description": "ApplicationList is a list of Applications. Mostly only useful for admins: regular users interact with exactly one Application at once", + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/Application.shipper.booking.com" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "ApplicationSpec.shipper.booking.com": { + "type": "object", + "required": [ + "revisionHistoryLimit", + "template" + ], + "properties": { + "revisionHistoryLimit": { + "type": "integer", + "format": "int32" + }, + "template": { + "$ref": "#/definitions/ReleaseEnvironment.shipper.booking.com" + } + } + }, + "ApplicationStatus.shipper.booking.com": { + "type": "object", + "properties": { + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCondition.shipper.booking.com" + } + }, + "history": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "CapacityTarget.shipper.booking.com": { + "description": "A CapacityTarget defines the goal state for # of pods for incumbent and contender versions. This is used by the StrategyController to change the state of the cluster to satisfy a single step of a Strategy.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/CapacityTargetSpec.shipper.booking.com" + }, + "status": { + "$ref": "#/definitions/CapacityTargetStatus.shipper.booking.com" + } + } + }, + "CapacityTargetList.shipper.booking.com": { + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/CapacityTarget.shipper.booking.com" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "CapacityTargetSpec.shipper.booking.com": { + "type": "object", + "required": [ + "clusters" + ], + "properties": { + "clusters": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterCapacityTarget.shipper.booking.com" + } + } + } + }, + "CapacityTargetStatus.shipper.booking.com": { + "type": "object", + "properties": { + "clusters": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterCapacityStatus.shipper.booking.com" + } + } + } + }, + "Chart.shipper.booking.com": { + "type": "object", + "required": [ + "name", + "version", + "repoUrl" + ], + "properties": { + "name": { + "type": "string" + }, + "repoUrl": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "Cluster.shipper.booking.com": { + "description": "An Cluster is a cluster we're deploying to.", + "type": "object", + "required": [ + "spec", + "status" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/ClusterSpec.shipper.booking.com" + }, + "status": { + "description": "Most recently observed status of the order / +optional", + "$ref": "#/definitions/ClusterStatus.shipper.booking.com" + } + } + }, + "ClusterCapacityCondition.shipper.booking.com": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "ClusterCapacityReport.shipper.booking.com": { + "type": "object", + "required": [ + "owner" + ], + "properties": { + "breakdown": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterCapacityReportBreakdown.shipper.booking.com" + } + }, + "owner": { + "$ref": "#/definitions/ClusterCapacityReportOwner.shipper.booking.com" + } + } + }, + "ClusterCapacityReportBreakdown.shipper.booking.com": { + "type": "object", + "required": [ + "count", + "status", + "type" + ], + "properties": { + "containers": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterCapacityReportContainerBreakdown.shipper.booking.com" + } + }, + "count": { + "type": "integer", + "format": "int64" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "ClusterCapacityReportContainerBreakdown.shipper.booking.com": { + "type": "object", + "required": [ + "name", + "states" + ], + "properties": { + "name": { + "type": "string" + }, + "states": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterCapacityReportContainerStateBreakdown.shipper.booking.com" + } + } + } + }, + "ClusterCapacityReportContainerBreakdownExample.shipper.booking.com": { + "type": "object", + "required": [ + "pod" + ], + "properties": { + "message": { + "type": "string" + }, + "pod": { + "type": "string" + } + } + }, + "ClusterCapacityReportContainerStateBreakdown.shipper.booking.com": { + "type": "object", + "required": [ + "count", + "example", + "type" + ], + "properties": { + "count": { + "type": "integer", + "format": "int64" + }, + "example": { + "$ref": "#/definitions/ClusterCapacityReportContainerBreakdownExample.shipper.booking.com" + }, + "reason": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "ClusterCapacityReportOwner.shipper.booking.com": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "ClusterCapacityStatus.shipper.booking.com": { + "type": "object", + "required": [ + "name", + "availableReplicas", + "achievedPercent" + ], + "properties": { + "achievedPercent": { + "type": "integer", + "format": "int32" + }, + "availableReplicas": { + "type": "integer", + "format": "int32" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterCapacityCondition.shipper.booking.com" + } + }, + "name": { + "type": "string" + }, + "reports": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterCapacityReport.shipper.booking.com" + } + }, + "sadPods": { + "type": "array", + "items": { + "$ref": "#/definitions/PodStatus.shipper.booking.com" + } + } + } + }, + "ClusterCapacityTarget.shipper.booking.com": { + "type": "object", + "required": [ + "name", + "percent", + "totalReplicaCount" + ], + "properties": { + "name": { + "type": "string" + }, + "percent": { + "type": "integer", + "format": "int32" + }, + "totalReplicaCount": { + "type": "integer", + "format": "int32" + } + } + }, + "ClusterInstallationCondition.shipper.booking.com": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "ClusterInstallationStatus.shipper.booking.com": { + "type": "object", + "required": [ + "name", + "status" + ], + "properties": { + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterInstallationCondition.shipper.booking.com" + } + }, + "message": { + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "type": "string" + } + } + }, + "ClusterList.shipper.booking.com": { + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/Cluster.shipper.booking.com" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "ClusterRequirements.shipper.booking.com": { + "type": "object", + "required": [ + "regions" + ], + "properties": { + "capabilities": { + "type": "array", + "items": { + "type": "string" + } + }, + "regions": { + "description": "it is an error to not specify any regions", + "type": "array", + "items": { + "$ref": "#/definitions/RegionRequirement.shipper.booking.com" + } + } + } + }, + "ClusterSchedulerSettings.shipper.booking.com": { + "type": "object", + "required": [ + "unschedulable" + ], + "properties": { + "identity": { + "type": "string" + }, + "unschedulable": { + "type": "boolean" + }, + "weight": { + "type": "integer", + "format": "int32" + } + } + }, + "ClusterSpec.shipper.booking.com": { + "type": "object", + "required": [ + "capabilities", + "region", + "apiMaster", + "scheduler" + ], + "properties": { + "apiMaster": { + "type": "string" + }, + "capabilities": { + "type": "array", + "items": { + "type": "string" + } + }, + "region": { + "type": "string" + }, + "scheduler": { + "$ref": "#/definitions/ClusterSchedulerSettings.shipper.booking.com" + } + } + }, + "ClusterStatus.shipper.booking.com": { + "description": "NOTE(btyler) when we introduce capacity based scheduling, the capacity can be collected by a cluster controller and stored in cluster.status", + "type": "object", + "required": [ + "inService" + ], + "properties": { + "inService": { + "type": "boolean" + } + } + }, + "ClusterTrafficCondition.shipper.booking.com": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "ClusterTrafficStatus.shipper.booking.com": { + "type": "object", + "required": [ + "name", + "achievedTraffic", + "status", + "conditions" + ], + "properties": { + "achievedTraffic": { + "type": "integer", + "format": "int64" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterTrafficCondition.shipper.booking.com" + } + }, + "name": { + "type": "string" + }, + "status": { + "type": "string" + } + } + }, + "ClusterTrafficTarget.shipper.booking.com": { + "type": "object", + "required": [ + "name", + "weight" + ], + "properties": { + "name": { + "type": "string" + }, + "weight": { + "description": "apimachinery intstr for percentages?", + "type": "integer", + "format": "int64" + } + } + }, + "InstallationTarget.shipper.booking.com": { + "description": "An InstallationTarget defines the goal state for # of pods for incumbent and contender versions. This is used by the StrategyController to change the state of the cluster to satisfy a single step of a Strategy.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/InstallationTargetSpec.shipper.booking.com" + }, + "status": { + "$ref": "#/definitions/InstallationTargetStatus.shipper.booking.com" + } + } + }, + "InstallationTargetList.shipper.booking.com": { + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/InstallationTarget.shipper.booking.com" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "InstallationTargetSpec.shipper.booking.com": { + "type": "object", + "required": [ + "clusters", + "canOverride", + "chart" + ], + "properties": { + "canOverride": { + "type": "boolean" + }, + "chart": { + "description": "XXX these are nullable because of migration", + "$ref": "#/definitions/Chart.shipper.booking.com" + }, + "clusters": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "InstallationTargetStatus.shipper.booking.com": { + "type": "object", + "properties": { + "clusters": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterInstallationStatus.shipper.booking.com" + } + } + } + }, + "PodStatus.shipper.booking.com": { + "type": "object", + "required": [ + "name", + "containers", + "initContainers", + "condition" + ], + "properties": { + "condition": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodCondition" + }, + "containers": { + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" + } + }, + "initContainers": { + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" + } + }, + "name": { + "type": "string" + } + } + }, + "RegionRequirement.shipper.booking.com": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "replicas": { + "type": "integer", + "format": "int32" + } + } + }, + "Release.shipper.booking.com": { + "description": "A Release is the defines the goal state for # of pods for incumbent and contender versions. This is used by the StrategyController to change the state of the cluster to satisfy a single step of a Strategy.", + "type": "object", + "required": [ + "spec", + "status" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/ReleaseSpec.shipper.booking.com" + }, + "status": { + "$ref": "#/definitions/ReleaseStatus.shipper.booking.com" + } + } + }, + "ReleaseCondition.shipper.booking.com": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "ReleaseEnvironment.shipper.booking.com": { + "type": "object", + "required": [ + "chart", + "values", + "clusterRequirements" + ], + "properties": { + "chart": { + "description": "Chart spec: name, version, repoURL", + "$ref": "#/definitions/Chart.shipper.booking.com" + }, + "clusterRequirements": { + "description": "requirements for target clusters for the deployment", + "$ref": "#/definitions/ClusterRequirements.shipper.booking.com" + }, + "strategy": { + "$ref": "#/definitions/RolloutStrategy.shipper.booking.com" + }, + "values": { + "description": "the inlined \"values.yaml\" to apply to the chart when rendering it XXX pointer here means it's null-able, do we want that?", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "ReleaseList.shipper.booking.com": { + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/Release.shipper.booking.com" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "ReleaseSpec.shipper.booking.com": { + "type": "object", + "required": [ + "targetStep", + "environment" + ], + "properties": { + "environment": { + "$ref": "#/definitions/ReleaseEnvironment.shipper.booking.com" + }, + "targetStep": { + "type": "integer", + "format": "int32" + } + } + }, + "ReleaseStatus.shipper.booking.com": { + "description": "this will likely grow into a struct with interesting fields", + "type": "object", + "properties": { + "achievedStep": { + "$ref": "#/definitions/AchievedStep.shipper.booking.com" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/ReleaseCondition.shipper.booking.com" + } + }, + "strategy": { + "$ref": "#/definitions/ReleaseStrategyStatus.shipper.booking.com" + } + } + }, + "ReleaseStrategyCondition.shipper.booking.com": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "step": { + "type": "integer", + "format": "int32" + }, + "type": { + "type": "string" + } + } + }, + "ReleaseStrategyState.shipper.booking.com": { + "type": "object", + "required": [ + "waitingForInstallation", + "waitingForCapacity", + "waitingForTraffic", + "waitingForCommand" + ], + "properties": { + "waitingForCapacity": { + "type": "string" + }, + "waitingForCommand": { + "type": "string" + }, + "waitingForInstallation": { + "type": "string" + }, + "waitingForTraffic": { + "type": "string" + } + } + }, + "ReleaseStrategyStatus.shipper.booking.com": { + "type": "object", + "properties": { + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/ReleaseStrategyCondition.shipper.booking.com" + } + }, + "state": { + "$ref": "#/definitions/ReleaseStrategyState.shipper.booking.com" + } + } + }, + "RolloutBlock.shipper.booking.com": { + "description": "A RolloutBlock defines the a state where rollouts are blocked, locally or globally. This is used by the ApplicationController to disable rollouts.", + "type": "object", + "required": [ + "spec", + "status" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/RolloutBlockSpec.shipper.booking.com" + }, + "status": { + "$ref": "#/definitions/RolloutBlockStatus.shipper.booking.com" + } + } + }, + "RolloutBlockAuthor.shipper.booking.com": { + "type": "object", + "required": [ + "type", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "RolloutBlockList.shipper.booking.com": { + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/RolloutBlock.shipper.booking.com" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "RolloutBlockOverrides.shipper.booking.com": { + "type": "object", + "required": [ + "application", + "release" + ], + "properties": { + "application": { + "type": "string" + }, + "release": { + "type": "string" + } + } + }, + "RolloutBlockSpec.shipper.booking.com": { + "type": "object", + "required": [ + "message", + "author" + ], + "properties": { + "author": { + "$ref": "#/definitions/RolloutBlockAuthor.shipper.booking.com" + }, + "message": { + "type": "string" + } + } + }, + "RolloutBlockStatus.shipper.booking.com": { + "type": "object", + "required": [ + "overrides" + ], + "properties": { + "overrides": { + "$ref": "#/definitions/RolloutBlockOverrides.shipper.booking.com" + } + } + }, + "RolloutStrategy.shipper.booking.com": { + "type": "object", + "required": [ + "steps" + ], + "properties": { + "steps": { + "type": "array", + "items": { + "$ref": "#/definitions/RolloutStrategyStep.shipper.booking.com" + } + } + } + }, + "RolloutStrategyStep.shipper.booking.com": { + "type": "object", + "required": [ + "name", + "capacity", + "traffic" + ], + "properties": { + "capacity": { + "$ref": "#/definitions/RolloutStrategyStepValue.shipper.booking.com" + }, + "name": { + "type": "string" + }, + "traffic": { + "$ref": "#/definitions/RolloutStrategyStepValue.shipper.booking.com" + } + } + }, + "RolloutStrategyStepValue.shipper.booking.com": { + "type": "object", + "required": [ + "incumbent", + "contender" + ], + "properties": { + "contender": { + "type": "integer", + "format": "int32" + }, + "incumbent": { + "type": "integer", + "format": "int32" + } + } + }, + "TrafficTarget.shipper.booking.com": { + "description": "A TrafficTarget defines the goal state for traffic split between incumbent and contender versions. This is used by the StrategyController to change the state of the service mesh to satisfy a single step of a Strategy.", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/TrafficTargetSpec.shipper.booking.com" + }, + "status": { + "$ref": "#/definitions/TrafficTargetStatus.shipper.booking.com" + } + } + }, + "TrafficTargetList.shipper.booking.com": { + "type": "object", + "required": [ + "metadata", + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/TrafficTarget.shipper.booking.com" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + } + }, + "TrafficTargetSpec.shipper.booking.com": { + "type": "object", + "required": [ + "clusters" + ], + "properties": { + "clusters": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterTrafficTarget.shipper.booking.com" + } + } + } + }, + "TrafficTargetStatus.shipper.booking.com": { + "type": "object", + "properties": { + "clusters": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterTrafficStatus.shipper.booking.com" + } + } + } + } + } +} diff --git a/go.mod b/go.mod index 11eb4983d..c025e663b 100644 --- a/go.mod +++ b/go.mod @@ -10,6 +10,7 @@ require ( github.com/aokoli/goutils v1.0.1 // indirect github.com/cespare/xxhash v1.1.0 github.com/evanphx/json-patch v4.2.0+incompatible // indirect + github.com/go-openapi/spec v0.17.2 github.com/gobwas/glob v0.2.2 // indirect github.com/gogo/protobuf v1.2.1 // indirect github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef // indirect @@ -50,7 +51,11 @@ require ( k8s.io/gengo v0.0.0-20190327210449-e17681d19d3a // indirect k8s.io/helm v2.8.0+incompatible k8s.io/klog v0.3.2 - k8s.io/kube-openapi v0.0.0-20190603182131-db7b694dc208 // indirect + k8s.io/kube-openapi v0.0.0-20190603182131-db7b694dc208 k8s.io/utils v0.0.0-20190529001817-6999998975a7 // indirect sigs.k8s.io/yaml v1.1.0 ) + +replace k8s.io/apimachinery v0.0.0-20190602113612-63a6072eb563 => k8s.io/apimachinery v0.0.0-20190602183612-63a6072eb563 + +replace github.com/kubernetes/kube-openapi v0.0.0-20191107075043-30be4d16710a => k8s.io/kube-openapi v0.0.0-20190603182131-db7b694dc208 diff --git a/go.sum b/go.sum index 8ddebd380..02b9f6ee2 100644 --- a/go.sum +++ b/go.sum @@ -18,8 +18,10 @@ github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAE github.com/OneOfOne/xxhash v1.2.5 h1:zl/OfRA6nftbBK9qTohYBJ5xvw6C/oNKizR7cZGl3cI= github.com/OneOfOne/xxhash v1.2.5/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdIIOT9Um7Q= github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/purell v1.1.0 h1:rmGxhojJlM0tuKtfdvliR84CFHljx9ag64t2xmVkjK4= github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= @@ -50,6 +52,7 @@ github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= +github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633 h1:H2pdYOb3KQ1/YsqVWoWNLQO+fusocsw354rqGTZtAgw= github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= github.com/evanphx/json-patch v0.0.0-20190203023257-5858425f7550/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.2.0+incompatible h1:fUDGZCv/7iAN7u0puUVhvKCcsR6vRfwrJatElLBEf0I= @@ -71,9 +74,11 @@ github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQH github.com/go-openapi/errors v0.17.2/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= +github.com/go-openapi/jsonpointer v0.19.0 h1:FTUMcX77w5rQkClIzDtTxvn6Bsa894CcrzNj2MMfeg8= github.com/go-openapi/jsonpointer v0.19.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= +github.com/go-openapi/jsonreference v0.19.0 h1:BqWKpV1dFd+AuiKlgtddwVIFQsuMpxfBDBHGfM2yNpk= github.com/go-openapi/jsonreference v0.19.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.17.2/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= @@ -81,10 +86,12 @@ github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6 github.com/go-openapi/runtime v0.17.2/go.mod h1:QO936ZXeisByFmZEO1IS1Dqhtf4QV1sYYFtIq6Ld86Q= github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= +github.com/go-openapi/spec v0.17.2 h1:eb2NbuCnoe8cWAxhtK6CfMWUYmiFEZJ9Hx3Z2WRwJ5M= github.com/go-openapi/spec v0.17.2/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= +github.com/go-openapi/swag v0.17.2 h1:K/ycE/XTUDFltNHSO32cGRUhrVGJD64o8WgAIZNyc3k= github.com/go-openapi/swag v0.17.2/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/validate v0.17.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= @@ -160,6 +167,7 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329 h1:2gxZ0XQIU/5z3Z3bUBu+FXuk2pFbkN6tcwi/pjyaDic= github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= @@ -352,7 +360,6 @@ k8s.io/api v0.0.0-20190602205700-9b8cae951d65/go.mod h1:03pQc5o/sznCJkBfM5JE6PDB k8s.io/apiextensions-apiserver v0.0.0-20190602131520-451a9c13a3c8 h1:EqVj1O4rx5Ei3v5GZTc+koIsRr52HEbpKb3hYju+r54= k8s.io/apiextensions-apiserver v0.0.0-20190602131520-451a9c13a3c8/go.mod h1:vBDmZGUuVk3xyaO5Y50RRbmbzyUMs4CRtk3yhXuBteg= k8s.io/apimachinery v0.0.0-20190531131812-859a0ba5e71a/go.mod h1:u/2VL7tgEMV0FFTV9q0JO+7cnTsV44LP8Pmx41R4AQ4= -k8s.io/apimachinery v0.0.0-20190602113612-63a6072eb563/go.mod h1:u/2VL7tgEMV0FFTV9q0JO+7cnTsV44LP8Pmx41R4AQ4= k8s.io/apimachinery v0.0.0-20190602125621-c0632ccbde11/go.mod h1:u/2VL7tgEMV0FFTV9q0JO+7cnTsV44LP8Pmx41R4AQ4= k8s.io/apimachinery v0.0.0-20190602183612-63a6072eb563 h1:FqK+g186du3W9peHKCV2GPqMSNEIHz1QUrfYggvaseU= k8s.io/apimachinery v0.0.0-20190602183612-63a6072eb563/go.mod h1:u/2VL7tgEMV0FFTV9q0JO+7cnTsV44LP8Pmx41R4AQ4= diff --git a/hack/gen-openapi-spec/main.go b/hack/gen-openapi-spec/main.go new file mode 100644 index 000000000..e86fb56f9 --- /dev/null +++ b/hack/gen-openapi-spec/main.go @@ -0,0 +1,67 @@ +package main + +import ( + "encoding/json" + "fmt" + "log" + "os" + "strings" + + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1" + "github.com/go-openapi/spec" + "k8s.io/kube-openapi/pkg/common" +) + +// Generate OpenAPI spec definitions for Shipper Resources +func main() { + if len(os.Args) <= 1 { + log.Fatal("Supply a version") + } + version := os.Args[1] + if !strings.HasPrefix(version, "v") { + version = "v" + version + } + oAPIDefs := v1alpha1.GetOpenAPIDefinitions(func(name string) spec.Ref { + return spec.MustCreateRef("#/definitions/" + common.EscapeJsonPointer(swaggify(name))) + }) + defs := spec.Definitions{} + for defName, val := range oAPIDefs { + defs[swaggify(defName)] = val.Schema + } + swagger := spec.Swagger{ + SwaggerProps: spec.SwaggerProps{ + Swagger: "2.0", + Definitions: defs, + Paths: &spec.Paths{Paths: map[string]spec.PathItem{}}, + Info: &spec.Info{ + InfoProps: spec.InfoProps{ + Title: "Shipper", + Version: version, + }, + }, + }, + } + jsonBytes, err := json.MarshalIndent(swagger, "", " ") + if err != nil { + log.Fatal(err.Error()) + } + fmt.Println(string(jsonBytes)) +} + +// swaggify converts the github package +// e.g.: +// github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Workflow +// to: +// io.argoproj.workflow.v1alpha1.Workflow +func swaggify(name string) string { + // Should I use com.booking.applications.shipper or booking.com.applications.shipper or something here? + name = strings.Replace(name, "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1", "com.booking.shipper", -1) + parts := strings.Split(name, "/") + hostParts := strings.Split(parts[0], ".") + // reverses something like k8s.io to io.k8s + for i, j := 0, len(hostParts)-1; i < j; i, j = i+1, j-1 { + hostParts[i], hostParts[j] = hostParts[j], hostParts[i] + } + parts[0] = strings.Join(hostParts, ".") + return strings.Join(parts, ".") +} diff --git a/hack/update-openapigen.sh b/hack/update-openapigen.sh new file mode 100755 index 000000000..9e371fa04 --- /dev/null +++ b/hack/update-openapigen.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -o errexit +set -o nounset +set -o pipefail + +# PROJECT_ROOT=$(cd $(dirname "$0")/.. ; pwd) +# CODEGEN_PKG=${PROJECT_ROOT}/vendor/k8s.io/kube-openapi +# VERSION="v1alpha1" +# +# go run ${CODEGEN_PKG}/cmd/openapi-gen/openapi-gen.go \ +# --go-header-file ${PROJECT_ROOT}/hack/custom-boilerplate.go.txt \ +# --input-dirs github.com/bookingcom/shipper/pkg/apis/workflow/${VERSION} \ +# --output-package github.com/argoproj/argo/pkg/apis/workflow/${VERSION} \ +# --report-filename pkg/apis/api-rules/violation_exceptions.list \ +# $@ +# PROJECT_ROOT=$(cd $(dirname "$0")/.. ; pwd) +# CODEGEN_PKG=${PROJECT_ROOT}/vendor/k8s.io/kube-openapi +VERSION="v1alpha1" + +go run $GOPATH/src/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go \ + --input-dirs github.com/bookingcom/shipper/pkg/apis/shipper/${VERSION} \ + --output-package github.com/bookingcom/shipper/pkg/apis/shipper/${VERSION} \ + --report-filename pkg/apis/api-rules/violation_exceptions.list + $@ + diff --git a/hack/verify-openapigen.sh b/hack/verify-openapigen.sh new file mode 100755 index 000000000..28682056d --- /dev/null +++ b/hack/verify-openapigen.sh @@ -0,0 +1,48 @@ +#!/bin/bash + +# Copyright 2017 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -o errexit +set -o nounset +set -o pipefail + +SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")/.. + +DIFFROOT="${SCRIPT_ROOT}/pkg" +TMP_DIFFROOT="${SCRIPT_ROOT}/_tmp/pkg" +_tmp="${SCRIPT_ROOT}/_tmp" + +cleanup() { + rm -rf "${_tmp}" +} +trap "cleanup" EXIT SIGINT + +cleanup + +mkdir -p "${TMP_DIFFROOT}" +cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}" + +"${SCRIPT_ROOT}/hack/update-openapigen.sh" +echo "diffing ${DIFFROOT} against freshly generated codegen" +ret=0 +diff -Naupr "${DIFFROOT}" "${TMP_DIFFROOT}" || ret=$? +cp -a "${TMP_DIFFROOT}"/* "${DIFFROOT}" +if [[ $ret -eq 0 ]] +then + echo "${DIFFROOT} up to date." +else + echo "${DIFFROOT} is out of date. Please run hack/update-openapigen.sh" + exit 1 +fi diff --git a/pkg/apis/api-rules/violation_exceptions.list b/pkg/apis/api-rules/violation_exceptions.list new file mode 100644 index 000000000..066fa4bd3 --- /dev/null +++ b/pkg/apis/api-rules/violation_exceptions.list @@ -0,0 +1,32 @@ +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ApplicationList,Items +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ApplicationStatus,Conditions +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ApplicationStatus,History +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,CapacityTargetList,Items +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,CapacityTargetSpec,Clusters +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,CapacityTargetStatus,Clusters +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterCapacityReport,Breakdown +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterCapacityReportBreakdown,Containers +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterCapacityReportContainerBreakdown,States +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterCapacityStatus,Conditions +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterCapacityStatus,Reports +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterCapacityStatus,SadPods +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterInstallationStatus,Conditions +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterList,Items +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterRequirements,Capabilities +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterRequirements,Regions +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterSpec,Capabilities +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ClusterTrafficStatus,Conditions +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,InstallationTargetList,Items +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,InstallationTargetSpec,Clusters +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,InstallationTargetStatus,Clusters +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,PodStatus,Containers +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,PodStatus,InitContainers +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ReleaseList,Items +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ReleaseStatus,Conditions +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,ReleaseStrategyStatus,Conditions +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,RolloutBlockList,Items +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,RolloutStrategy,Steps +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,TrafficTargetList,Items +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,TrafficTargetSpec,Clusters +API rule violation: list_type_missing,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,TrafficTargetStatus,Clusters +API rule violation: names_match,github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1,Chart,RepoURL diff --git a/pkg/apis/shipper/v1alpha1/doc.go b/pkg/apis/shipper/v1alpha1/doc.go index a30598a24..ec1f36101 100644 --- a/pkg/apis/shipper/v1alpha1/doc.go +++ b/pkg/apis/shipper/v1alpha1/doc.go @@ -1,4 +1,5 @@ // +k8s:deepcopy-gen=package,register +// +k8s:openapi-gen=true // Package v1alpha1 is the v1alpha1 version of the API. // +groupName=shipper.booking.com diff --git a/pkg/apis/shipper/v1alpha1/openapi_generated.go b/pkg/apis/shipper/v1alpha1/openapi_generated.go new file mode 100644 index 000000000..4f1a9e6b7 --- /dev/null +++ b/pkg/apis/shipper/v1alpha1/openapi_generated.go @@ -0,0 +1,2292 @@ +// +build !ignore_autogenerated + +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by openapi-gen. DO NOT EDIT. + +// This file was autogenerated by openapi-gen. Do not edit it manually! + +package v1alpha1 + +import ( + spec "github.com/go-openapi/spec" + common "k8s.io/kube-openapi/pkg/common" +) + +func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { + return map[string]common.OpenAPIDefinition{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.AchievedStep": schema_pkg_apis_shipper_v1alpha1_AchievedStep(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Application": schema_pkg_apis_shipper_v1alpha1_Application(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ApplicationCondition": schema_pkg_apis_shipper_v1alpha1_ApplicationCondition(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ApplicationList": schema_pkg_apis_shipper_v1alpha1_ApplicationList(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ApplicationSpec": schema_pkg_apis_shipper_v1alpha1_ApplicationSpec(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ApplicationStatus": schema_pkg_apis_shipper_v1alpha1_ApplicationStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.CapacityTarget": schema_pkg_apis_shipper_v1alpha1_CapacityTarget(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.CapacityTargetList": schema_pkg_apis_shipper_v1alpha1_CapacityTargetList(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.CapacityTargetSpec": schema_pkg_apis_shipper_v1alpha1_CapacityTargetSpec(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.CapacityTargetStatus": schema_pkg_apis_shipper_v1alpha1_CapacityTargetStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Chart": schema_pkg_apis_shipper_v1alpha1_Chart(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Cluster": schema_pkg_apis_shipper_v1alpha1_Cluster(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityCondition": schema_pkg_apis_shipper_v1alpha1_ClusterCapacityCondition(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReport": schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReport(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportBreakdown": schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReportBreakdown(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportContainerBreakdown": schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReportContainerBreakdown(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportContainerBreakdownExample": schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReportContainerBreakdownExample(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportContainerStateBreakdown": schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReportContainerStateBreakdown(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportOwner": schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReportOwner(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityStatus": schema_pkg_apis_shipper_v1alpha1_ClusterCapacityStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityTarget": schema_pkg_apis_shipper_v1alpha1_ClusterCapacityTarget(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterInstallationCondition": schema_pkg_apis_shipper_v1alpha1_ClusterInstallationCondition(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterInstallationStatus": schema_pkg_apis_shipper_v1alpha1_ClusterInstallationStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterList": schema_pkg_apis_shipper_v1alpha1_ClusterList(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterRequirements": schema_pkg_apis_shipper_v1alpha1_ClusterRequirements(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterSchedulerSettings": schema_pkg_apis_shipper_v1alpha1_ClusterSchedulerSettings(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterSpec": schema_pkg_apis_shipper_v1alpha1_ClusterSpec(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterStatus": schema_pkg_apis_shipper_v1alpha1_ClusterStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterTrafficCondition": schema_pkg_apis_shipper_v1alpha1_ClusterTrafficCondition(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterTrafficStatus": schema_pkg_apis_shipper_v1alpha1_ClusterTrafficStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterTrafficTarget": schema_pkg_apis_shipper_v1alpha1_ClusterTrafficTarget(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.InstallationTarget": schema_pkg_apis_shipper_v1alpha1_InstallationTarget(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.InstallationTargetList": schema_pkg_apis_shipper_v1alpha1_InstallationTargetList(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.InstallationTargetSpec": schema_pkg_apis_shipper_v1alpha1_InstallationTargetSpec(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.InstallationTargetStatus": schema_pkg_apis_shipper_v1alpha1_InstallationTargetStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.PodStatus": schema_pkg_apis_shipper_v1alpha1_PodStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RegionRequirement": schema_pkg_apis_shipper_v1alpha1_RegionRequirement(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Release": schema_pkg_apis_shipper_v1alpha1_Release(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseCondition": schema_pkg_apis_shipper_v1alpha1_ReleaseCondition(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseEnvironment": schema_pkg_apis_shipper_v1alpha1_ReleaseEnvironment(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseList": schema_pkg_apis_shipper_v1alpha1_ReleaseList(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseSpec": schema_pkg_apis_shipper_v1alpha1_ReleaseSpec(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStatus": schema_pkg_apis_shipper_v1alpha1_ReleaseStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStrategyCondition": schema_pkg_apis_shipper_v1alpha1_ReleaseStrategyCondition(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStrategyState": schema_pkg_apis_shipper_v1alpha1_ReleaseStrategyState(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStrategyStatus": schema_pkg_apis_shipper_v1alpha1_ReleaseStrategyStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlock": schema_pkg_apis_shipper_v1alpha1_RolloutBlock(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockAuthor": schema_pkg_apis_shipper_v1alpha1_RolloutBlockAuthor(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockList": schema_pkg_apis_shipper_v1alpha1_RolloutBlockList(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockOverrides": schema_pkg_apis_shipper_v1alpha1_RolloutBlockOverrides(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockSpec": schema_pkg_apis_shipper_v1alpha1_RolloutBlockSpec(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockStatus": schema_pkg_apis_shipper_v1alpha1_RolloutBlockStatus(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutStrategy": schema_pkg_apis_shipper_v1alpha1_RolloutStrategy(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutStrategyStep": schema_pkg_apis_shipper_v1alpha1_RolloutStrategyStep(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutStrategyStepValue": schema_pkg_apis_shipper_v1alpha1_RolloutStrategyStepValue(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.TrafficTarget": schema_pkg_apis_shipper_v1alpha1_TrafficTarget(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.TrafficTargetList": schema_pkg_apis_shipper_v1alpha1_TrafficTargetList(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.TrafficTargetSpec": schema_pkg_apis_shipper_v1alpha1_TrafficTargetSpec(ref), + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.TrafficTargetStatus": schema_pkg_apis_shipper_v1alpha1_TrafficTargetStatus(ref), + } +} + +func schema_pkg_apis_shipper_v1alpha1_AchievedStep(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "step": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"step", "name"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_Application(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Application describes a deployable application", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ApplicationSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "Most recently observed status of the application", + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ApplicationStatus"), + }, + }, + }, + Required: []string{"spec", "status"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ApplicationSpec", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ApplicationStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ApplicationCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"type", "status"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ApplicationList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ApplicationList is a list of Applications. Mostly only useful for admins: regular users interact with exactly one Application at once", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Application"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Application", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ApplicationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "revisionHistoryLimit": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseEnvironment"), + }, + }, + }, + Required: []string{"revisionHistoryLimit", "template"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseEnvironment"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ApplicationStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "conditions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ApplicationCondition"), + }, + }, + }, + }, + }, + "history": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ApplicationCondition"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_CapacityTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "A CapacityTarget defines the goal state for # of pods for incumbent and contender versions. This is used by the StrategyController to change the state of the cluster to satisfy a single step of a Strategy.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.CapacityTargetSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.CapacityTargetStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.CapacityTargetSpec", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.CapacityTargetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_CapacityTargetList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.CapacityTarget"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.CapacityTarget", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_CapacityTargetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clusters": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityTarget"), + }, + }, + }, + }, + }, + }, + Required: []string{"clusters"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityTarget"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_CapacityTargetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clusters": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityStatus"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityStatus"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_Chart(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "repoUrl": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "version", "repoUrl"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "An Cluster is a cluster we're deploying to.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "Most recently observed status of the order / +optional", + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterStatus"), + }, + }, + }, + Required: []string{"spec", "status"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterSpec", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterCapacityCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"type", "status"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReport(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "owner": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportOwner"), + }, + }, + "breakdown": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportBreakdown"), + }, + }, + }, + }, + }, + }, + Required: []string{"owner"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportBreakdown", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportOwner"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReportBreakdown(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "containers": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportContainerBreakdown"), + }, + }, + }, + }, + }, + "count": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int64", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"count", "status", "type"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportContainerBreakdown"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReportContainerBreakdown(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "states": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportContainerStateBreakdown"), + }, + }, + }, + }, + }, + }, + Required: []string{"name", "states"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportContainerStateBreakdown"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReportContainerBreakdownExample(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "pod": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"pod"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReportContainerStateBreakdown(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "count": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int64", + }, + }, + "example": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportContainerBreakdownExample"), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"count", "example", "type"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReportContainerBreakdownExample"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterCapacityReportOwner(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterCapacityStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "availableReplicas": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "achievedPercent": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "sadPods": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.PodStatus"), + }, + }, + }, + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityCondition"), + }, + }, + }, + }, + }, + "reports": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReport"), + }, + }, + }, + }, + }, + }, + Required: []string{"name", "availableReplicas", "achievedPercent"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityCondition", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterCapacityReport", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.PodStatus"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterCapacityTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "percent": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "totalReplicaCount": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"name", "percent", "totalReplicaCount"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterInstallationCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"type", "status"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterInstallationStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterInstallationCondition"), + }, + }, + }, + }, + }, + }, + Required: []string{"name", "status"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterInstallationCondition"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Cluster"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "regions": { + SchemaProps: spec.SchemaProps{ + Description: "it is an error to not specify any regions", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RegionRequirement"), + }, + }, + }, + }, + }, + "capabilities": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"regions"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RegionRequirement"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterSchedulerSettings(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "unschedulable": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "weight": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "identity": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"unschedulable"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "capabilities": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "region": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "apiMaster": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "scheduler": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterSchedulerSettings"), + }, + }, + }, + Required: []string{"capabilities", "region", "apiMaster", "scheduler"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterSchedulerSettings"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NOTE(btyler) when we introduce capacity based scheduling, the capacity can be collected by a cluster controller and stored in cluster.status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "inService": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"inService"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterTrafficCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"type", "status"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterTrafficStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "achievedTraffic": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int64", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterTrafficCondition"), + }, + }, + }, + }, + }, + }, + Required: []string{"name", "achievedTraffic", "status", "conditions"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterTrafficCondition"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ClusterTrafficTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "weight": { + SchemaProps: spec.SchemaProps{ + Description: "apimachinery intstr for percentages?", + Type: []string{"integer"}, + Format: "int64", + }, + }, + }, + Required: []string{"name", "weight"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_InstallationTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "An InstallationTarget defines the goal state for # of pods for incumbent and contender versions. This is used by the StrategyController to change the state of the cluster to satisfy a single step of a Strategy.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.InstallationTargetSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.InstallationTargetStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.InstallationTargetSpec", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.InstallationTargetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_InstallationTargetList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.InstallationTarget"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.InstallationTarget", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_InstallationTargetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clusters": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "canOverride": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "chart": { + SchemaProps: spec.SchemaProps{ + Description: "XXX these are nullable because of migration", + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Chart"), + }, + }, + "values": { + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"clusters", "canOverride", "chart"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Chart"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_InstallationTargetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clusters": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterInstallationStatus"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterInstallationStatus"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_PodStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "containers": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + }, + }, + }, + }, + }, + "initContainers": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + }, + }, + }, + }, + }, + "condition": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.PodCondition"), + }, + }, + }, + Required: []string{"name", "containers", "initContainers", "condition"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.PodCondition"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_RegionRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "replicas": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_Release(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "A Release is the defines the goal state for # of pods for incumbent and contender versions. This is used by the StrategyController to change the state of the cluster to satisfy a single step of a Strategy.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStatus"), + }, + }, + }, + Required: []string{"spec", "status"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseSpec", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ReleaseCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"type", "status"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ReleaseEnvironment(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "chart": { + SchemaProps: spec.SchemaProps{ + Description: "Chart spec: name, version, repoURL", + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Chart"), + }, + }, + "values": { + SchemaProps: spec.SchemaProps{ + Description: "the inlined \"values.yaml\" to apply to the chart when rendering it XXX pointer here means it's null-able, do we want that?", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Format: "", + }, + }, + }, + }, + }, + "clusterRequirements": { + SchemaProps: spec.SchemaProps{ + Description: "requirements for target clusters for the deployment", + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterRequirements"), + }, + }, + "strategy": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutStrategy"), + }, + }, + }, + Required: []string{"chart", "values", "clusterRequirements"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Chart", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterRequirements", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutStrategy"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ReleaseList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Release"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.Release", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ReleaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "targetStep": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "environment": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseEnvironment"), + }, + }, + }, + Required: []string{"targetStep", "environment"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseEnvironment"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ReleaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "this will likely grow into a struct with interesting fields", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "achievedStep": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.AchievedStep"), + }, + }, + "strategy": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStrategyStatus"), + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseCondition"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.AchievedStep", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseCondition", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStrategyStatus"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ReleaseStrategyCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "step": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"type", "status"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ReleaseStrategyState(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "waitingForInstallation": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "waitingForCapacity": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "waitingForTraffic": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "waitingForCommand": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"waitingForInstallation", "waitingForCapacity", "waitingForTraffic", "waitingForCommand"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_ReleaseStrategyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "state": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStrategyState"), + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStrategyCondition"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStrategyCondition", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ReleaseStrategyState"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_RolloutBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "A RolloutBlock defines the a state where rollouts are blocked, locally or globally. This is used by the ApplicationController to disable rollouts.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockStatus"), + }, + }, + }, + Required: []string{"spec", "status"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockSpec", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_RolloutBlockAuthor(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"type", "name"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_RolloutBlockList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlock"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_RolloutBlockOverrides(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "application": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "release": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"application", "release"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_RolloutBlockSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "author": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockAuthor"), + }, + }, + }, + Required: []string{"message", "author"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockAuthor"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_RolloutBlockStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "overrides": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockOverrides"), + }, + }, + }, + Required: []string{"overrides"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutBlockOverrides"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_RolloutStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "steps": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutStrategyStep"), + }, + }, + }, + }, + }, + }, + Required: []string{"steps"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutStrategyStep"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_RolloutStrategyStep(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "capacity": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutStrategyStepValue"), + }, + }, + "traffic": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutStrategyStepValue"), + }, + }, + }, + Required: []string{"name", "capacity", "traffic"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.RolloutStrategyStepValue"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_RolloutStrategyStepValue(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "incumbent": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "contender": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"incumbent", "contender"}, + }, + }, + } +} + +func schema_pkg_apis_shipper_v1alpha1_TrafficTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "A TrafficTarget defines the goal state for traffic split between incumbent and contender versions. This is used by the StrategyController to change the state of the service mesh to satisfy a single step of a Strategy.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.TrafficTargetSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.TrafficTargetStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.TrafficTargetSpec", "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.TrafficTargetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_TrafficTargetList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.TrafficTarget"), + }, + }, + }, + }, + }, + }, + Required: []string{"metadata", "items"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.TrafficTarget", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_TrafficTargetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clusters": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterTrafficTarget"), + }, + }, + }, + }, + }, + }, + Required: []string{"clusters"}, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterTrafficTarget"}, + } +} + +func schema_pkg_apis_shipper_v1alpha1_TrafficTargetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clusters": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterTrafficStatus"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/bookingcom/shipper/pkg/apis/shipper/v1alpha1.ClusterTrafficStatus"}, + } +}