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
25a67fc5
Commit
25a67fc5
authored
Jun 14, 2017
by
Janet Kuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename DaemonSet and StatefulSet hash label
Make them share the same hash label "controller-revision-hash", for consistency
parent
e08dfeb7
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
14 additions
and
18 deletions
+14
-18
types.go
pkg/apis/apps/v1beta1/types.go
+3
-2
types.go
pkg/apis/extensions/types.go
+0
-5
BUILD
pkg/apis/extensions/v1beta1/BUILD
+1
-0
types.go
pkg/apis/extensions/v1beta1/types.go
+2
-1
BUILD
pkg/controller/daemon/util/BUILD
+1
-1
daemonset_util_test.go
pkg/controller/daemon/util/daemonset_util_test.go
+1
-1
types.go
staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/types.go
+3
-2
types.go
staging/src/k8s.io/client-go/pkg/apis/extensions/types.go
+0
-5
BUILD
...ng/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/BUILD
+1
-0
types.go
...src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.go
+2
-1
No files found.
pkg/apis/apps/v1beta1/types.go
View file @
25a67fc5
...
@@ -25,8 +25,9 @@ import (
...
@@ -25,8 +25,9 @@ import (
const
(
const
(
// StatefulSetInitAnnotation if present, and set to false, indicates that a Pod's readiness should be ignored.
// StatefulSetInitAnnotation if present, and set to false, indicates that a Pod's readiness should be ignored.
StatefulSetInitAnnotation
=
"pod.alpha.kubernetes.io/initialized"
StatefulSetInitAnnotation
=
"pod.alpha.kubernetes.io/initialized"
StatefulSetRevisionLabel
=
"statefulset.beta.kubernetes.io/revision"
ControllerRevisionHashLabelKey
=
"controller-revision-hash"
StatefulSetRevisionLabel
=
ControllerRevisionHashLabelKey
)
)
// ScaleSpec describes the attributes of a scale subresource
// ScaleSpec describes the attributes of a scale subresource
...
...
pkg/apis/extensions/types.go
View file @
25a67fc5
...
@@ -537,11 +537,6 @@ const (
...
@@ -537,11 +537,6 @@ const (
// to daemon set pods to distinguish between old and new pod templates
// to daemon set pods to distinguish between old and new pod templates
// during DaemonSet template update.
// during DaemonSet template update.
DaemonSetTemplateGenerationKey
string
=
"pod-template-generation"
DaemonSetTemplateGenerationKey
string
=
"pod-template-generation"
// DefaultDaemonSetUniqueLabelKey is the default label key that is added
// to existing DaemonSet pods to distinguish between old and new
// DaemonSet pods during DaemonSet template updates.
DefaultDaemonSetUniqueLabelKey
string
=
"daemonset-controller-hash"
)
)
// DaemonSetList is a collection of daemon sets.
// DaemonSetList is a collection of daemon sets.
...
...
pkg/apis/extensions/v1beta1/BUILD
View file @
25a67fc5
...
@@ -27,6 +27,7 @@ go_library(
...
@@ -27,6 +27,7 @@ go_library(
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/apis/apps/v1beta1:go_default_library",
"//pkg/apis/extensions:go_default_library",
"//pkg/apis/extensions:go_default_library",
"//pkg/apis/networking:go_default_library",
"//pkg/apis/networking:go_default_library",
"//vendor/github.com/gogo/protobuf/proto:go_default_library",
"//vendor/github.com/gogo/protobuf/proto:go_default_library",
...
...
pkg/apis/extensions/v1beta1/types.go
View file @
25a67fc5
...
@@ -21,6 +21,7 @@ import (
...
@@ -21,6 +21,7 @@ import (
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/kubernetes/pkg/api/v1"
"k8s.io/kubernetes/pkg/api/v1"
appsv1beta1
"k8s.io/kubernetes/pkg/apis/apps/v1beta1"
)
)
// describes the attributes of a scale subresource
// describes the attributes of a scale subresource
...
@@ -544,7 +545,7 @@ const (
...
@@ -544,7 +545,7 @@ const (
// DefaultDaemonSetUniqueLabelKey is the default label key that is added
// DefaultDaemonSetUniqueLabelKey is the default label key that is added
// to existing DaemonSet pods to distinguish between old and new
// to existing DaemonSet pods to distinguish between old and new
// DaemonSet pods during DaemonSet template updates.
// DaemonSet pods during DaemonSet template updates.
DefaultDaemonSetUniqueLabelKey
string
=
"daemonset-controller-hash"
DefaultDaemonSetUniqueLabelKey
=
appsv1beta1
.
ControllerRevisionHashLabelKey
)
)
// DaemonSetList is a collection of daemon sets.
// DaemonSetList is a collection of daemon sets.
...
...
pkg/controller/daemon/util/BUILD
View file @
25a67fc5
...
@@ -45,7 +45,7 @@ go_test(
...
@@ -45,7 +45,7 @@ go_test(
deps = [
deps = [
"//pkg/api/testapi:go_default_library",
"//pkg/api/testapi:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/apis/extensions:go_default_library",
"//pkg/apis/extensions
/v1beta1
:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
],
],
)
)
pkg/controller/daemon/util/daemonset_util_test.go
View file @
25a67fc5
...
@@ -23,7 +23,7 @@ import (
...
@@ -23,7 +23,7 @@ import (
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/kubernetes/pkg/api/testapi"
"k8s.io/kubernetes/pkg/api/testapi"
"k8s.io/kubernetes/pkg/api/v1"
"k8s.io/kubernetes/pkg/api/v1"
"k8s.io/kubernetes/pkg/apis/extensions
"
extensions
"k8s.io/kubernetes/pkg/apis/extensions/v1beta1
"
)
)
func
newPod
(
podName
string
,
nodeName
string
,
label
map
[
string
]
string
)
*
v1
.
Pod
{
func
newPod
(
podName
string
,
nodeName
string
,
label
map
[
string
]
string
)
*
v1
.
Pod
{
...
...
staging/src/k8s.io/client-go/pkg/apis/apps/v1beta1/types.go
View file @
25a67fc5
...
@@ -25,8 +25,9 @@ import (
...
@@ -25,8 +25,9 @@ import (
const
(
const
(
// StatefulSetInitAnnotation if present, and set to false, indicates that a Pod's readiness should be ignored.
// StatefulSetInitAnnotation if present, and set to false, indicates that a Pod's readiness should be ignored.
StatefulSetInitAnnotation
=
"pod.alpha.kubernetes.io/initialized"
StatefulSetInitAnnotation
=
"pod.alpha.kubernetes.io/initialized"
StatefulSetRevisionLabel
=
"statefulset.beta.kubernetes.io/revision"
ControllerRevisionHashLabelKey
=
"controller-revision-hash"
StatefulSetRevisionLabel
=
ControllerRevisionHashLabelKey
)
)
// ScaleSpec describes the attributes of a scale subresource
// ScaleSpec describes the attributes of a scale subresource
...
...
staging/src/k8s.io/client-go/pkg/apis/extensions/types.go
View file @
25a67fc5
...
@@ -537,11 +537,6 @@ const (
...
@@ -537,11 +537,6 @@ const (
// to daemon set pods to distinguish between old and new pod templates
// to daemon set pods to distinguish between old and new pod templates
// during DaemonSet template update.
// during DaemonSet template update.
DaemonSetTemplateGenerationKey
string
=
"pod-template-generation"
DaemonSetTemplateGenerationKey
string
=
"pod-template-generation"
// DefaultDaemonSetUniqueLabelKey is the default label key that is added
// to existing DaemonSet pods to distinguish between old and new
// DaemonSet pods during DaemonSet template updates.
DefaultDaemonSetUniqueLabelKey
string
=
"daemonset-controller-hash"
)
)
// DaemonSetList is a collection of daemon sets.
// DaemonSetList is a collection of daemon sets.
...
...
staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/BUILD
View file @
25a67fc5
...
@@ -36,6 +36,7 @@ go_library(
...
@@ -36,6 +36,7 @@ go_library(
"//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library",
"//vendor/k8s.io/client-go/pkg/api:go_default_library",
"//vendor/k8s.io/client-go/pkg/api:go_default_library",
"//vendor/k8s.io/client-go/pkg/api/v1:go_default_library",
"//vendor/k8s.io/client-go/pkg/api/v1:go_default_library",
"//vendor/k8s.io/client-go/pkg/apis/apps/v1beta1:go_default_library",
"//vendor/k8s.io/client-go/pkg/apis/extensions:go_default_library",
"//vendor/k8s.io/client-go/pkg/apis/extensions:go_default_library",
"//vendor/k8s.io/client-go/pkg/apis/networking:go_default_library",
"//vendor/k8s.io/client-go/pkg/apis/networking:go_default_library",
],
],
...
...
staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.go
View file @
25a67fc5
...
@@ -21,6 +21,7 @@ import (
...
@@ -21,6 +21,7 @@ import (
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/api/v1"
appsv1beta1
"k8s.io/client-go/pkg/apis/apps/v1beta1"
)
)
// describes the attributes of a scale subresource
// describes the attributes of a scale subresource
...
@@ -544,7 +545,7 @@ const (
...
@@ -544,7 +545,7 @@ const (
// DefaultDaemonSetUniqueLabelKey is the default label key that is added
// DefaultDaemonSetUniqueLabelKey is the default label key that is added
// to existing DaemonSet pods to distinguish between old and new
// to existing DaemonSet pods to distinguish between old and new
// DaemonSet pods during DaemonSet template updates.
// DaemonSet pods during DaemonSet template updates.
DefaultDaemonSetUniqueLabelKey
string
=
"daemonset-controller-hash"
DefaultDaemonSetUniqueLabelKey
=
appsv1beta1
.
ControllerRevisionHashLabelKey
)
)
// DaemonSetList is a collection of daemon sets.
// DaemonSetList is a collection of daemon sets.
...
...
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