mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Conversions
This commit is contained in:
parent
edb108802d
commit
adc97bf936
@ -51,6 +51,7 @@ current-release-pr
|
|||||||
current-replicas
|
current-replicas
|
||||||
default-container-cpu-limit
|
default-container-cpu-limit
|
||||||
default-container-mem-limit
|
default-container-mem-limit
|
||||||
|
delay-shutdown
|
||||||
deleting-pods-burst
|
deleting-pods-burst
|
||||||
deleting-pods-qps
|
deleting-pods-qps
|
||||||
deployment-label-key
|
deployment-label-key
|
||||||
|
@ -53,6 +53,12 @@ func deepCopy_api_ObjectMeta(in api.ObjectMeta, out *api.ObjectMeta, c *conversi
|
|||||||
} else {
|
} else {
|
||||||
out.DeletionTimestamp = nil
|
out.DeletionTimestamp = nil
|
||||||
}
|
}
|
||||||
|
if in.DeletionGracePeriodSeconds != nil {
|
||||||
|
out.DeletionGracePeriodSeconds = new(int64)
|
||||||
|
*out.DeletionGracePeriodSeconds = *in.DeletionGracePeriodSeconds
|
||||||
|
} else {
|
||||||
|
out.DeletionGracePeriodSeconds = nil
|
||||||
|
}
|
||||||
if in.Labels != nil {
|
if in.Labels != nil {
|
||||||
out.Labels = make(map[string]string)
|
out.Labels = make(map[string]string)
|
||||||
for key, val := range in.Labels {
|
for key, val := range in.Labels {
|
||||||
|
@ -57,6 +57,12 @@ func convert_api_ObjectMeta_To_v1_ObjectMeta(in *api.ObjectMeta, out *v1.ObjectM
|
|||||||
} else {
|
} else {
|
||||||
out.DeletionTimestamp = nil
|
out.DeletionTimestamp = nil
|
||||||
}
|
}
|
||||||
|
if in.DeletionGracePeriodSeconds != nil {
|
||||||
|
out.DeletionGracePeriodSeconds = new(int64)
|
||||||
|
*out.DeletionGracePeriodSeconds = *in.DeletionGracePeriodSeconds
|
||||||
|
} else {
|
||||||
|
out.DeletionGracePeriodSeconds = nil
|
||||||
|
}
|
||||||
if in.Labels != nil {
|
if in.Labels != nil {
|
||||||
out.Labels = make(map[string]string)
|
out.Labels = make(map[string]string)
|
||||||
for key, val := range in.Labels {
|
for key, val := range in.Labels {
|
||||||
@ -115,6 +121,12 @@ func convert_v1_ObjectMeta_To_api_ObjectMeta(in *v1.ObjectMeta, out *api.ObjectM
|
|||||||
} else {
|
} else {
|
||||||
out.DeletionTimestamp = nil
|
out.DeletionTimestamp = nil
|
||||||
}
|
}
|
||||||
|
if in.DeletionGracePeriodSeconds != nil {
|
||||||
|
out.DeletionGracePeriodSeconds = new(int64)
|
||||||
|
*out.DeletionGracePeriodSeconds = *in.DeletionGracePeriodSeconds
|
||||||
|
} else {
|
||||||
|
out.DeletionGracePeriodSeconds = nil
|
||||||
|
}
|
||||||
if in.Labels != nil {
|
if in.Labels != nil {
|
||||||
out.Labels = make(map[string]string)
|
out.Labels = make(map[string]string)
|
||||||
for key, val := range in.Labels {
|
for key, val := range in.Labels {
|
||||||
|
@ -70,6 +70,12 @@ func deepCopy_v1_ObjectMeta(in v1.ObjectMeta, out *v1.ObjectMeta, c *conversion.
|
|||||||
} else {
|
} else {
|
||||||
out.DeletionTimestamp = nil
|
out.DeletionTimestamp = nil
|
||||||
}
|
}
|
||||||
|
if in.DeletionGracePeriodSeconds != nil {
|
||||||
|
out.DeletionGracePeriodSeconds = new(int64)
|
||||||
|
*out.DeletionGracePeriodSeconds = *in.DeletionGracePeriodSeconds
|
||||||
|
} else {
|
||||||
|
out.DeletionGracePeriodSeconds = nil
|
||||||
|
}
|
||||||
if in.Labels != nil {
|
if in.Labels != nil {
|
||||||
out.Labels = make(map[string]string)
|
out.Labels = make(map[string]string)
|
||||||
for key, val := range in.Labels {
|
for key, val := range in.Labels {
|
||||||
|
Loading…
Reference in New Issue
Block a user