Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
cbe0787c
Unverified
Commit
cbe0787c
authored
Oct 24, 2016
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Describe graceful deletion in more detail
parent
3cdf8bb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
11 deletions
+22
-11
types.go
pkg/api/types.go
+14
-6
types.go
pkg/api/v1/types.go
+8
-5
No files found.
pkg/api/types.go
View file @
cbe0787c
...
@@ -114,15 +114,23 @@ type ObjectMeta struct {
...
@@ -114,15 +114,23 @@ type ObjectMeta struct {
// +optional
// +optional
CreationTimestamp
unversioned
.
Time
`json:"creationTimestamp,omitempty"`
CreationTimestamp
unversioned
.
Time
`json:"creationTimestamp,omitempty"`
// DeletionTimestamp is
the time after
which this resource will be deleted. This
// DeletionTimestamp is
RFC 3339 date and time at
which this resource will be deleted. This
// field is set by the server when a graceful deletion is requested by the user, and is not
// field is set by the server when a graceful deletion is requested by the user, and is not
// directly settable by a client. The resource
will be deleted (no longer visible from
// directly settable by a client. The resource
is expected to be deleted (no longer visible
//
resource lists, and not reachable by name) after the time in this field. Once set, this
//
from resource lists, and not reachable by name) after the time in this field. Once set,
// value may not be unset or be set further into the future, although it may be shortened
//
this
value may not be unset or be set further into the future, although it may be shortened
// or the resource may be deleted prior to this time. For example, a user may request that
// or the resource may be deleted prior to this time. For example, a user may request that
// a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination
// a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination
// signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet
// signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard
// will send a hard termination signal to the container.
// termination signal (SIGKILL) to the container and after cleanup, remove the pod from the
// API. In the presence of network partitions, this object may still exist after this
// timestamp, until an administrator or automated process can determine the resource is
// fully terminated.
// If not set, graceful deletion of the object has not been requested.
//
// Populated by the system when a graceful deletion is requested.
// Read-only.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
// +optional
DeletionTimestamp
*
unversioned
.
Time
`json:"deletionTimestamp,omitempty"`
DeletionTimestamp
*
unversioned
.
Time
`json:"deletionTimestamp,omitempty"`
...
...
pkg/api/v1/types.go
View file @
cbe0787c
...
@@ -151,13 +151,16 @@ type ObjectMeta struct {
...
@@ -151,13 +151,16 @@ type ObjectMeta struct {
// DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
// DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
// field is set by the server when a graceful deletion is requested by the user, and is not
// field is set by the server when a graceful deletion is requested by the user, and is not
// directly settable by a client. The resource
will be deleted (no longer visible from
// directly settable by a client. The resource
is expected to be deleted (no longer visible
//
resource lists, and not reachable by name) after the time in this field. Once set, this
//
from resource lists, and not reachable by name) after the time in this field. Once set,
// value may not be unset or be set further into the future, although it may be shortened
//
this
value may not be unset or be set further into the future, although it may be shortened
// or the resource may be deleted prior to this time. For example, a user may request that
// or the resource may be deleted prior to this time. For example, a user may request that
// a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination
// a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination
// signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet
// signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard
// will send a hard termination signal to the container.
// termination signal (SIGKILL) to the container and after cleanup, remove the pod from the
// API. In the presence of network partitions, this object may still exist after this
// timestamp, until an administrator or automated process can determine the resource is
// fully terminated.
// If not set, graceful deletion of the object has not been requested.
// If not set, graceful deletion of the object has not been requested.
//
//
// Populated by the system when a graceful deletion is requested.
// Populated by the system when a graceful deletion is requested.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment