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
8dcc09f7
Commit
8dcc09f7
authored
Sep 27, 2019
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update generated code
parent
f2f5ac55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
zz_generated_bindata.go
pkg/deploy/zz_generated_bindata.go
+1
-1
clientset.go
pkg/generated/clientset/versioned/clientset.go
+7
-0
No files found.
pkg/deploy/zz_generated_bindata.go
View file @
8dcc09f7
...
@@ -79,7 +79,7 @@ func (fi bindataFileInfo) Sys() interface{} {
...
@@ -79,7 +79,7 @@ func (fi bindataFileInfo) Sys() interface{} {
return
nil
return
nil
}
}
var
_corednsYaml
=
[]
byte
(
"
\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x56\x
4b\x6f\x1b\x37\x10\xbe\xeb\x57\x10\x5b\xe4\xd6\x95\x2d\x18\x49\x5d\xde\x12\xdb\x4d\x0c\xc4\x8a\xe0\x47\x2e\x45\x11\x8c\xb8\x23\x89\x35\x97\xc3\x92\xb3\x8a\xd5\xd4\xff\xbd\xe0\xbe\xb4\x94\xd7\x41\x12\x64\x4f\x5c\x0e\xe7\x9b\xe1\x3c\xbe\x21\x38\xfd\x11\x7d\xd0\x64\xa5\xd8\xce\x26\xf7\xda\x16\x52\xdc\xa0\xdf\x6a\x85\xaf\x95\xa2\xca\xf2\xa4\x44\x86\x02\x18\xe4\x44\x08\x0b\x25\x4a\xa1\xc8\x63\x61\x43\xfb\x1f\x1c\x28\x94\xe2\xbe\x5a\x62\x1e\x76\x81\xb1\x9c\xe4\x79\x3e\x19\x42\xfb\x25\xa8\x29\x54\xbc\x21\xaf\xff\x05\xd6\x64\xa7\xf7\xa7\x61\xaa\xe9\x68\x3b\x5b\x22\x43\x67\xf9\xcc\x54\x81\xd1\x5f\x93\xc1\xc4\xac\x81\x25\x9a\x10\x57\xa2\xb6\xe3\x2d\x32\xd6\xfa\x4b\x22\x0e\xec\xc1\x39\x6d\xd7\x8d\xa1\xbc\xc0\x15\x54\x86\x43\xef\x6f\xe3\x95\xec\xdc\xf6\x95\xc1\x20\x27\xb9\x00\xa7\xdf\x7a\xaa\x5c\x8d\x9c\x8b\x2c\x9b\x08\xe1\x31\x50\xe5\x15\xb6\x7b\x68\x0b\x47\xda\xd6\x60\xb9\x08\x4d\x64\x9a\x1f\x47\x45\xb3\xe8\x83\x10\x7f\xb7\xe8\x97\xad\xae\xd1\x81\xeb\xc5\x67\x60\xb5\xf9\x36\x7b\x96\x8a\x43\x98\x35\xf2\xcf\x08\xe8\x1b\x6d\x0b\x6d\xd7\x49\x5c\xc1\x5a\xe2\x5a\xbd\x0d\xee\x18\x6e\x12\x6f\xa8\x98\x2a\x57\x00\xa3\x14\x19\xfb\x0a\xb3\x9f\x9f\x1e\x32\x78\x8d\xab\xda\xbf\x36\x60\x5f\xb9\xf0\x44\x88\xa7\xb5\xf3\x0c\x72\xa8\x96\x7f\xa3\xe2\x3a\xf7\xa3\xa5\xfe\xc3\x05\xde\xf7\xce\x19\xd9\x95\x5e\x5f\x81\xfb\x91\xb6\xe9\x8e\x9f\x91\xc7\x95\x36\x28\xc5\x7f\x75\x4c\xa7\xf2\xe5\x89\xf8\x52\x2f\xe3\x87\xde\x93\x0f\xfd\xef\x06\xc1\xf0\xa6\xff\xdd\x27\x40\xbc\xf8\x72\xf6\xfe\xee\xe6\xf6\xe2\xfa\xd3\xf9\x87\xab\xd7\x97\xf3\xc7\x17\x42\xdb\x1c\x8a\xc2\x4f\xc1\x3b\x10\xda\xbd\x6a\x16\x7b\x6c\x51\x97\xb5\xd0\x36\xa0\xaa\x3c\x0e\xf6\x2b\x17\xd8\x23\x94\x83\xad\x15\x18\xc3\x1b\x4f\xd5\x7a\x33\x0e\xdc\x9f\x7d\xdc\x7b\x4b\x81\x83\x38\x42\x56\x47\x6d\x3c\x8e\xe6\x54\xe0\xbb\x7a\x7b\xe8\x87\x47\x43\x50\x88\x59\x18\x37\x38\x02\xed\x3c\x95\xc8\x1b\xac\x82\x90\xbf\xcf\x5e\x9e\xf4\x82\x15\xf9\xcf\xe0\x0b\x31\x6d\xec\xc6\x96\x33\xdb\xa9\x22\xbb\xea\x8f\x28\x50\x1b\x14\x27\xc7\xfd\x86\x21\x72\x93\xd4\x97\x81\x0c\x8a\x25\x18\xb0\xaa\x09\xd0\xe3\x93\x7a\xc0\x07\x46\x1b\x97\xe1\xa0\x21\xcf\xd1\x19\xda\x95\xf8\x63\xbc\x7a\xd0\x6a\xa7\x21\x07\xe7\xda\x23\x8d\xe2\x61\x03\x36\xc0\x59\xac\xa8\xf3\xf9\x4d\x36\x09\x0e\x55\xd4\xfe\xc5\xa3\x33\x5a\x41\x90\x62\x36\x11\x22\xf6\x28\xe3\x7a\xd7\x00\xf3\xce\xa1\x14\xd7\x64\x8c\xb6\xeb\xbb\xba\xdb\x1b\x76\x18\xee\xc8\x36\x1c\x25\x3c\xdc\x59\xd8\x82\x36\xb0\x8c\x25\x5b\xc3\xa1\x41\xc5\xe4\x9b\x33\x65\xa4\xbf\xf7\x03\xc7\xc7\x5d\x67\x2c\x9d\xe9\x81\x87\xd1\xa9\x63\x9e\xe8\x3f\x77\xf9\xee\x7a\xf5\x3a\xe9\xed\xf9\x41\x84\xeb\x7b\x92\x41\x3f\xa4\xbf\xf8\xe5\xe2\x1e\x77\x31\x64\x5e\xb3\x56\x60\x5e\x17\x05\xd9\xf0\xc1\x9a\x5d\x36\xa8\x44\x72\x51\x93\xbc\x14\xd9\xc5\x83\x0e\x1c\x3a\x61\x24\xf0\x9b\xe4\xfa\xf1\x8b\x25\x70\xc0\xa4\x14\xa4\x30\xda\x56\x0f\xed\x21\x45\x96\x41\x5b\xf4\xbd\x2f\xf9\x93\xb2\x68\x3e\x5d\xc2\x7a\xbf\xdd\xb5\x91\x9c\x4d\x5f\x4d\x4f\xd2\x43\x8b\xca\x98\x05\x19\xad\x76\x52\x5c\xae\xe6\xc4\x0b\x8f\x01\x6b\xa2\xeb\x0a\x7b\x30\x7d\xfa\xf2\xd6\xa5\xe6\x64\x27\xa6\xa3\x24\xbf\x93\x62\xf6\xdb\xf1\x95\x4e\xba\xf4\x9f\x0a\xc3\xe1\x69\xe5\x2a\x29\x66\xc7\xc7\xe5\x28\x46\x02\x01\x7e\x1d\xa4\xf8\x53\x64\x79\xec\xc7\xec\x57\x91\x25\xdc\xd0\x51\x61\x26\xfe\xea\x55\xb6\x64\xaa\x12\xaf\x62\x56\x93\xbc\x75\xd1\x8a\x0c\x9c\x37\x87\x06\xf6\xcb\x78\x7e\x01\xbc\x91\x09\xfb\x24\x77\x81\x22\xe6\x59\x8a\x38\xd8\xf6\xb4\x42\x3e\xb5\xd3\x67\x6a\x41\x9e\xa5\x18\x10\x4d\xd7\xc8\x29\xae\xf3\xc4\xa4\xc8\x48\x71\x77\xbe\xf8\x5e\x9c\x9c\x95\x1b\xc5\xba\x3d\xfb\x0a\x56\x42\x7f\x1d\x5a\x89\xec\xb5\x1a\xf7\x6c\x88\x56\x53\xbf\xe6\xdd\x19\x59\xc6\x07\x1e\xa6\x16\x8c\xa1\xcf\x0b\xaf\xb7\xda\xe0\x1a\x2f\x82\x02\x53\xf7\x8f\x8c\xd4\x1c\x86\xe1\x56\xe0\x60\xa9\x8d\x66\x8d\x07\xc5\x01\x45\x91\x6e\xe4\x62\x7e\x71\xfb\xe9\xcd\xe5\xfc\xfc\xd3\xcd\xc5\xf5\xc7\xcb\xb3\x8b\x44\x5c\x78\x72\x87\x0a\x60\xcc\x48\xe2\xae\x89\xf8\x0f\x6d\xb0\x1d\xfb\x69\x1a\x8d\xde\xa2\xc5\x10\x16\x9e\x96\x38\xc4\xdb\x30\xbb\xb7\xc8\xa9\x09\xd7\x14\xca\xc1\x6c\x15\x6d\x39\x48\x71\x7a\x7c\x7a\x9c\x6c\x07\xb5\xc1\x18\xe4\x77\xb7\xb7\x8b\x81\x40\x5b\xcd\x1a\xcc\x39\x1a\xd8\xdd\xa0\x22\x5b\x04\x29\x5e\x0d\x55\x59\x97\x48\x15\xf7\xc2\x97\x03\x59\xa8\x94\xc2\x10\x6e\x37\x1e\xc3\x86\x4c\xd1\xb0\x6b\xf7\xad\x40\x9b\xca\xe3\x40\xda\xe9\x16\x36\x74\x6d\x7f\xde\xbc\xb6\x5a\x41\xd3\x15\xdf\xd1\x35\xaa\x7b\xcf\xa4\xe1\x19\x27\xa6\xfa\xc2\x8c\x65\x38\x4c\x57\xcd\xa8\x5d\x2b\x27\xb2\x2e\xd2\xa3\xc2\x56\xb1\x7f\x1f\x8c\x6a\xee\xa5\xcf\x3e\xca\xda\x57\xde\xc8\xc4\x1d\x0c\x8f\x67\x47\xee\x93\x47\xf2\xfe\x9d\x11\x79\xbc\xa9\x87\x2c\x76\x5c\x36\x22\x0e\xca\x83\x7b\xf6\xb1\xfc\x0d\x13\x5c\x35\xef\xda\xbc\x1d\x67\x03\xa4\x6f\x9d\xf5\xe9\x34\x1e\xb3\xd9\xda\xb8\x5c\xc8\xe1\x9b\x71\x7e\xf3\xf8\x62\x32\xe0\xbf\xfc\x80\xdd\xdc\x90\xb6\x0e\x49\x2e\x1f\xa1\xb0\x67\x14\x1a\xee\xc9\x47\x58\xca\xa5\x64\x96\xaa\xfc\x1f\x00\x00\xff\xff\x88\xc3\x46\xa9\xbc
\x0e\x00\x00
"
)
var
_corednsYaml
=
[]
byte
(
"
\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x56\x
5f\x6f\xdb\x36\x10\x7f\xf7\xa7\x20\x34\xf4\x6d\x72\x62\x04\xed\x32\xbe\xb5\x71\xd6\x06\x68\x5c\x23\x4e\xfa\x32\x0c\xc5\x99\x3a\x5b\x5c\x28\x1e\x47\x9e\xdc\x78\x5d\xbe\xfb\xa0\xbf\x16\x1d\xa5\x68\x8b\xea\x89\xe2\xf1\x7e\x77\xbc\x3f\xbf\x23\x38\xfd\x11\x7d\xd0\x64\xa5\xd8\xcd\x26\xf7\xda\x66\x52\xac\xd0\xef\xb4\xc2\xd7\x4a\x51\x69\x79\x52\x20\x43\x06\x0c\x72\x22\x84\x85\x02\xa5\x50\xe4\x31\xb3\xa1\xfd\x0f\x0e\x14\x4a\x71\x5f\xae\x31\x0d\xfb\xc0\x58\x4c\xd2\x34\x9d\x0c\xa1\xfd\x1a\xd4\x14\x4a\xce\xc9\xeb\x7f\x81\x35\xd9\xe9\xfd\x79\x98\x6a\x3a\xd9\xcd\xd6\xc8\xd0\x59\xbe\x30\x65\x60\xf4\x37\x64\x30\x32\x6b\x60\x8d\x26\x54\x2b\x51\xdb\xf1\x16\x19\x6b\xfd\x35\x11\x07\xf6\xe0\x9c\xb6\xdb\xc6\x50\x9a\xe1\x06\x4a\xc3\xa1\xf7\xb7\xf1\x4a\x76\x6e\xfb\xd2\x60\x90\x93\x54\x80\xd3\x6f\x3d\x95\xae\x46\x4e\x45\x92\x4c\x84\xf0\x18\xa8\xf4\x0a\xdb\x3d\xb4\x99\x23\x6d\x6b\xb0\x54\x84\x26\x32\xcd\x8f\xa3\xac\x59\xf4\x41\xa8\x7e\x77\xe8\xd7\xad\xae\xd1\x81\xeb\xc5\x67\x60\x95\x7f\x9b\x3d\x4b\xd9\x31\xcc\x16\xf9\x67\x04\xf4\x8d\xb6\x99\xb6\xdb\x28\xae\x60\x2d\x71\xad\xde\x06\x77\x0c\x37\x8a\x37\x94\x4c\xa5\xcb\x80\x51\x8a\x84\x7d\x89\xc9\xcf\x4f\x0f\x19\xbc\xc1\x4d\xed\x5f\x1b\xb0\xaf\x5c\x78\x22\xc4\xd3\xda\x79\x06\x39\x94\xeb\xbf\x51\x71\x9d\xfb\xd1\x52\xff\xe1\x02\xef\x7b\xe7\x82\xec\x46\x6f\xaf\xc1\xfd\x48\xdb\x74\xc7\x2f\xc8\xe3\x46\x1b\x94\xe2\xbf\x3a\xa6\x53\xf9\xf2\x4c\x7c\xa9\x97\xd5\x87\xde\x93\x0f\xfd\x6f\x8e\x60\x38\xef\x7f\x0f\x09\x10\x2f\xbe\x5c\xbc\xbf\x5b\xdd\x5e\xde\x7c\x9a\x7f\xb8\x7e\x7d\xb5\x78\x7c\x21\xb4\x4d\x21\xcb\xfc\x14\xbc\x03\xa1\xdd\xab\x66\x71\xc0\x16\x75\x59\x0b\x6d\x03\xaa\xd2\xe3\x60\xbf\x74\x81\x3d\x42\x31\xd8\xda\x80\x31\x9c\x7b\x2a\xb7\xf9\x38\x70\x7f\xf6\xf1\xe0\x2d\x05\x0e\xe2\x04\x59\x9d\xb4\xf1\x38\x59\x50\x86\xef\xea\xed\xa1\x1f\x1e\x0d\x41\x26\x66\x61\xdc\xe0\x08\xb4\xf3\x54\x20\xe7\x58\x06\x21\x7f\x9f\xbd\x3c\xeb\x05\x1b\xf2\x9f\xc1\x67\x62\xda\xd8\xad\x5a\xce\xec\xa6\x8a\xec\xa6\x3f\xa2\x40\xe5\x28\xce\x4e\xfb\x0d\x43\xe4\x26\xb1\x2f\x03\x19\x64\x6b\x30\x60\x55\x13\xa0\xc7\x27\xf5\x00\xce\x85\x93\xbe\x28\xe6\xe8\x0c\xed\x0b\xfc\x31\x32\x3d\xea\xaf\xf3\x90\x82\x73\xed\x91\x46\xf1\xb8\xeb\x1a\xe0\xa4\x2a\xa3\xf9\x62\x95\x4c\x82\x43\x55\x69\xff\xe2\xd1\x19\xad\x20\x48\x31\x9b\x08\x51\x35\x26\xe3\x76\xdf\x00\xf3\xde\xa1\x14\x37\x64\x8c\xb6\xdb\xbb\xba\xc5\x1b\x4a\x18\xee\xc8\x36\x06\x05\x3c\xdc\x59\xd8\x81\x36\xb0\xae\xea\xb4\x86\x43\x83\x8a\xc9\x37\x67\x8a\x8a\xf3\xde\x0f\x1c\x1f\x77\x9d\xb1\x70\xa6\x07\x1e\x46\xa7\x0e\x74\xa4\xff\xdc\xe5\xbb\xeb\xd5\xeb\xa8\xa1\x17\x47\x11\xae\xef\x49\x06\xfd\x90\xf3\xaa\x2f\x15\xf7\xb8\xaf\x42\xe6\x35\x6b\x05\xe6\x75\x96\x91\x0d\x1f\xac\xd9\x27\x83\xf2\x23\x57\x69\x92\x97\x22\xb9\x7c\xd0\x81\x43\x27\xac\x58\x7b\x15\x5d\xbf\xfa\x2a\x22\x3e\xa2\x4f\x0a\x52\x18\x6d\xcb\x87\xf6\x90\x22\xcb\xa0\x2d\xfa\xde\x97\xf4\x49\x59\x34\x9f\x2e\x60\x7b\xd8\xee\x7a\x47\xce\xa6\xaf\xa6\x67\xf1\xa1\x65\x69\xcc\x92\x8c\x56\x7b\x29\xae\x36\x0b\xe2\xa5\xc7\x80\x35\xbb\x75\xd5\x3c\x18\x39\x7d\x4d\xeb\x42\x73\xb4\x53\xa5\xa3\x20\xbf\x97\x62\xf6\xdb\xe9\xb5\x8e\x5a\xf3\x9f\x12\xc3\xf1\x69\xe5\x4a\x29\x66\xa7\xa7\xc5\x28\x46\x04\x01\x7e\x1b\xa4\xf8\x53\x24\x69\xd5\x84\xc9\xaf\x22\x89\x08\xa1\xe3\xbf\x44\xfc\xd5\xab\xec\xc8\x94\x05\x5e\x57\x59\x8d\xf2\xd6\x45\xab\xa2\xdd\xb4\x39\x34\xb0\x5f\x54\xe7\x97\xc0\xb9\x8c\x28\x27\xba\x0b\x64\x55\x9e\xa5\xa8\xa6\xd9\x81\x4b\xc8\xc7\x76\xfa\x4c\x2d\xc9\xb3\x14\x03\x76\xe9\x1a\x39\xc6\x75\x9e\x98\x14\x19\x29\xee\xe6\xcb\xef\xc5\x49\x59\xb9\x51\xac\xdb\x8b\xaf\x60\x45\x9c\xd7\xa1\x15\xc8\x5e\xab\x71\xcf\x86\x68\x35\xdf\x6b\xde\x5f\x90\x65\x7c\xe0\x61\x6a\xc1\x18\xfa\xbc\xf4\x7a\xa7\x0d\x6e\xf1\x32\x28\x30\x75\xff\xc8\x8a\x8f\xc3\x30\xdc\x0a\x1c\xac\xb5\xd1\xac\xf1\xa8\x38\x20\xcb\xe2\x8d\x54\x2c\x2e\x6f\x3f\xbd\xb9\x5a\xcc\x3f\xad\x2e\x6f\x3e\x5e\x5d\x5c\x46\xe2\xcc\x93\x3b\x56\x00\x63\x46\x12\x77\x43\xc4\x7f\x68\x83\xed\xac\x8f\xd3\x68\xf4\x0e\x2d\x86\xb0\xf4\xb4\xc6\x21\x5e\xce\xec\xde\x22\xc7\x26\x5c\x53\x28\x47\x03\x55\xb4\xe5\x20\xc5\xf9\xe9\xf9\x69\xb4\x1d\x54\x8e\x55\x90\xdf\xdd\xde\x2e\x07\x02\x6d\x35\x6b\x30\x73\x34\xb0\x5f\xa1\x22\x9b\x05\x29\x5e\x0d\x55\x59\x17\x48\x25\xf7\xc2\x97\x03\x59\x28\x95\xc2\x10\x6e\x73\x8f\x21\x27\x93\x35\xec\xda\x7d\x1b\xd0\xa6\xf4\x38\x90\x76\xba\x99\x0d\x5d\xdb\xcf\x9b\x27\x56\x2b\x68\xba\xe2\x3b\xba\x46\x75\x8f\x98\x38\x3c\xe3\xc4\x54\x5f\x98\xb1\x08\xc7\xe9\xaa\x19\xb5\x6b\xe5\x48\xd6\x45\x7a\x54\xd8\x2a\xf6\x8f\x82\x51\xcd\x83\xf4\xd9\x97\x58\xfb\xb4\x1b\x99\xb8\x83\xe1\xf1\xec\xc8\x7d\xf2\x32\x3e\x3c\x2e\x2a\x1e\x6f\xea\x21\xa9\x3a\x2e\x19\x11\x07\xe5\xc1\x3d\xfb\x42\xfe\x86\x09\xae\x9a\xc7\x6c\xda\x8e\xb3\x01\xd2\xb7\xce\xfa\x78\x1a\x8f\xd9\x6c\x6d\x5c\x2d\xe5\xf0\xa1\xb8\x58\x3d\xbe\x98\x0c\xf8\x2f\x3d\x62\x37\x37\xa4\xad\x63\x92\x4b\x47\x28\xec\x19\x85\x86\x7b\xd2\x11\x96\x72\x31\x99\xc5\x2a\xff\x07\x00\x00\xff\xff\xe6\x56\x5e\x9e\xb1
\x0e\x00\x00
"
)
func
corednsYamlBytes
()
([]
byte
,
error
)
{
func
corednsYamlBytes
()
([]
byte
,
error
)
{
return
bindataRead
(
return
bindataRead
(
...
...
pkg/generated/clientset/versioned/clientset.go
View file @
8dcc09f7
...
@@ -19,6 +19,8 @@ limitations under the License.
...
@@ -19,6 +19,8 @@ limitations under the License.
package
versioned
package
versioned
import
(
import
(
"fmt"
k3sv1
"github.com/rancher/k3s/pkg/generated/clientset/versioned/typed/k3s.cattle.io/v1"
k3sv1
"github.com/rancher/k3s/pkg/generated/clientset/versioned/typed/k3s.cattle.io/v1"
discovery
"k8s.io/client-go/discovery"
discovery
"k8s.io/client-go/discovery"
rest
"k8s.io/client-go/rest"
rest
"k8s.io/client-go/rest"
...
@@ -51,9 +53,14 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
...
@@ -51,9 +53,14 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
}
}
// NewForConfig creates a new Clientset for the given config.
// NewForConfig creates a new Clientset for the given config.
// If config's RateLimiter is not set and QPS and Burst are acceptable,
// NewForConfig will generate a rate-limiter in configShallowCopy.
func
NewForConfig
(
c
*
rest
.
Config
)
(
*
Clientset
,
error
)
{
func
NewForConfig
(
c
*
rest
.
Config
)
(
*
Clientset
,
error
)
{
configShallowCopy
:=
*
c
configShallowCopy
:=
*
c
if
configShallowCopy
.
RateLimiter
==
nil
&&
configShallowCopy
.
QPS
>
0
{
if
configShallowCopy
.
RateLimiter
==
nil
&&
configShallowCopy
.
QPS
>
0
{
if
configShallowCopy
.
Burst
<=
0
{
return
nil
,
fmt
.
Errorf
(
"Burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0"
)
}
configShallowCopy
.
RateLimiter
=
flowcontrol
.
NewTokenBucketRateLimiter
(
configShallowCopy
.
QPS
,
configShallowCopy
.
Burst
)
configShallowCopy
.
RateLimiter
=
flowcontrol
.
NewTokenBucketRateLimiter
(
configShallowCopy
.
QPS
,
configShallowCopy
.
Burst
)
}
}
var
cs
Clientset
var
cs
Clientset
...
...
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