From 7d55407e50b4d41cb7a7e9c12f90c2455232324d Mon Sep 17 00:00:00 2001 From: Kishor Viswanathan <11171849+kishorviswanathan@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:47:07 +0530 Subject: [PATCH] Add/update CRDs in networking.gke.io --- networking.gke.io/gcpbackendpolicy_v1.json | 246 ++++++++++ networking.gke.io/gcpgatewaypolicy_v1.json | 153 ++++++ networking.gke.io/gkenetworkparamset_v1.json | 150 ++++++ networking.gke.io/healthcheckpolicy_v1.json | 451 ++++++++++++++++++ networking.gke.io/lbpolicy_v1.json | 209 ++++++++ networking.gke.io/managedcertificate_v1.json | 58 +-- .../managedcertificate_v1beta1.json | 58 +-- .../managedcertificate_v1beta2.json | 58 +-- networking.gke.io/network_v1.json | 239 ++++++++++ networking.gke.io/serviceattachment_v1.json | 153 ++++++ .../serviceattachment_v1beta1.json | 153 ++++++ .../servicenetworkendpointgroup_v1beta1.json | 123 +++++ 12 files changed, 1964 insertions(+), 87 deletions(-) create mode 100644 networking.gke.io/gcpbackendpolicy_v1.json create mode 100644 networking.gke.io/gcpgatewaypolicy_v1.json create mode 100644 networking.gke.io/gkenetworkparamset_v1.json create mode 100644 networking.gke.io/healthcheckpolicy_v1.json create mode 100644 networking.gke.io/lbpolicy_v1.json create mode 100644 networking.gke.io/network_v1.json create mode 100644 networking.gke.io/serviceattachment_v1.json create mode 100644 networking.gke.io/serviceattachment_v1beta1.json create mode 100644 networking.gke.io/servicenetworkendpointgroup_v1beta1.json diff --git a/networking.gke.io/gcpbackendpolicy_v1.json b/networking.gke.io/gcpbackendpolicy_v1.json new file mode 100644 index 00000000..1cba4ec3 --- /dev/null +++ b/networking.gke.io/gcpbackendpolicy_v1.json @@ -0,0 +1,246 @@ +{ + "description": "GCPBackendPolicy provides a way to apply LoadBalancer policy configuration with the GKE implementation of the Gateway API.", + "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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "description": "Spec defines the desired state of GCPBackendPolicy.", + "properties": { + "default": { + "description": "Default defines default policy configuration for the targeted resource.", + "properties": { + "connectionDraining": { + "description": "ConnectionDraining contains configuration for connection draining", + "properties": { + "drainingTimeoutSec": { + "description": "DrainingTimeoutSec is a BackendService parameter. It is used during removal of VMs from instance groups. This guarantees that for the specified time all existing connections to a VM will remain untouched, but no new connections will be accepted. Set timeout to zero to disable connection draining. Enable the feature by specifying a timeout of up to one hour. If the field is omitted, a default value (0s) will be used. See https://cloud.google.com/compute/docs/reference/rest/v1/backendServices", + "format": "int64", + "maximum": 3600, + "minimum": 0, + "type": "integer" + } + }, + "type": "object", + "additionalProperties": false + }, + "iap": { + "description": "IAP contains the configurations for Identity-Aware Proxy. See https://cloud.google.com/compute/docs/reference/rest/v1/backendServices Identity-Aware Proxy manages access control policies for backend services associated with a HTTPRoute, so they can be accessed only by authenticated users or applications with correct Identity and Access Management (IAM) role.", + "properties": { + "clientID": { + "description": "ClientID is the OAuth2 client ID to use for the authentication flow. See iap.oauth2ClientId in https://cloud.google.com/compute/docs/reference/rest/v1/backendServices ClientID must be set if Enabled is set to true.", + "type": "string" + }, + "enabled": { + "description": "Enabled denotes whether the serving infrastructure will authenticate and authorize all incoming requests. If true, the ClientID and Oauth2ClientSecret fields must be non-empty. If not specified, this defaults to false, which means Identity-Aware Proxy is disabled by default.", + "type": "boolean" + }, + "oauth2ClientSecret": { + "description": "Oauth2ClientSecret contains the OAuth2 client secret to use for the authentication flow. Oauth2ClientSecret must be set if Enabled is set to true.", + "properties": { + "name": { + "description": "Name is the reference to the secret resource.", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "logging": { + "description": "LoggingConfig contains configuration for logging.", + "properties": { + "enabled": { + "description": "Enabled denotes whether to enable logging for the load balancer traffic served by this backend service. If not specified, this defaults to false, which means logging is disabled by default.", + "type": "boolean" + }, + "sampleRate": { + "description": "This field can only be specified if logging is enabled for this backend service. The value of the field must be in range [0, 1e6]. This is converted to a floating point value in the range [0, 1] by dividing by 1e6 for use with the GCE api and interpreted as the proportion of requests that will be logged. By default all requests will be logged.", + "format": "int32", + "maximum": 1000000, + "minimum": 0, + "type": "integer" + } + }, + "type": "object", + "additionalProperties": false + }, + "maxRatePerEndpoint": { + "description": "MaxRatePerEndpoint is a BackendService parameter. It is used to limit the rate of traffic to each endpoint. If the field is omitted, a default value (1e8) will be used. In the future we may add selector based settings for MaxRatePerEndpoint but they will co-exist with this as a top-level setting.", + "format": "int64", + "maximum": 1000000000, + "minimum": 1, + "type": "integer" + }, + "securityPolicy": { + "description": "SecurityPolicy is a reference to a GCP Cloud Armor SecurityPolicy resource.", + "type": "string" + }, + "sessionAffinity": { + "description": "SessionAffinityConfig contains configuration for stickiness parameters.", + "properties": { + "cookieTtlSec": { + "description": "CookieTTLSec specifies the lifetime of cookies in seconds. This setting requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600).", + "format": "int64", + "maximum": 1209600, + "minimum": 0, + "type": "integer" + }, + "type": { + "description": "Type specifies the type of session affinity to use. If not specified, this defaults to NONE.", + "enum": [ + "CLIENT_IP", + "CLIENT_IP_PORT_PROTO", + "CLIENT_IP_PROTO", + "GENERATED_COOKIE", + "HEADER_FIELD", + "HTTP_COOKIE", + "NONE" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "timeoutSec": { + "description": "TimeoutSec is a BackendService parameter. See https://cloud.google.com/compute/docs/reference/rest/v1/backendServices. If the field is omitted, a default value (30s) will be used.", + "format": "int64", + "maximum": 2147483647, + "minimum": 1, + "type": "integer" + } + }, + "type": "object", + "additionalProperties": false + }, + "targetRef": { + "description": "TargetRef identifies an API object to apply policy to.", + "properties": { + "group": { + "description": "Group is the group of the target resource.", + "maxLength": 253, + "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", + "type": "string" + }, + "kind": { + "description": "Kind is kind of the target resource.", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$", + "type": "string" + }, + "name": { + "description": "Name is the name of the target resource.", + "maxLength": 253, + "minLength": 1, + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the referent. When unspecified, the local namespace is inferred. Even when policy targets a resource in a different namespace, it MUST only apply to traffic originating from the same namespace as the policy.", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$", + "type": "string" + } + }, + "required": [ + "group", + "kind", + "name" + ], + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "targetRef" + ], + "type": "object", + "additionalProperties": false + }, + "status": { + "description": "Status defines the current state of GCPBackendPolicy.", + "properties": { + "conditions": { + "description": "Conditions describe the current conditions of the GCPBackendPolicy.", + "items": { + "description": "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }", + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "maxLength": 32768, + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "minimum": 0, + "type": "integer" + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "maxLength": 1024, + "minLength": 1, + "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "enum": [ + "True", + "False", + "Unknown" + ], + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)", + "maxLength": 316, + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$", + "type": "string" + } + }, + "required": [ + "lastTransitionTime", + "message", + "reason", + "status", + "type" + ], + "type": "object", + "additionalProperties": false + }, + "maxItems": 8, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "spec" + ], + "type": "object" +} diff --git a/networking.gke.io/gcpgatewaypolicy_v1.json b/networking.gke.io/gcpgatewaypolicy_v1.json new file mode 100644 index 00000000..b8d7e1be --- /dev/null +++ b/networking.gke.io/gcpgatewaypolicy_v1.json @@ -0,0 +1,153 @@ +{ + "description": "GCPGatewayPolicy provides a way to apply SSL policy and other configuration to the GKE Gateway.", + "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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "description": "Spec defines the desired state of GCPGatewayPolicy.", + "properties": { + "default": { + "description": "Default defines default gateway policy configuration for the targeted resource.", + "properties": { + "allowGlobalAccess": { + "type": "boolean" + }, + "region": { + "description": "Region allows to specify load balancer's region for Multi-cluster Gateway.", + "type": "string" + }, + "sslPolicy": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "targetRef": { + "description": "TargetRef identifies an API object to apply policy to.", + "properties": { + "group": { + "description": "Group is the group of the target resource.", + "maxLength": 253, + "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", + "type": "string" + }, + "kind": { + "description": "Kind is kind of the target resource.", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$", + "type": "string" + }, + "name": { + "description": "Name is the name of the target resource.", + "maxLength": 253, + "minLength": 1, + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the referent. When unspecified, the local namespace is inferred. Even when policy targets a resource in a different namespace, it MUST only apply to traffic originating from the same namespace as the policy.", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$", + "type": "string" + } + }, + "required": [ + "group", + "kind", + "name" + ], + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "targetRef" + ], + "type": "object", + "additionalProperties": false + }, + "status": { + "description": "Status defines the current state of GCPGatewayPolicy.", + "properties": { + "conditions": { + "description": "Conditions describe the current conditions of the GatewayPolicy.", + "items": { + "description": "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }", + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "maxLength": 32768, + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "minimum": 0, + "type": "integer" + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "maxLength": 1024, + "minLength": 1, + "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "enum": [ + "True", + "False", + "Unknown" + ], + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)", + "maxLength": 316, + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$", + "type": "string" + } + }, + "required": [ + "lastTransitionTime", + "message", + "reason", + "status", + "type" + ], + "type": "object", + "additionalProperties": false + }, + "maxItems": 8, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "spec" + ], + "type": "object" +} diff --git a/networking.gke.io/gkenetworkparamset_v1.json b/networking.gke.io/gkenetworkparamset_v1.json new file mode 100644 index 00000000..36b66aaa --- /dev/null +++ b/networking.gke.io/gkenetworkparamset_v1.json @@ -0,0 +1,150 @@ +{ + "description": "GKENetworkParamSet represent GKE specific parameters for the network.", + "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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "description": "GKENetworkParamSetSpec contains the specifications for network object", + "properties": { + "deviceMode": { + "description": "DeviceMode indicates the mode in which the devices will be used by the Pod. This field is required and valid only for \"Device\" typed network. Mutually exclusive with NetworkAttachment.", + "enum": [ + "DPDK-VFIO", + "NetDevice", + "RDMA" + ], + "type": "string" + }, + "networkAttachment": { + "description": "NetworkAttachment specifies the network attachment to connect to. Mutually exclusive with VPC, VPCSubnet, DeviceMode, and PodIPv4Ranges.", + "type": "string" + }, + "podIPv4Ranges": { + "description": "PodIPv4Ranges specify the names of the secondary ranges of the VPC subnet used to allocate pod IPs for the network. This field is required and valid only for L3 typed network. Mutually exclusive with NetworkAttachment.", + "properties": { + "rangeNames": { + "items": { + "type": "string" + }, + "minItems": 1, + "type": "array" + } + }, + "required": [ + "rangeNames" + ], + "type": "object", + "additionalProperties": false + }, + "vpc": { + "description": "VPC specifies the VPC to which the network belongs. This field is required when not connecting across a network attachment. Mutually exclusive with NetworkAttachment.", + "type": "string" + }, + "vpcSubnet": { + "description": "VPCSubnet is the path of the VPC subnet. Must be set if specifying VPC. Mutually exclusive with NetworkAttachment.", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "status": { + "description": "GKENetworkParamSetStatus contains the status information related to the network.", + "properties": { + "conditions": { + "description": "Conditions is a field representing the current conditions of the GKENetworkParamSet. \n Known condition types are: \n * \"Ready\"", + "items": { + "description": "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }", + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "maxLength": 32768, + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "minimum": 0, + "type": "integer" + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "maxLength": 1024, + "minLength": 1, + "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "enum": [ + "True", + "False", + "Unknown" + ], + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)", + "maxLength": 316, + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$", + "type": "string" + } + }, + "required": [ + "lastTransitionTime", + "message", + "reason", + "status", + "type" + ], + "type": "object", + "additionalProperties": false + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "networkName": { + "description": "NetworkName specifies which Network object is currently referencing this GKENetworkParamSet", + "type": "string" + }, + "podCIDRs": { + "description": "PodCIDRs specifies the CIDRs from which IPs will be used for Pod interfaces", + "properties": { + "cidrBlocks": { + "items": { + "type": "string" + }, + "minItems": 1, + "type": "array" + } + }, + "required": [ + "cidrBlocks" + ], + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object" +} diff --git a/networking.gke.io/healthcheckpolicy_v1.json b/networking.gke.io/healthcheckpolicy_v1.json new file mode 100644 index 00000000..3de499f9 --- /dev/null +++ b/networking.gke.io/healthcheckpolicy_v1.json @@ -0,0 +1,451 @@ +{ + "description": "HealthCheckPolicy provides a way to create and attach a HealthCheck to a BackendService with the GKE implementation of the Gateway API. This policy can only be attached to a BackendService.", + "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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "description": "Spec defines the desired state of HealthCheckPolicy.", + "properties": { + "default": { + "description": "Default defines default policy configuration for the targeted resource.", + "properties": { + "checkIntervalSec": { + "description": "How often (in seconds) to send a health check. If not specified, a default value of 5 seconds will be used.", + "format": "int64", + "maximum": 300, + "minimum": 1, + "type": "integer" + }, + "config": { + "description": "Specifies the type of the healthCheck, either TCP, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check field must be specified, which must match type field. Config contains per protocol (i.e. HTTP, HTTPS, HTTP2, TCP, GRPC) configuration. If not specified, health check type defaults to HTTP.", + "maxProperties": 2, + "minProperties": 2, + "properties": { + "grpcHealthCheck": { + "description": "GRPC is the health check configuration of type GRPC.", + "properties": { + "grpcServiceName": { + "description": "The gRPC service name for the health check. This field is optional. The value of grpcServiceName has the following meanings by convention: - Empty serviceName means the overall status of all services at the backend. - Non-empty serviceName means the health of that gRPC service, as defined by the owner of the service. The grpcServiceName can only be ASCII.", + "maxLength": 1024, + "pattern": "[\\x00-\\xFF]+", + "type": "string" + }, + "port": { + "description": "The TCP port number for the health check request. Valid values are 1 through 65535.", + "format": "int64", + "maximum": 65535, + "minimum": 1, + "type": "integer" + }, + "portName": { + "description": "Port name as defined in InstanceGroup#NamedPort#name. If both port and portName are defined, port takes precedence.", + "maxLength": 63, + "pattern": "[a-z]([-a-z0-9]*[a-z0-9])?", + "type": "string" + }, + "portSpecification": { + "description": "Specifies how port is selected for health checking, can be one of following values: \n USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. \n If not specified, Protocol health check follows behavior specified in port and portName fields. If neither Port nor PortName is specified, this defaults to USE_SERVING_PORT.", + "enum": [ + "USE_FIXED_PORT", + "USE_NAMED_PORT", + "USE_SERVING_PORT" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "http2HealthCheck": { + "description": "HTTP2 is the health check configuration of type HTTP2.", + "properties": { + "host": { + "description": "Host is the value of the host header in the HTTP health check request. This matches the RFC 1123 definition of a hostname with 1 notable exception that numeric IP addresses are not allowed. If not specified or left empty, the IP on behalf of which this health check is performed will be used.", + "maxLength": 2048, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", + "type": "string" + }, + "port": { + "description": "The TCP port number for the health check request. Valid values are 1 through 65535.", + "format": "int64", + "maximum": 65535, + "minimum": 1, + "type": "integer" + }, + "portName": { + "description": "Port name as defined in InstanceGroup#NamedPort#name. If both port and portName are defined, port takes precedence.", + "maxLength": 63, + "pattern": "[a-z]([-a-z0-9]*[a-z0-9])?", + "type": "string" + }, + "portSpecification": { + "description": "Specifies how port is selected for health checking, can be one of following values: \n USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. \n If not specified, Protocol health check follows behavior specified in port and portName fields. If neither Port nor PortName is specified, this defaults to USE_SERVING_PORT.", + "enum": [ + "USE_FIXED_PORT", + "USE_NAMED_PORT", + "USE_SERVING_PORT" + ], + "type": "string" + }, + "proxyHeader": { + "description": "Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. If not specified, this defaults to NONE.", + "enum": [ + "NONE", + "PROXY_V1" + ], + "type": "string" + }, + "requestPath": { + "description": "The request path of the HTTP health check request. If not specified or left empty, a default value of \"/\" is used.", + "maxLength": 2048, + "pattern": "\\/[A-Za-z0-9\\/\\-._~%!?$&'()*+,;=:]*$", + "type": "string" + }, + "response": { + "description": "The string to match anywhere in the first 1024 bytes of the response body. If not specified or left empty, the status code determines health. The response data can only be ASCII.", + "maxLength": 1024, + "pattern": "[\\x00-\\xFF]+", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "httpHealthCheck": { + "description": "HTTP is the health check configuration of type HTTP.", + "properties": { + "host": { + "description": "Host is the value of the host header in the HTTP health check request. This matches the RFC 1123 definition of a hostname with 1 notable exception that numeric IP addresses are not allowed. If not specified or left empty, the IP on behalf of which this health check is performed will be used.", + "maxLength": 2048, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", + "type": "string" + }, + "port": { + "description": "The TCP port number for the health check request. Valid values are 1 through 65535.", + "format": "int64", + "maximum": 65535, + "minimum": 1, + "type": "integer" + }, + "portName": { + "description": "Port name as defined in InstanceGroup#NamedPort#name. If both port and portName are defined, port takes precedence.", + "maxLength": 63, + "pattern": "[a-z]([-a-z0-9]*[a-z0-9])?", + "type": "string" + }, + "portSpecification": { + "description": "Specifies how port is selected for health checking, can be one of following values: \n USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. \n If not specified, Protocol health check follows behavior specified in port and portName fields. If neither Port nor PortName is specified, this defaults to USE_SERVING_PORT.", + "enum": [ + "USE_FIXED_PORT", + "USE_NAMED_PORT", + "USE_SERVING_PORT" + ], + "type": "string" + }, + "proxyHeader": { + "description": "Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. If not specified, this defaults to NONE.", + "enum": [ + "NONE", + "PROXY_V1" + ], + "type": "string" + }, + "requestPath": { + "description": "The request path of the HTTP health check request. If not specified or left empty, a default value of \"/\" is used.", + "maxLength": 2048, + "pattern": "\\/[A-Za-z0-9\\/\\-._~%!?$&'()*+,;=:]*$", + "type": "string" + }, + "response": { + "description": "The string to match anywhere in the first 1024 bytes of the response body. If not specified or left empty, the status code determines health. The response data can only be ASCII.", + "maxLength": 1024, + "pattern": "[\\x00-\\xFF]+", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "httpsHealthCheck": { + "description": "HTTPS is the health check configuration of type HTTPS.", + "properties": { + "host": { + "description": "Host is the value of the host header in the HTTP health check request. This matches the RFC 1123 definition of a hostname with 1 notable exception that numeric IP addresses are not allowed. If not specified or left empty, the IP on behalf of which this health check is performed will be used.", + "maxLength": 2048, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", + "type": "string" + }, + "port": { + "description": "The TCP port number for the health check request. Valid values are 1 through 65535.", + "format": "int64", + "maximum": 65535, + "minimum": 1, + "type": "integer" + }, + "portName": { + "description": "Port name as defined in InstanceGroup#NamedPort#name. If both port and portName are defined, port takes precedence.", + "maxLength": 63, + "pattern": "[a-z]([-a-z0-9]*[a-z0-9])?", + "type": "string" + }, + "portSpecification": { + "description": "Specifies how port is selected for health checking, can be one of following values: \n USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. \n If not specified, Protocol health check follows behavior specified in port and portName fields. If neither Port nor PortName is specified, this defaults to USE_SERVING_PORT.", + "enum": [ + "USE_FIXED_PORT", + "USE_NAMED_PORT", + "USE_SERVING_PORT" + ], + "type": "string" + }, + "proxyHeader": { + "description": "Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. If not specified, this defaults to NONE.", + "enum": [ + "NONE", + "PROXY_V1" + ], + "type": "string" + }, + "requestPath": { + "description": "The request path of the HTTP health check request. If not specified or left empty, a default value of \"/\" is used.", + "maxLength": 2048, + "pattern": "\\/[A-Za-z0-9\\/\\-._~%!?$&'()*+,;=:]*$", + "type": "string" + }, + "response": { + "description": "The string to match anywhere in the first 1024 bytes of the response body. If not specified or left empty, the status code determines health. The response data can only be ASCII.", + "maxLength": 1024, + "pattern": "[\\x00-\\xFF]+", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "tcpHealthCheck": { + "description": "TCP is the health check configuration of type TCP.", + "properties": { + "port": { + "description": "The TCP port number for the health check request. Valid values are 1 through 65535.", + "format": "int64", + "maximum": 65535, + "minimum": 1, + "type": "integer" + }, + "portName": { + "description": "Port name as defined in InstanceGroup#NamedPort#name. If both port and portName are defined, port takes precedence.", + "maxLength": 63, + "pattern": "[a-z]([-a-z0-9]*[a-z0-9])?", + "type": "string" + }, + "portSpecification": { + "description": "Specifies how port is selected for health checking, can be one of following values: \n USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. \n If not specified, Protocol health check follows behavior specified in port and portName fields. If neither Port nor PortName is specified, this defaults to USE_SERVING_PORT.", + "enum": [ + "USE_FIXED_PORT", + "USE_NAMED_PORT", + "USE_SERVING_PORT" + ], + "type": "string" + }, + "proxyHeader": { + "description": "Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. If not specified, this defaults to NONE.", + "enum": [ + "NONE", + "PROXY_V1" + ], + "type": "string" + }, + "request": { + "description": "The application data to send once the TCP connection has been established. If not specified, this defaults to empty. If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.", + "maxLength": 1024, + "pattern": "[\\x00-\\xFF]+", + "type": "string" + }, + "response": { + "description": "The bytes to match against the beginning of the response data. If not specified or left empty, any response will indicate health. The response data can only be ASCII.", + "maxLength": 1024, + "pattern": "[\\x00-\\xFF]+", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": { + "description": "Specifies the type of the healthCheck, either TCP, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check field must be specified, which must match type field.", + "enum": [ + "TCP", + "HTTP", + "HTTPS", + "HTTP2", + "GRPC" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "healthyThreshold": { + "description": "A so-far unhealthy instance will be marked healthy after this many consecutive successes. If not specified, a default value of 2 will be used.", + "format": "int64", + "maximum": 10, + "minimum": 1, + "type": "integer" + }, + "logConfig": { + "description": "LogConfig configures logging on this health check.", + "properties": { + "enabled": { + "description": "Enabled indicates whether or not to export health check logs. If not specified, this defaults to false, which means health check logging will be disabled.", + "type": "boolean" + } + }, + "type": "object", + "additionalProperties": false + }, + "timeoutSec": { + "description": "How long (in seconds) to wait before claiming failure. If not specified, a default value of 5 seconds will be used. It is invalid for timeoutSec to have greater value than checkIntervalSec.", + "format": "int64", + "maximum": 300, + "minimum": 1, + "type": "integer" + }, + "unhealthyThreshold": { + "description": "A so-far healthy instance will be marked unhealthy after this many consecutive failures. If not specified, a default value of 2 will be used.", + "format": "int64", + "maximum": 10, + "minimum": 1, + "type": "integer" + } + }, + "type": "object", + "additionalProperties": false + }, + "targetRef": { + "description": "TargetRef identifies an API object to apply policy to.", + "properties": { + "group": { + "description": "Group is the group of the target resource.", + "maxLength": 253, + "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", + "type": "string" + }, + "kind": { + "description": "Kind is kind of the target resource.", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$", + "type": "string" + }, + "name": { + "description": "Name is the name of the target resource.", + "maxLength": 253, + "minLength": 1, + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the referent. When unspecified, the local namespace is inferred. Even when policy targets a resource in a different namespace, it MUST only apply to traffic originating from the same namespace as the policy.", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$", + "type": "string" + } + }, + "required": [ + "group", + "kind", + "name" + ], + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "targetRef" + ], + "type": "object", + "additionalProperties": false + }, + "status": { + "description": "Status defines the current state of HealthCheckPolicy.", + "properties": { + "conditions": { + "description": "Conditions describe the current conditions of the HealthCheckPolicy.", + "items": { + "description": "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }", + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "maxLength": 32768, + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "minimum": 0, + "type": "integer" + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "maxLength": 1024, + "minLength": 1, + "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "enum": [ + "True", + "False", + "Unknown" + ], + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)", + "maxLength": 316, + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$", + "type": "string" + } + }, + "required": [ + "lastTransitionTime", + "message", + "reason", + "status", + "type" + ], + "type": "object", + "additionalProperties": false + }, + "maxItems": 8, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "spec" + ], + "type": "object" +} diff --git a/networking.gke.io/lbpolicy_v1.json b/networking.gke.io/lbpolicy_v1.json new file mode 100644 index 00000000..8bcca5c0 --- /dev/null +++ b/networking.gke.io/lbpolicy_v1.json @@ -0,0 +1,209 @@ +{ + "description": "LBPolicy provides a way to apply LoadBalancer policy configuration with the GKE implementation of the Gateway API. \n Deprecated: New policies should only be added to GCPBackendPolicy", + "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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "description": "Spec defines the desired state of LBPolicy.", + "properties": { + "default": { + "description": "Default defines default policy configuration for the targeted resource.", + "properties": { + "connectionDraining": { + "description": "ConnectionDraining contains configuration for connection draining", + "properties": { + "drainingTimeoutSec": { + "description": "DrainingTimeoutSec is a BackendService parameter. It is used during removal of VMs from instance groups. This guarantees that for the specified time all existing connections to a VM will remain untouched, but no new connections will be accepted. Set timeout to zero to disable connection draining. Enable the feature by specifying a timeout of up to one hour. If the field is omitted, a default value (0s) will be used. See https://cloud.google.com/compute/docs/reference/rest/v1/backendServices", + "format": "int64", + "maximum": 3600, + "minimum": 0, + "type": "integer" + } + }, + "type": "object", + "additionalProperties": false + }, + "logging": { + "description": "LoggingConfig contains configuration for logging.", + "properties": { + "enabled": { + "description": "Enabled denotes whether to enable logging for the load balancer traffic served by this backend service. If not specified, this defaults to false, which means logging is disabled by default.", + "type": "boolean" + }, + "sampleRate": { + "description": "This field can only be specified if logging is enabled for this backend service. The value of the field must be in range [0, 1e6]. This is converted to a floating point value in the range [0, 1] by dividing by 1e6 for use with the GCE api and interpreted as the proportion of requests that will be logged. By default all requests will be logged.", + "format": "int32", + "maximum": 1000000, + "minimum": 0, + "type": "integer" + } + }, + "type": "object", + "additionalProperties": false + }, + "sessionAffinity": { + "description": "SessionAffinityConfig contains configuration for stickiness parameters.", + "properties": { + "cookieTtlSec": { + "description": "CookieTTLSec specifies the lifetime of cookies in seconds. This setting requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600).", + "format": "int64", + "maximum": 1209600, + "minimum": 0, + "type": "integer" + }, + "type": { + "description": "Type specifies the type of session affinity to use. If not specified, this defaults to NONE.", + "enum": [ + "CLIENT_IP", + "CLIENT_IP_PORT_PROTO", + "CLIENT_IP_PROTO", + "GENERATED_COOKIE", + "HEADER_FIELD", + "HTTP_COOKIE", + "NONE" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "timeoutSec": { + "description": "TimeoutSec is a BackendService parameter. See https://cloud.google.com/compute/docs/reference/rest/v1/backendServices. If the field is omitted, a default value (30s) will be used.", + "format": "int64", + "maximum": 2147483647, + "minimum": 1, + "type": "integer" + } + }, + "type": "object", + "additionalProperties": false + }, + "targetRef": { + "description": "TargetRef identifies an API object to apply policy to.", + "properties": { + "group": { + "description": "Group is the group of the target resource.", + "maxLength": 253, + "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", + "type": "string" + }, + "kind": { + "description": "Kind is kind of the target resource.", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$", + "type": "string" + }, + "name": { + "description": "Name is the name of the target resource.", + "maxLength": 253, + "minLength": 1, + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the referent. When unspecified, the local namespace is inferred. Even when policy targets a resource in a different namespace, it MUST only apply to traffic originating from the same namespace as the policy.", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$", + "type": "string" + } + }, + "required": [ + "group", + "kind", + "name" + ], + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "targetRef" + ], + "type": "object", + "additionalProperties": false + }, + "status": { + "description": "Status defines the current state of LBPolicy.", + "properties": { + "conditions": { + "description": "Conditions describe the current conditions of the LBPolicy.", + "items": { + "description": "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }", + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "maxLength": 32768, + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "minimum": 0, + "type": "integer" + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "maxLength": 1024, + "minLength": 1, + "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "enum": [ + "True", + "False", + "Unknown" + ], + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)", + "maxLength": 316, + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$", + "type": "string" + } + }, + "required": [ + "lastTransitionTime", + "message", + "reason", + "status", + "type" + ], + "type": "object", + "additionalProperties": false + }, + "maxItems": 8, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "spec" + ], + "type": "object" +} diff --git a/networking.gke.io/managedcertificate_v1.json b/networking.gke.io/managedcertificate_v1.json index 6950c887..80b1c20c 100644 --- a/networking.gke.io/managedcertificate_v1.json +++ b/networking.gke.io/managedcertificate_v1.json @@ -1,20 +1,30 @@ { - "type": "object", "properties": { - "status": { + "spec": { + "properties": { + "domains": { + "items": { + "maxLength": 63, + "pattern": "^(([a-z0-9]+|[a-z0-9][-a-z0-9]*[a-z0-9])\\.)+[a-z][-a-z0-9]*[a-z0-9]$", + "type": "string" + }, + "maxItems": 100, + "type": "array" + } + }, "type": "object", + "additionalProperties": false + }, + "status": { "properties": { + "certificateName": { + "type": "string" + }, "certificateStatus": { "type": "string" }, "domainStatus": { - "type": "array", "items": { - "type": "object", - "required": [ - "domain", - "status" - ], "properties": { "domain": { "type": "string" @@ -23,33 +33,23 @@ "type": "string" } }, + "required": [ + "domain", + "status" + ], + "type": "object", "additionalProperties": false - } - }, - "certificateName": { - "type": "string" + }, + "type": "array" }, "expireTime": { - "type": "string", - "format": "date-time" + "format": "date-time", + "type": "string" } }, - "additionalProperties": false - }, - "spec": { "type": "object", - "properties": { - "domains": { - "type": "array", - "maxItems": 100, - "items": { - "type": "string", - "maxLength": 63, - "pattern": "^(([a-z0-9]+|[a-z0-9][-a-z0-9]*[a-z0-9])\\.)+[a-z][-a-z0-9]*[a-z0-9]$" - } - } - }, "additionalProperties": false } - } + }, + "type": "object" } diff --git a/networking.gke.io/managedcertificate_v1beta1.json b/networking.gke.io/managedcertificate_v1beta1.json index 5833a86d..a469e227 100644 --- a/networking.gke.io/managedcertificate_v1beta1.json +++ b/networking.gke.io/managedcertificate_v1beta1.json @@ -1,20 +1,30 @@ { - "type": "object", "properties": { - "status": { + "spec": { + "properties": { + "domains": { + "items": { + "maxLength": 63, + "pattern": "^(([a-z0-9]+|[a-z0-9][-a-z0-9]*[a-z0-9])\\.)+[a-z][-a-z0-9]*[a-z0-9]$", + "type": "string" + }, + "maxItems": 1, + "type": "array" + } + }, "type": "object", + "additionalProperties": false + }, + "status": { "properties": { + "certificateName": { + "type": "string" + }, "certificateStatus": { "type": "string" }, "domainStatus": { - "type": "array", "items": { - "type": "object", - "required": [ - "domain", - "status" - ], "properties": { "domain": { "type": "string" @@ -23,33 +33,23 @@ "type": "string" } }, + "required": [ + "domain", + "status" + ], + "type": "object", "additionalProperties": false - } - }, - "certificateName": { - "type": "string" + }, + "type": "array" }, "expireTime": { - "type": "string", - "format": "date-time" + "format": "date-time", + "type": "string" } }, - "additionalProperties": false - }, - "spec": { "type": "object", - "properties": { - "domains": { - "type": "array", - "maxItems": 1, - "items": { - "type": "string", - "maxLength": 63, - "pattern": "^(([a-z0-9]+|[a-z0-9][-a-z0-9]*[a-z0-9])\\.)+[a-z][-a-z0-9]*[a-z0-9]$" - } - } - }, "additionalProperties": false } - } + }, + "type": "object" } diff --git a/networking.gke.io/managedcertificate_v1beta2.json b/networking.gke.io/managedcertificate_v1beta2.json index 6950c887..80b1c20c 100644 --- a/networking.gke.io/managedcertificate_v1beta2.json +++ b/networking.gke.io/managedcertificate_v1beta2.json @@ -1,20 +1,30 @@ { - "type": "object", "properties": { - "status": { + "spec": { + "properties": { + "domains": { + "items": { + "maxLength": 63, + "pattern": "^(([a-z0-9]+|[a-z0-9][-a-z0-9]*[a-z0-9])\\.)+[a-z][-a-z0-9]*[a-z0-9]$", + "type": "string" + }, + "maxItems": 100, + "type": "array" + } + }, "type": "object", + "additionalProperties": false + }, + "status": { "properties": { + "certificateName": { + "type": "string" + }, "certificateStatus": { "type": "string" }, "domainStatus": { - "type": "array", "items": { - "type": "object", - "required": [ - "domain", - "status" - ], "properties": { "domain": { "type": "string" @@ -23,33 +33,23 @@ "type": "string" } }, + "required": [ + "domain", + "status" + ], + "type": "object", "additionalProperties": false - } - }, - "certificateName": { - "type": "string" + }, + "type": "array" }, "expireTime": { - "type": "string", - "format": "date-time" + "format": "date-time", + "type": "string" } }, - "additionalProperties": false - }, - "spec": { "type": "object", - "properties": { - "domains": { - "type": "array", - "maxItems": 100, - "items": { - "type": "string", - "maxLength": 63, - "pattern": "^(([a-z0-9]+|[a-z0-9][-a-z0-9]*[a-z0-9])\\.)+[a-z][-a-z0-9]*[a-z0-9]$" - } - } - }, "additionalProperties": false } - } + }, + "type": "object" } diff --git a/networking.gke.io/network_v1.json b/networking.gke.io/network_v1.json new file mode 100644 index 00000000..4b1b3cc8 --- /dev/null +++ b/networking.gke.io/network_v1.json @@ -0,0 +1,239 @@ +{ + "description": "Network represent a logical network on the K8s Cluster. This logical network depends on the host networking setup on cluster nodes.", + "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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "description": "NetworkSpec contains the specifications for network object", + "properties": { + "IPAMMode": { + "default": "Internal", + "description": "IPAMMode specifies the IPAM mode for the network. Valid options include: internal, external", + "enum": [ + "Internal", + "External" + ], + "type": "string" + }, + "dnsConfig": { + "description": "Specifies the DNS configuration of the network. Required if ExternalDHCP4 is false or not set on L2 type network.", + "properties": { + "nameservers": { + "description": "A list of nameserver IP addresses. Duplicated nameservers will be removed.", + "items": { + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "searches": { + "description": "A list of DNS search domains for host-name lookup. Duplicated search paths will be removed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "nameservers" + ], + "type": "object", + "additionalProperties": false + }, + "externalDHCP4": { + "description": "ExternalDHCP4 indicates whether the IPAM is static or allocation by the external DHCP server", + "type": "boolean" + }, + "gateway4": { + "description": "Gateway4 defines the gateway IPv4 address for the network. Required if ExternalDHCP4 is false or not set on L2 type network.", + "type": "string" + }, + "l2NetworkConfig": { + "description": "L2NetworkConfig includes all the network config related to L2 type network", + "properties": { + "prefixLength4": { + "description": "PrefixLength4 denotes the IPv4 prefix length of the range corresponding to the network. It is used to assign IPs to the pods for multi-networking. This field is required when IPAM is handled internally and dynamically via CCC. It's disallowed for other cases. For static IP, the prefix length is set as part of the address in NetworkInterface object.", + "format": "int32", + "maximum": 32, + "minimum": 1, + "type": "integer" + }, + "vlanID": { + "description": "VlanID is the vlan ID used for the network. If unspecified, vlan tagging is not enabled.", + "format": "int32", + "maximum": 4094, + "minimum": 1, + "type": "integer" + } + }, + "type": "object", + "additionalProperties": false + }, + "networkLifecycle": { + "description": "NetworkLifecycle specifies who manages the lifecycle of the network. This field can only be used when L2NetworkConfig.VlanID is specified. Otherwise the value will be ignored. If L2NetworkConfig.VlanID is specified and this field is empty, the value is assumed to be AnthosManaged.", + "enum": [ + "AnthosManaged", + "UserManaged" + ], + "type": "string" + }, + "nodeInterfaceMatcher": { + "description": "NodeInterfaceMatcher defines the matcher to discover the corresponding node interface associated with the network. This field is required for L2 network.", + "properties": { + "interfaceName": { + "description": "InterfaceName specifies the interface name to search on the node.", + "minLength": 1, + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "parametersRef": { + "description": "ParametersRef is a reference to a resource that contains vendor or implementation specific configurations for the network.", + "properties": { + "group": { + "description": "Group is the API group of k8s resource, e.g. \"networking.k8s.io\".", + "type": "string" + }, + "kind": { + "description": "Kind is kind of the referent, e.g. \"networkpolicy\".", + "type": "string" + }, + "name": { + "description": "Name is the name of the resource object.", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the referent. This field is required when referring to a Namespace-scoped resource and MUST be unset when referring to a Cluster-scoped resource.", + "type": "string" + } + }, + "required": [ + "group", + "kind", + "name" + ], + "type": "object", + "additionalProperties": false + }, + "provider": { + "description": "Provider specifies the provider implementing this network, e.g. \"GKE\".", + "enum": [ + "GKE" + ], + "type": "string" + }, + "routes": { + "description": "Routes contains a list of routes for the network.", + "items": { + "description": "Route defines a routing table entry to a specific subnetwork.", + "properties": { + "to": { + "description": "To defines a destination IPv4 block in CIDR annotation. e.g. 192.168.0.0/24. The CIDR 0.0.0.0/0 will be rejected.", + "type": "string" + } + }, + "required": [ + "to" + ], + "type": "object", + "additionalProperties": false + }, + "type": "array" + }, + "type": { + "description": "Type defines type of network. Valid options include: L2, L3, Device. L2 network type enables L2 connectivity on the network. L3 network type enables L3 connectivity on the network. Device network type enables direct device access on the network.", + "enum": [ + "L2", + "L3", + "Device" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "additionalProperties": false + }, + "status": { + "description": "NetworkStatus contains the status information related to the network.", + "properties": { + "conditions": { + "description": "Conditions is a field representing the current conditions of the Network. \n Known condition types are: \n * \"Ready\" * \"ParamsReady\"", + "items": { + "description": "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }", + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "maxLength": 32768, + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "minimum": 0, + "type": "integer" + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "maxLength": 1024, + "minLength": 1, + "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "enum": [ + "True", + "False", + "Unknown" + ], + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)", + "maxLength": 316, + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$", + "type": "string" + } + }, + "required": [ + "lastTransitionTime", + "message", + "reason", + "status", + "type" + ], + "type": "object", + "additionalProperties": false + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object" +} diff --git a/networking.gke.io/serviceattachment_v1.json b/networking.gke.io/serviceattachment_v1.json new file mode 100644 index 00000000..5ae761f5 --- /dev/null +++ b/networking.gke.io/serviceattachment_v1.json @@ -0,0 +1,153 @@ +{ + "description": "ServiceAttachment represents a Service Attachment associated with a service/ingress/gateway class", + "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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "description": "ServiceAttachmentSpec is the spec for a ServiceAttachment resource", + "properties": { + "connectionPreference": { + "description": "ConnectionPreference determines how consumers are accepted.", + "type": "string" + }, + "consumerAllowList": { + "description": "ConsumerAllowList is list of consumer projects that should be allow listed for this ServiceAttachment", + "items": { + "description": "ConsumerProject is the consumer project and project level configuration", + "properties": { + "connectionLimit": { + "description": "ConnectionLimit is the connection limit for this Consumer project", + "format": "int64", + "type": "integer" + }, + "forceSendFields": { + "description": "ForceSendFields is a list of field names (e.g. \"ConnectionLimit\") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.", + "items": { + "default": "", + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "nullFields": { + "description": "NullFields is a list of field names (e.g. \"ConnectionLimit\") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.", + "items": { + "default": "", + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "project": { + "description": "Project is the project id or number for the project to set the limit for.", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "consumerRejectList": { + "description": "ConsumerRejectList is the list of Consumer Project IDs or Numbers that should be rejected for this ServiceAttachment", + "items": { + "default": "", + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "natSubnets": { + "description": "NATSubnets contains the list of subnet names for PSC or nat subnet resource urls", + "items": { + "default": "", + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "proxyProtocol": { + "description": "ProxyProtocol when set will expose client information TCP/IP information", + "type": "boolean" + }, + "resourceRef": { + "description": "ResourceRef is the reference to the K8s resource that created the forwarding rule Only Services can be used as a reference", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "status": { + "description": "ServiceAttachmentStatus is the status for a ServiceAttachment resource", + "properties": { + "consumerForwardingRules": { + "description": "Consumer Forwarding Rules using ts Service Attachment", + "items": { + "description": "ConsumerForwardingRule is a reference to the PSC consumer forwarding rule", + "properties": { + "forwardingRuleURL": { + "description": "Forwarding rule consumer created to use ServiceAttachment", + "type": "string" + }, + "status": { + "description": "Status of consumer forwarding rule", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "forwardingRuleURL": { + "description": "ForwardingRuleURL is the URL to the GCE Forwarding Rule resource the Service Attachment points to", + "type": "string" + }, + "lastModifiedTimestamp": { + "description": "LastModifiedTimestamp tracks last time Status was updated", + "format": "date-time", + "nullable": true, + "type": "string" + }, + "serviceAttachmentURL": { + "description": "ServiceAttachmentURL is the URL for the GCE Service Attachment resource", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object" +} diff --git a/networking.gke.io/serviceattachment_v1beta1.json b/networking.gke.io/serviceattachment_v1beta1.json new file mode 100644 index 00000000..5ae761f5 --- /dev/null +++ b/networking.gke.io/serviceattachment_v1beta1.json @@ -0,0 +1,153 @@ +{ + "description": "ServiceAttachment represents a Service Attachment associated with a service/ingress/gateway class", + "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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "description": "ServiceAttachmentSpec is the spec for a ServiceAttachment resource", + "properties": { + "connectionPreference": { + "description": "ConnectionPreference determines how consumers are accepted.", + "type": "string" + }, + "consumerAllowList": { + "description": "ConsumerAllowList is list of consumer projects that should be allow listed for this ServiceAttachment", + "items": { + "description": "ConsumerProject is the consumer project and project level configuration", + "properties": { + "connectionLimit": { + "description": "ConnectionLimit is the connection limit for this Consumer project", + "format": "int64", + "type": "integer" + }, + "forceSendFields": { + "description": "ForceSendFields is a list of field names (e.g. \"ConnectionLimit\") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.", + "items": { + "default": "", + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "nullFields": { + "description": "NullFields is a list of field names (e.g. \"ConnectionLimit\") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.", + "items": { + "default": "", + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "project": { + "description": "Project is the project id or number for the project to set the limit for.", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "consumerRejectList": { + "description": "ConsumerRejectList is the list of Consumer Project IDs or Numbers that should be rejected for this ServiceAttachment", + "items": { + "default": "", + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "natSubnets": { + "description": "NATSubnets contains the list of subnet names for PSC or nat subnet resource urls", + "items": { + "default": "", + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "proxyProtocol": { + "description": "ProxyProtocol when set will expose client information TCP/IP information", + "type": "boolean" + }, + "resourceRef": { + "description": "ResourceRef is the reference to the K8s resource that created the forwarding rule Only Services can be used as a reference", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "status": { + "description": "ServiceAttachmentStatus is the status for a ServiceAttachment resource", + "properties": { + "consumerForwardingRules": { + "description": "Consumer Forwarding Rules using ts Service Attachment", + "items": { + "description": "ConsumerForwardingRule is a reference to the PSC consumer forwarding rule", + "properties": { + "forwardingRuleURL": { + "description": "Forwarding rule consumer created to use ServiceAttachment", + "type": "string" + }, + "status": { + "description": "Status of consumer forwarding rule", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "forwardingRuleURL": { + "description": "ForwardingRuleURL is the URL to the GCE Forwarding Rule resource the Service Attachment points to", + "type": "string" + }, + "lastModifiedTimestamp": { + "description": "LastModifiedTimestamp tracks last time Status was updated", + "format": "date-time", + "nullable": true, + "type": "string" + }, + "serviceAttachmentURL": { + "description": "ServiceAttachmentURL is the URL for the GCE Service Attachment resource", + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object" +} diff --git a/networking.gke.io/servicenetworkendpointgroup_v1beta1.json b/networking.gke.io/servicenetworkendpointgroup_v1beta1.json new file mode 100644 index 00000000..2a18c1f7 --- /dev/null +++ b/networking.gke.io/servicenetworkendpointgroup_v1beta1.json @@ -0,0 +1,123 @@ +{ + "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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "type": "object" + }, + "status": { + "description": "ServiceNetworkEndpointGroupStatus is the status for a ServiceNetworkEndpointGroup resource", + "properties": { + "conditions": { + "description": "Last time the NEG syncer syncs associated NEGs.", + "items": { + "description": "NegCondition contains details for the current condition of this NEG.", + "properties": { + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "format": "date-time", + "nullable": true, + "type": "string" + }, + "message": { + "default": "", + "description": "A human readable message indicating details about the transition. This field may be empty.", + "type": "string" + }, + "observedGeneration": { + "description": "ObservedGeneration will not be set for ServiceNetworkEndpointGroup as the spec is empty.", + "format": "int64", + "type": "integer" + }, + "reason": { + "default": "", + "description": "The reason for the condition's last transition", + "type": "string" + }, + "status": { + "default": "", + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "default": "", + "description": "Type is the type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ], + "type": "object", + "additionalProperties": false + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "lastSyncTime": { + "description": "Last time the NEG syncer syncs associated NEGs.", + "format": "date-time", + "nullable": true, + "type": "string" + }, + "networkEndpointGroups": { + "items": { + "description": "NegObjectReference is the object reference to the NEG resource in GCE", + "properties": { + "id": { + "default": "", + "description": "The unique identifier for the NEG resource in GCE API.", + "type": "string" + }, + "networkEndpointType": { + "description": "NetworkEndpointType: Type of network endpoints in this network endpoint group.", + "type": "string" + }, + "selfLink": { + "description": "SelfLink is the GCE Server-defined fully-qualified URL for the GCE NEG resource", + "type": "string" + }, + "state": { + "description": "Current condition of this network endpoint group.", + "type": "string" + }, + "subnetURL": { + "description": "URL of the subnetwork to which all network endpoints in the NEG belong.", + "type": "string" + } + }, + "required": [ + "id" + ], + "type": "object", + "additionalProperties": false + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "id" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object" +}