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
a82676a1
Commit
a82676a1
authored
May 16, 2017
by
Zihong Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep annotation_key_constants consistent
parent
1e6061b9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
annotation_key_constants.go
pkg/api/annotation_key_constants.go
+2
-0
annotation_key_constants.go
pkg/api/v1/annotation_key_constants.go
+16
-0
conversion.go
pkg/api/v1/conversion.go
+1
-1
pod_update.go
pkg/kubelet/types/pod_update.go
+1
-1
No files found.
pkg/api/annotation_key_constants.go
View file @
a82676a1
...
...
@@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// This file should be consistent with pkg/api/v1/annotation_key_constants.go.
package
api
const
(
...
...
pkg/api/v1/annotation_key_constants.go
View file @
a82676a1
...
...
@@ -14,9 +14,22 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// This file should be consistent with pkg/api/annotation_key_constants.go.
package
v1
const
(
// MirrorAnnotationKey represents the annotation key set by kubelets when creating mirror pods
MirrorPodAnnotationKey
string
=
"kubernetes.io/config.mirror"
// TolerationsAnnotationKey represents the key of tolerations data (json serialized)
// in the Annotations of a Pod.
TolerationsAnnotationKey
string
=
"scheduler.alpha.kubernetes.io/tolerations"
// TaintsAnnotationKey represents the key of taints data (json serialized)
// in the Annotations of a Node.
TaintsAnnotationKey
string
=
"scheduler.alpha.kubernetes.io/taints"
// SeccompPodAnnotationKey represents the key of a seccomp profile applied
// to all containers of a pod.
SeccompPodAnnotationKey
string
=
"seccomp.security.alpha.kubernetes.io/pod"
...
...
@@ -56,4 +69,7 @@ const (
// in the Annotations of a Pod.
// TODO: remove when alpha support for affinity is removed
AffinityAnnotationKey
string
=
"scheduler.alpha.kubernetes.io/affinity"
// annotation key prefix used to identify non-convertible json paths.
NonConvertibleAnnotationPrefix
=
"non-convertible.kubernetes.io"
)
pkg/api/v1/conversion.go
View file @
a82676a1
...
...
@@ -301,7 +301,7 @@ func Convert_extensions_ReplicaSet_to_v1_ReplicationController(in *extensions.Re
if
out
.
Annotations
==
nil
{
out
.
Annotations
=
make
(
map
[
string
]
string
)
}
out
.
Annotations
[
api
.
NonConvertibleAnnotationPrefix
+
"/"
+
fieldErr
.
Field
]
=
reflect
.
ValueOf
(
fieldErr
.
BadValue
)
.
String
()
out
.
Annotations
[
NonConvertibleAnnotationPrefix
+
"/"
+
fieldErr
.
Field
]
=
reflect
.
ValueOf
(
fieldErr
.
BadValue
)
.
String
()
}
if
err
:=
Convert_extensions_ReplicaSetStatus_to_v1_ReplicationControllerStatus
(
&
in
.
Status
,
&
out
.
Status
,
s
);
err
!=
nil
{
return
err
...
...
pkg/kubelet/types/pod_update.go
View file @
a82676a1
...
...
@@ -26,7 +26,7 @@ import (
const
(
ConfigSourceAnnotationKey
=
"kubernetes.io/config.source"
ConfigMirrorAnnotationKey
=
kubeapi
.
MirrorPodAnnotationKey
ConfigMirrorAnnotationKey
=
v1
.
MirrorPodAnnotationKey
ConfigFirstSeenAnnotationKey
=
"kubernetes.io/config.seen"
ConfigHashAnnotationKey
=
"kubernetes.io/config.hash"
CriticalPodAnnotationKey
=
"scheduler.alpha.kubernetes.io/critical-pod"
...
...
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