-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve logging and handling of service-based nodes
* Replace static calls to RancherWebSocketListener in RancherNodeExecutorPlugin * Run node executor on services with multiple containers * Increase support for handling services in file copier * Better logging of errors in http client class Co-authored-by: Karl DeBisschop <[email protected]>
- Loading branch information
1 parent
354d4ef
commit 19e0de0
Showing
11 changed files
with
395 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/com/bioraft/rundeck/rancher/RancherCredentials.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.bioraft.rundeck.rancher; | ||
|
||
import com.dtolabs.rundeck.core.execution.ExecutionContext; | ||
|
||
import java.io.IOException; | ||
import java.util.Map; | ||
|
||
import static com.bioraft.rundeck.rancher.Constants.CONFIG_ACCESSKEY_PATH; | ||
import static com.bioraft.rundeck.rancher.Constants.CONFIG_SECRETKEY_PATH; | ||
|
||
public class RancherCredentials { | ||
private String accessKey; | ||
private String secretKey; | ||
|
||
public RancherCredentials(ExecutionContext context, Map<String, String> nodeAttributes) throws IOException { | ||
Storage storage = new Storage(context); | ||
accessKey = storage.loadStoragePathData(nodeAttributes.get(CONFIG_ACCESSKEY_PATH)); | ||
secretKey = storage.loadStoragePathData(nodeAttributes.get(CONFIG_SECRETKEY_PATH)); | ||
} | ||
|
||
public String getAccessKey() { | ||
return accessKey; | ||
} | ||
|
||
public String getSecretKey() { | ||
return secretKey; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.