Pod Rolling update

introduce Pod events channel;
add parsing of the MaintenanceWindows section;
skip deleting Etcd key on cluster delete;
use external etcd host;
watch for tpr/pods in the namespace of the operator pod only;
This commit is contained in:
Murat Kabilov
2017-05-12 11:41:25 +02:00
parent 2b8956bd33
commit ae77fa15e8
23 changed files with 1763 additions and 790 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ type Team struct {
type TeamsAPI struct {
url string
httpClient *http.Client
OauthToken string
OAuthToken string
}
func NewTeamsAPI(url string) *TeamsAPI {
@@ -57,7 +57,7 @@ func (t *TeamsAPI) TeamInfo(teamId string) (*Team, error) {
return nil, err
}
req.Header.Add("Authorization", "Bearer "+t.OauthToken)
req.Header.Add("Authorization", "Bearer "+t.OAuthToken)
resp, err := t.httpClient.Do(req)
if err != nil {
return nil, err