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
86801dee
Commit
86801dee
authored
Feb 01, 2018
by
halfcrazy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo in client-go
parent
c52192f3
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
client.go
staging/src/k8s.io/client-go/dynamic/fake/client.go
+1
-1
README.md
...ent-go/examples/create-update-delete-deployment/README.md
+1
-1
client.go
staging/src/k8s.io/client-go/scale/client.go
+1
-1
roundtrip_test.go
staging/src/k8s.io/client-go/scale/roundtrip_test.go
+1
-1
doc.go
staging/src/k8s.io/client-go/scale/scheme/appsint/doc.go
+1
-1
doc.go
...ng/src/k8s.io/client-go/scale/scheme/extensionsint/doc.go
+1
-1
clientauth.go
staging/src/k8s.io/client-go/tools/auth/clientauth.go
+1
-1
loader.go
staging/src/k8s.io/client-go/tools/clientcmd/loader.go
+1
-1
cert.go
staging/src/k8s.io/client-go/util/cert/cert.go
+1
-1
certificate_manager.go
.../k8s.io/client-go/util/certificate/certificate_manager.go
+1
-1
No files found.
staging/src/k8s.io/client-go/dynamic/fake/client.go
View file @
86801dee
...
@@ -46,7 +46,7 @@ func (c *FakeClient) GetRateLimiter() flowcontrol.RateLimiter {
...
@@ -46,7 +46,7 @@ func (c *FakeClient) GetRateLimiter() flowcontrol.RateLimiter {
// Resource returns an API interface to the specified resource for this client's
// Resource returns an API interface to the specified resource for this client's
// group and version. If resource is not a namespaced resource, then namespace
// group and version. If resource is not a namespaced resource, then namespace
// is ignored. The ResourceClient inherits the param
a
ter codec of this client
// is ignored. The ResourceClient inherits the param
e
ter codec of this client
func
(
c
*
FakeClient
)
Resource
(
resource
*
metav1
.
APIResource
,
namespace
string
)
dynamic
.
ResourceInterface
{
func
(
c
*
FakeClient
)
Resource
(
resource
*
metav1
.
APIResource
,
namespace
string
)
dynamic
.
ResourceInterface
{
return
&
FakeResourceClient
{
return
&
FakeResourceClient
{
Resource
:
c
.
GroupVersion
.
WithResource
(
resource
.
Name
),
Resource
:
c
.
GroupVersion
.
WithResource
(
resource
.
Name
),
...
...
staging/src/k8s.io/client-go/examples/create-update-delete-deployment/README.md
View file @
86801dee
...
@@ -48,7 +48,7 @@ Running this command will execute the following operations on your cluster:
...
@@ -48,7 +48,7 @@ Running this command will execute the following operations on your cluster:
dependent ReplicaSet resource. Verify with
`kubectl get deployments`
.
dependent ReplicaSet resource. Verify with
`kubectl get deployments`
.
Each step is separated by an interactive prompt. You must hit the
Each step is separated by an interactive prompt. You must hit the
<kbd>
Return
</kbd>
key to procee
e
d to the next step. You can use these prompts as
<kbd>
Return
</kbd>
key to proceed to the next step. You can use these prompts as
a break to take time to run
`kubectl`
and inspect the result of the operations
a break to take time to run
`kubectl`
and inspect the result of the operations
executed.
executed.
...
...
staging/src/k8s.io/client-go/scale/client.go
View file @
86801dee
...
@@ -168,7 +168,7 @@ func (c *namespacedScaleClient) Update(resource schema.GroupResource, scale *aut
...
@@ -168,7 +168,7 @@ func (c *namespacedScaleClient) Update(resource schema.GroupResource, scale *aut
// Currently, a /scale endpoint can receive and return different scale types.
// Currently, a /scale endpoint can receive and return different scale types.
// Until we have support for the alternative API representations proposal,
// Until we have support for the alternative API representations proposal,
// we need to deal with sending and accepting differ
ne
t API versions.
// we need to deal with sending and accepting differ
en
t API versions.
// figure out what scale we actually need here
// figure out what scale we actually need here
desiredGVK
,
err
:=
c
.
client
.
scaleKindResolver
.
ScaleForResource
(
gvr
)
desiredGVK
,
err
:=
c
.
client
.
scaleKindResolver
.
ScaleForResource
(
gvr
)
...
...
staging/src/k8s.io/client-go/scale/roundtrip_test.go
View file @
86801dee
...
@@ -23,7 +23,7 @@ import (
...
@@ -23,7 +23,7 @@ import (
)
)
// NB: this can't be in the scheme package, because importing'
// NB: this can't be in the scheme package, because importing'
// scheme/autoscalingv1 from scheme causes a depedency loop from
// scheme/autoscalingv1 from scheme causes a depe
n
dency loop from
// conversions
// conversions
func
TestRoundTrip
(
t
*
testing
.
T
)
{
func
TestRoundTrip
(
t
*
testing
.
T
)
{
...
...
staging/src/k8s.io/client-go/scale/scheme/appsint/doc.go
View file @
86801dee
...
@@ -17,6 +17,6 @@ limitations under the License.
...
@@ -17,6 +17,6 @@ limitations under the License.
// Package appsint contains the necessary scaffolding of the
// Package appsint contains the necessary scaffolding of the
// internal version of extensions as required by conversion logic.
// internal version of extensions as required by conversion logic.
// It doesn't have any of its own types -- it's just necessary to
// It doesn't have any of its own types -- it's just necessary to
// get the expected behav
oi
r out of runtime.Scheme.ConvertToVersion
// get the expected behav
io
r out of runtime.Scheme.ConvertToVersion
// and associated methods.
// and associated methods.
package
appsint
package
appsint
staging/src/k8s.io/client-go/scale/scheme/extensionsint/doc.go
View file @
86801dee
...
@@ -17,6 +17,6 @@ limitations under the License.
...
@@ -17,6 +17,6 @@ limitations under the License.
// Package extensionsint contains the necessary scaffolding of the
// Package extensionsint contains the necessary scaffolding of the
// internal version of extensions as required by conversion logic.
// internal version of extensions as required by conversion logic.
// It doesn't have any of its own types -- it's just necessary to
// It doesn't have any of its own types -- it's just necessary to
// get the expected behav
oi
r out of runtime.Scheme.ConvertToVersion
// get the expected behav
io
r out of runtime.Scheme.ConvertToVersion
// and associated methods.
// and associated methods.
package
extensionsint
package
extensionsint
staging/src/k8s.io/client-go/tools/auth/clientauth.go
View file @
86801dee
...
@@ -23,7 +23,7 @@ location within a Container's file tree for Containers that
...
@@ -23,7 +23,7 @@ location within a Container's file tree for Containers that
need access to the Kubernetes API.
need access to the Kubernetes API.
Having a defined format allows:
Having a defined format allows:
- clients to be implmented in multiple languages
- clients to be impl
e
mented in multiple languages
- applications which link clients to be portable across
- applications which link clients to be portable across
clusters with different authentication styles (e.g.
clusters with different authentication styles (e.g.
some may use SSL Client certs, others may not, etc)
some may use SSL Client certs, others may not, etc)
...
...
staging/src/k8s.io/client-go/tools/clientcmd/loader.go
View file @
86801dee
...
@@ -420,7 +420,7 @@ func WriteToFile(config clientcmdapi.Config, filename string) error {
...
@@ -420,7 +420,7 @@ func WriteToFile(config clientcmdapi.Config, filename string) error {
func
lockFile
(
filename
string
)
error
{
func
lockFile
(
filename
string
)
error
{
// TODO: find a way to do this with actual file locks. Will
// TODO: find a way to do this with actual file locks. Will
// probably need sep
erate solution for windows and l
inux.
// probably need sep
arate solution for windows and L
inux.
// Make sure the dir exists before we try to create a lock file.
// Make sure the dir exists before we try to create a lock file.
dir
:=
filepath
.
Dir
(
filename
)
dir
:=
filepath
.
Dir
(
filename
)
...
...
staging/src/k8s.io/client-go/util/cert/cert.go
View file @
86801dee
...
@@ -38,7 +38,7 @@ const (
...
@@ -38,7 +38,7 @@ const (
duration365d
=
time
.
Hour
*
24
*
365
duration365d
=
time
.
Hour
*
24
*
365
)
)
// Config contain
e
s the basic fields required for creating a certificate
// Config contains the basic fields required for creating a certificate
type
Config
struct
{
type
Config
struct
{
CommonName
string
CommonName
string
Organization
[]
string
Organization
[]
string
...
...
staging/src/k8s.io/client-go/util/certificate/certificate_manager.go
View file @
86801dee
...
@@ -293,7 +293,7 @@ func (m *manager) rotateCerts() (bool, error) {
...
@@ -293,7 +293,7 @@ func (m *manager) rotateCerts() (bool, error) {
return
false
,
m
.
updateServerError
(
err
)
return
false
,
m
.
updateServerError
(
err
)
}
}
// Wait for the certificate to be signed. Instead of one long watch, we retry with slighly longer
// Wait for the certificate to be signed. Instead of one long watch, we retry with sligh
t
ly longer
// intervals each time in order to tolerate failures from the server AND to preserve the liveliness
// intervals each time in order to tolerate failures from the server AND to preserve the liveliness
// of the cert manager loop. This creates slightly more traffic against the API server in return
// of the cert manager loop. This creates slightly more traffic against the API server in return
// for bounding the amount of time we wait when a certificate expires.
// for bounding the amount of time we wait when a certificate expires.
...
...
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