api
api copied to clipboard
The canonical location of the Kubernetes API definition.
hi , I have some trouble about printing the audit log. In reality, this error blocks my goroutine code form this ``` package main import ( "fmt" "k8s.io/api/apps/v1" apiv1 "k8s.io/api/core/v1"...
https://github.com/kubernetes/api/blob/7d47955f01bdcc2946a794248c1a65e3d419c0c9/core/v1/types.go#L1706
the code is as follows: ``` obj := &corev1.Pod{} pod := h.Decoder.Decode(req, obj) ``` and output is: ``` &Pod{ObjectMeta:{ test-2021-10-26-06-00-1026060225-573e31ecd3e668d7c1cb- 0 0001-01-01 00:00:00 +0000 UTC ``` Can anyone tell me...
Hi, the repo is excellent! It works well except I can not specify the pod name. Can anyone help me? I will be very grateful! I have tried specified `ObjectMeta.Name`...
`"k8s.io/api"` is using the deprecated `"github.com/gogo/protobuf"` Is it possible to remove this deprecated module and replace it with a suitable alternative?
``` kubectl uncordon my_node ``` translates to ``` PATCH /api/v1/nodes/my_node {"spec":{"unschedulable":null}} ``` but current definition of core v1 NodeSpec.Unschedulable does not allow the field to be null. (bool type and...
As stated in the docs https://github.com/kubernetes/api/blob/2f9553831ec24dc60e3e1c3a374fb63ca091688f/batch/v1/types.go#L182 one of fields must be present. But https://github.com/kubernetes/api/blob/2f9553831ec24dc60e3e1c3a374fb63ca091688f/batch/v1/types.go#L204 lacks `+optional`. This, the OpenAPI validation fails, if `onPodConditions` is not set. Background: we are using...
Remove this comment here https://github.com/kubernetes/api/blob/ffee488e7bd8c76c62b4646310580a1a6d7243b8/core/v1/types.go#L6419 It gets propagated as description of the field `Name` and it appears in descriptions of CRDs delivered to users. As a suggestion, remove the comment...
Why don't v1beta1.IngressLoadBalancerStatus and networking v1.IngressLoadBalancerStatus and corev1.LoadBalancerStatus and v1.LoadBalancerStatus reuse the same structure, so that the upper layer call will be more convenient Versions before 1.26 returned v1.LoadBalancerStatus, why...
API Version: k8s.io/api v0.29.1 Golang Version: 1.21 I wrote a function to build `appv1.Deployment` manually, just like below: ```go func buildDeployment(cpu, mem string) appsv1.Deployment { replicas := new(int32) *replicas =...