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
59924255
Commit
59924255
authored
May 16, 2017
by
Zihong Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Autogenerated files
parent
c0920f75
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
83 additions
and
20 deletions
+83
-20
.linted_packages
hack/.linted_packages
+0
-1
BUILD
pkg/api/BUILD
+0
-1
BUILD
pkg/api/service/BUILD
+1
-4
BUILD
pkg/api/v1/service/BUILD
+1
-4
BUILD
pkg/api/validation/BUILD
+0
-1
BUILD
pkg/controller/deployment/util/BUILD
+0
-1
BUILD
pkg/kubectl/BUILD
+0
-1
BUILD
pkg/kubectl/cmd/BUILD
+0
-2
BUILD
pkg/kubectl/cmd/util/BUILD
+0
-1
BUILD
pkg/printers/internalversion/BUILD
+0
-1
BUILD
pkg/proxy/iptables/BUILD
+0
-1
annotation_key_constants.go
.../src/k8s.io/client-go/pkg/api/annotation_key_constants.go
+33
-0
annotation_key_constants.go
...c/k8s.io/client-go/pkg/api/v1/annotation_key_constants.go
+47
-0
conversion.go
staging/src/k8s.io/client-go/pkg/api/v1/conversion.go
+1
-1
BUILD
test/e2e/BUILD
+0
-1
No files found.
hack/.linted_packages
View file @
59924255
...
@@ -52,7 +52,6 @@ hack
...
@@ -52,7 +52,6 @@ hack
hack/boilerplate/test
hack/boilerplate/test
hack/cmd/teststale
hack/cmd/teststale
pkg/api
pkg/api
pkg/api/annotations
pkg/api/errors
pkg/api/errors
pkg/api/events
pkg/api/events
pkg/api/install
pkg/api/install
...
...
pkg/api/BUILD
View file @
59924255
...
@@ -101,7 +101,6 @@ filegroup(
...
@@ -101,7 +101,6 @@ filegroup(
name = "all-srcs",
name = "all-srcs",
srcs = [
srcs = [
":package-srcs",
":package-srcs",
"//pkg/api/annotations:all-srcs",
"//pkg/api/endpoints:all-srcs",
"//pkg/api/endpoints:all-srcs",
"//pkg/api/errors:all-srcs",
"//pkg/api/errors:all-srcs",
"//pkg/api/events:all-srcs",
"//pkg/api/events:all-srcs",
...
...
pkg/api/service/BUILD
View file @
59924255
...
@@ -10,10 +10,7 @@ load(
...
@@ -10,10 +10,7 @@ load(
go_library(
go_library(
name = "go_default_library",
name = "go_default_library",
srcs = [
srcs = ["util.go"],
"annotations.go",
"util.go",
],
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
...
...
pkg/api/v1/service/BUILD
View file @
59924255
...
@@ -10,10 +10,7 @@ load(
...
@@ -10,10 +10,7 @@ load(
go_library(
go_library(
name = "go_default_library",
name = "go_default_library",
srcs = [
srcs = ["util.go"],
"annotations.go",
"util.go",
],
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/api/v1:go_default_library",
"//pkg/api/v1:go_default_library",
...
...
pkg/api/validation/BUILD
View file @
59924255
...
@@ -70,7 +70,6 @@ go_test(
...
@@ -70,7 +70,6 @@ go_test(
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/helper:go_default_library",
"//pkg/api/helper:go_default_library",
"//pkg/api/service:go_default_library",
"//pkg/api/testapi:go_default_library",
"//pkg/api/testapi:go_default_library",
"//pkg/api/testing:go_default_library",
"//pkg/api/testing:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/v1:go_default_library",
...
...
pkg/controller/deployment/util/BUILD
View file @
59924255
...
@@ -18,7 +18,6 @@ go_library(
...
@@ -18,7 +18,6 @@ go_library(
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/annotations:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/apis/extensions:go_default_library",
"//pkg/apis/extensions:go_default_library",
"//pkg/apis/extensions/v1beta1:go_default_library",
"//pkg/apis/extensions/v1beta1:go_default_library",
...
...
pkg/kubectl/BUILD
View file @
59924255
...
@@ -52,7 +52,6 @@ go_library(
...
@@ -52,7 +52,6 @@ go_library(
deps = [
deps = [
"//federation/apis/federation/v1beta1:go_default_library",
"//federation/apis/federation/v1beta1:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/annotations:go_default_library",
"//pkg/api/helper:go_default_library",
"//pkg/api/helper:go_default_library",
"//pkg/api/util:go_default_library",
"//pkg/api/util:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/v1:go_default_library",
...
...
pkg/kubectl/cmd/BUILD
View file @
59924255
...
@@ -69,7 +69,6 @@ go_library(
...
@@ -69,7 +69,6 @@ go_library(
],
],
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/annotations:go_default_library",
"//pkg/api/helper:go_default_library",
"//pkg/api/helper:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/v1/helper:go_default_library",
"//pkg/api/v1/helper:go_default_library",
...
@@ -197,7 +196,6 @@ go_test(
...
@@ -197,7 +196,6 @@ go_test(
],
],
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/annotations:go_default_library",
"//pkg/api/ref:go_default_library",
"//pkg/api/ref:go_default_library",
"//pkg/api/testapi:go_default_library",
"//pkg/api/testapi:go_default_library",
"//pkg/api/testing:go_default_library",
"//pkg/api/testing:go_default_library",
...
...
pkg/kubectl/cmd/util/BUILD
View file @
59924255
...
@@ -27,7 +27,6 @@ go_library(
...
@@ -27,7 +27,6 @@ go_library(
"//federation/apis/federation:go_default_library",
"//federation/apis/federation:go_default_library",
"//federation/client/clientset_generated/federation_internalclientset:go_default_library",
"//federation/client/clientset_generated/federation_internalclientset:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/service:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/validation:go_default_library",
"//pkg/api/validation:go_default_library",
"//pkg/apis/apps:go_default_library",
"//pkg/apis/apps:go_default_library",
...
...
pkg/printers/internalversion/BUILD
View file @
59924255
...
@@ -60,7 +60,6 @@ go_library(
...
@@ -60,7 +60,6 @@ go_library(
"//federation/apis/federation:go_default_library",
"//federation/apis/federation:go_default_library",
"//federation/client/clientset_generated/federation_internalclientset:go_default_library",
"//federation/client/clientset_generated/federation_internalclientset:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/annotations:go_default_library",
"//pkg/api/events:go_default_library",
"//pkg/api/events:go_default_library",
"//pkg/api/helper:go_default_library",
"//pkg/api/helper:go_default_library",
"//pkg/api/ref:go_default_library",
"//pkg/api/ref:go_default_library",
...
...
pkg/proxy/iptables/BUILD
View file @
59924255
...
@@ -41,7 +41,6 @@ go_test(
...
@@ -41,7 +41,6 @@ go_test(
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/service:go_default_library",
"//pkg/proxy:go_default_library",
"//pkg/proxy:go_default_library",
"//pkg/util/exec:go_default_library",
"//pkg/util/exec:go_default_library",
"//pkg/util/iptables:go_default_library",
"//pkg/util/iptables:go_default_library",
...
...
staging/src/k8s.io/client-go/pkg/api/annotation_key_constants.go
View file @
59924255
...
@@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
...
@@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
// This file should be consistent with pkg/api/v1/annotation_key_constants.go.
package
api
package
api
const
(
const
(
...
@@ -70,4 +72,35 @@ const (
...
@@ -70,4 +72,35 @@ const (
// annotation key prefix used to identify non-convertible json paths.
// annotation key prefix used to identify non-convertible json paths.
NonConvertibleAnnotationPrefix
=
"non-convertible.kubernetes.io"
NonConvertibleAnnotationPrefix
=
"non-convertible.kubernetes.io"
kubectlPrefix
=
"kubectl.kubernetes.io/"
// LastAppliedConfigAnnotation is the annotation used to store the previous
// configuration of a resource for use in a three way diff by UpdateApplyAnnotation.
LastAppliedConfigAnnotation
=
kubectlPrefix
+
"last-applied-configuration"
// AnnotationLoadBalancerSourceRangesKey is the key of the annotation on a service to set allowed ingress ranges on their LoadBalancers
//
// It should be a comma-separated list of CIDRs, e.g. `0.0.0.0/0` to
// allow full access (the default) or `18.0.0.0/8,56.0.0.0/8` to allow
// access only from the CIDRs currently allocated to MIT & the USPS.
//
// Not all cloud providers support this annotation, though AWS & GCE do.
AnnotationLoadBalancerSourceRangesKey
=
"service.beta.kubernetes.io/load-balancer-source-ranges"
// AnnotationValueExternalTrafficLocal Value of annotation to specify local endpoints behavior.
AnnotationValueExternalTrafficLocal
=
"OnlyLocal"
// AnnotationValueExternalTrafficGlobal Value of annotation to specify global (legacy) behavior.
AnnotationValueExternalTrafficGlobal
=
"Global"
// TODO: The beta annotations have been deprecated, remove them when we release k8s 1.8.
// BetaAnnotationHealthCheckNodePort Annotation specifying the healthcheck nodePort for the service.
// If not specified, annotation is created by the service api backend with the allocated nodePort.
// Will use user-specified nodePort value if specified by the client.
BetaAnnotationHealthCheckNodePort
=
"service.beta.kubernetes.io/healthcheck-nodeport"
// BetaAnnotationExternalTraffic An annotation that denotes if this Service desires to route
// external traffic to local endpoints only. This preserves Source IP and avoids a second hop.
BetaAnnotationExternalTraffic
=
"service.beta.kubernetes.io/external-traffic"
)
)
staging/src/k8s.io/client-go/pkg/api/v1/annotation_key_constants.go
View file @
59924255
...
@@ -14,9 +14,22 @@ See the License for the specific language governing permissions and
...
@@ -14,9 +14,22 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
// This file should be consistent with pkg/api/annotation_key_constants.go.
package
v1
package
v1
const
(
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
// SeccompPodAnnotationKey represents the key of a seccomp profile applied
// to all containers of a pod.
// to all containers of a pod.
SeccompPodAnnotationKey
string
=
"seccomp.security.alpha.kubernetes.io/pod"
SeccompPodAnnotationKey
string
=
"seccomp.security.alpha.kubernetes.io/pod"
...
@@ -56,4 +69,38 @@ const (
...
@@ -56,4 +69,38 @@ const (
// in the Annotations of a Pod.
// in the Annotations of a Pod.
// TODO: remove when alpha support for affinity is removed
// TODO: remove when alpha support for affinity is removed
AffinityAnnotationKey
string
=
"scheduler.alpha.kubernetes.io/affinity"
AffinityAnnotationKey
string
=
"scheduler.alpha.kubernetes.io/affinity"
// annotation key prefix used to identify non-convertible json paths.
NonConvertibleAnnotationPrefix
=
"non-convertible.kubernetes.io"
kubectlPrefix
=
"kubectl.kubernetes.io/"
// LastAppliedConfigAnnotation is the annotation used to store the previous
// configuration of a resource for use in a three way diff by UpdateApplyAnnotation.
LastAppliedConfigAnnotation
=
kubectlPrefix
+
"last-applied-configuration"
// AnnotationLoadBalancerSourceRangesKey is the key of the annotation on a service to set allowed ingress ranges on their LoadBalancers
//
// It should be a comma-separated list of CIDRs, e.g. `0.0.0.0/0` to
// allow full access (the default) or `18.0.0.0/8,56.0.0.0/8` to allow
// access only from the CIDRs currently allocated to MIT & the USPS.
//
// Not all cloud providers support this annotation, though AWS & GCE do.
AnnotationLoadBalancerSourceRangesKey
=
"service.beta.kubernetes.io/load-balancer-source-ranges"
// AnnotationValueExternalTrafficLocal Value of annotation to specify local endpoints behavior.
AnnotationValueExternalTrafficLocal
=
"OnlyLocal"
// AnnotationValueExternalTrafficGlobal Value of annotation to specify global (legacy) behavior.
AnnotationValueExternalTrafficGlobal
=
"Global"
// TODO: The beta annotations have been deprecated, remove them when we release k8s 1.8.
// BetaAnnotationHealthCheckNodePort Annotation specifying the healthcheck nodePort for the service.
// If not specified, annotation is created by the service api backend with the allocated nodePort.
// Will use user-specified nodePort value if specified by the client.
BetaAnnotationHealthCheckNodePort
=
"service.beta.kubernetes.io/healthcheck-nodeport"
// BetaAnnotationExternalTraffic An annotation that denotes if this Service desires to route
// external traffic to local endpoints only. This preserves Source IP and avoids a second hop.
BetaAnnotationExternalTraffic
=
"service.beta.kubernetes.io/external-traffic"
)
)
staging/src/k8s.io/client-go/pkg/api/v1/conversion.go
View file @
59924255
...
@@ -301,7 +301,7 @@ func Convert_extensions_ReplicaSet_to_v1_ReplicationController(in *extensions.Re
...
@@ -301,7 +301,7 @@ func Convert_extensions_ReplicaSet_to_v1_ReplicationController(in *extensions.Re
if
out
.
Annotations
==
nil
{
if
out
.
Annotations
==
nil
{
out
.
Annotations
=
make
(
map
[
string
]
string
)
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
{
if
err
:=
Convert_extensions_ReplicaSetStatus_to_v1_ReplicationControllerStatus
(
&
in
.
Status
,
&
out
.
Status
,
s
);
err
!=
nil
{
return
err
return
err
...
...
test/e2e/BUILD
View file @
59924255
...
@@ -113,7 +113,6 @@ go_library(
...
@@ -113,7 +113,6 @@ go_library(
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/api:go_default_library",
"//pkg/api:go_default_library",
"//pkg/api/annotations:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/api/v1/pod:go_default_library",
"//pkg/api/v1/pod:go_default_library",
"//pkg/api/v1/service:go_default_library",
"//pkg/api/v1/service:go_default_library",
...
...
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