Skip to content
This repository has been archived by the owner on Nov 13, 2019. It is now read-only.

Stopping infinite loop #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ private void deploymentConfigAdded(DeploymentConfig dc) {

for (String key : cm.getData().keySet()) {

final EnvVar ev = new EnvVar(Util.sanitiseEnvVar(key), cm.getData().get(key), null);
String evValue = cm.getData().get(key);
if(evValue.equals("")) evValue = null;

final EnvVar ev = new EnvVar(Util.sanitiseEnvVar(key), evValue, null);

final List<Container> containers = dc.getSpec().getTemplate().getSpec().getContainers();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void eventReceived(Action action, DeploymentConfig dc) {

final Map<String, String> labels = dc.getMetadata().getLabels();
final String name = dc.getMetadata().getName();
logger.info("DeploymentConfig watch received event " + action + " on map " + name + " with labels" + labels);
logger.info("DeploymentConfig watch received event " + action + " on deploymentconfig " + name + " with labels" + labels);

try {
switch (action) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void eventReceived(Action action, Deployment dc) {

final Map<String, String> labels = dc.getMetadata().getLabels();
final String name = dc.getMetadata().getName();
logger.info("Deployment watch received event " + action + " on map " + name + " with labels" + labels);
logger.info("Deployment watch received event " + action + " on deployment " + name + " with labels" + labels);

try {
switch (action) {
Expand Down