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
e30fe2ba
Commit
e30fe2ba
authored
May 07, 2018
by
Davanum Srinivas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate in-tree OpenStack cloud provider
Warn operators and users to switch to the external cloud provider for openstack.
parent
af70337f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
plugins.go
pkg/cloudprovider/plugins.go
+13
-2
No files found.
pkg/cloudprovider/plugins.go
View file @
e30fe2ba
...
@@ -33,8 +33,11 @@ type Factory func(config io.Reader) (Interface, error)
...
@@ -33,8 +33,11 @@ type Factory func(config io.Reader) (Interface, error)
// All registered cloud providers.
// All registered cloud providers.
var
(
var
(
providersMutex
sync
.
Mutex
providersMutex
sync
.
Mutex
providers
=
make
(
map
[
string
]
Factory
)
providers
=
make
(
map
[
string
]
Factory
)
deprecatedCloudProviders
=
[]
string
{
"openstack"
,
}
)
)
const
externalCloudProvider
=
"external"
const
externalCloudProvider
=
"external"
...
@@ -95,6 +98,14 @@ func InitCloudProvider(name string, configFilePath string) (Interface, error) {
...
@@ -95,6 +98,14 @@ func InitCloudProvider(name string, configFilePath string) (Interface, error) {
return
nil
,
nil
return
nil
,
nil
}
}
for
_
,
provider
:=
range
deprecatedCloudProviders
{
if
provider
==
name
{
glog
.
Warningf
(
"WARNING: %s built-in cloud provider is now deprecated. "
+
"Please use 'external' cloud provider for %s"
,
name
,
name
)
break
}
}
if
configFilePath
!=
""
{
if
configFilePath
!=
""
{
var
config
*
os
.
File
var
config
*
os
.
File
config
,
err
=
os
.
Open
(
configFilePath
)
config
,
err
=
os
.
Open
(
configFilePath
)
...
...
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