Commit 325f5738 authored by tengqm's avatar tengqm

Improve deleteOptions doc

parent b47e0f83
...@@ -3575,6 +3575,10 @@ type DeleteOptions struct { ...@@ -3575,6 +3575,10 @@ type DeleteOptions struct {
// Either this field or OrphanDependents may be set, but not both. // Either this field or OrphanDependents may be set, but not both.
// The default policy is decided by the existing finalizer set in the // The default policy is decided by the existing finalizer set in the
// metadata.finalizers and the resource-specific default policy. // metadata.finalizers and the resource-specific default policy.
// Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
// allow the garbage collector to delete the dependents in the background;
// 'Foreground' - a cascading policy that deletes all dependents in the
// foreground.
// +optional // +optional
PropagationPolicy *DeletionPropagation PropagationPolicy *DeletionPropagation
} }
......
...@@ -765,6 +765,10 @@ message DeleteOptions { ...@@ -765,6 +765,10 @@ message DeleteOptions {
// Either this field or OrphanDependents may be set, but not both. // Either this field or OrphanDependents may be set, but not both.
// The default policy is decided by the existing finalizer set in the // The default policy is decided by the existing finalizer set in the
// metadata.finalizers and the resource-specific default policy. // metadata.finalizers and the resource-specific default policy.
// Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
// allow the garbage collector to delete the dependents in the background;
// 'Foreground' - a cascading policy that deletes all dependents in the
// foreground.
// +optional // +optional
optional string propagationPolicy = 4; optional string propagationPolicy = 4;
} }
......
...@@ -4034,6 +4034,10 @@ type DeleteOptions struct { ...@@ -4034,6 +4034,10 @@ type DeleteOptions struct {
// Either this field or OrphanDependents may be set, but not both. // Either this field or OrphanDependents may be set, but not both.
// The default policy is decided by the existing finalizer set in the // The default policy is decided by the existing finalizer set in the
// metadata.finalizers and the resource-specific default policy. // metadata.finalizers and the resource-specific default policy.
// Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
// allow the garbage collector to delete the dependents in the background;
// 'Foreground' - a cascading policy that deletes all dependents in the
// foreground.
// +optional // +optional
PropagationPolicy *DeletionPropagation `protobuf:"bytes,4,opt,name=propagationPolicy,casttype=DeletionPropagation"` PropagationPolicy *DeletionPropagation `protobuf:"bytes,4,opt,name=propagationPolicy,casttype=DeletionPropagation"`
} }
......
...@@ -392,7 +392,7 @@ var map_DeleteOptions = map[string]string{ ...@@ -392,7 +392,7 @@ var map_DeleteOptions = map[string]string{
"gracePeriodSeconds": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "gracePeriodSeconds": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
"preconditions": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", "preconditions": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.",
"orphanDependents": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "orphanDependents": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.",
"PropagationPolicy": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", "PropagationPolicy": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.",
} }
func (DeleteOptions) SwaggerDoc() map[string]string { func (DeleteOptions) SwaggerDoc() map[string]string {
......
...@@ -149,6 +149,10 @@ message DeleteOptions { ...@@ -149,6 +149,10 @@ message DeleteOptions {
// Either this field or OrphanDependents may be set, but not both. // Either this field or OrphanDependents may be set, but not both.
// The default policy is decided by the existing finalizer set in the // The default policy is decided by the existing finalizer set in the
// metadata.finalizers and the resource-specific default policy. // metadata.finalizers and the resource-specific default policy.
// Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
// allow the garbage collector to delete the dependents in the background;
// 'Foreground' - a cascading policy that deletes all dependents in the
// foreground.
// +optional // +optional
optional string propagationPolicy = 4; optional string propagationPolicy = 4;
} }
......
...@@ -445,6 +445,10 @@ type DeleteOptions struct { ...@@ -445,6 +445,10 @@ type DeleteOptions struct {
// Either this field or OrphanDependents may be set, but not both. // Either this field or OrphanDependents may be set, but not both.
// The default policy is decided by the existing finalizer set in the // The default policy is decided by the existing finalizer set in the
// metadata.finalizers and the resource-specific default policy. // metadata.finalizers and the resource-specific default policy.
// Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
// allow the garbage collector to delete the dependents in the background;
// 'Foreground' - a cascading policy that deletes all dependents in the
// foreground.
// +optional // +optional
PropagationPolicy *DeletionPropagation `json:"propagationPolicy,omitempty" protobuf:"varint,4,opt,name=propagationPolicy"` PropagationPolicy *DeletionPropagation `json:"propagationPolicy,omitempty" protobuf:"varint,4,opt,name=propagationPolicy"`
} }
......
...@@ -90,7 +90,7 @@ var map_DeleteOptions = map[string]string{ ...@@ -90,7 +90,7 @@ var map_DeleteOptions = map[string]string{
"gracePeriodSeconds": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "gracePeriodSeconds": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
"preconditions": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", "preconditions": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.",
"orphanDependents": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "orphanDependents": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.",
"propagationPolicy": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", "propagationPolicy": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.",
} }
func (DeleteOptions) SwaggerDoc() map[string]string { func (DeleteOptions) SwaggerDoc() map[string]string {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment