-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cf): bump CD version add Space Filter to Halyard for CF (#1824)
- Loading branch information
1 parent
cb57107
commit f1cade2
Showing
8 changed files
with
62 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
clouddriverVersion=5.69.0 | ||
clouddriverVersion=5.70.0 | ||
fiatVersion=1.26.0 | ||
front50Version=2.21.0 | ||
korkVersion=7.88.0 | ||
|
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
30 changes: 30 additions & 0 deletions
30
...ard/cli/command/v1/config/providers/cloudfoundry/CloudFoundrySpaceFilterMapConverter.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,30 @@ | ||
package com.netflix.spinnaker.halyard.cli.command.v1.config.providers.cloudfoundry; | ||
|
||
import com.beust.jcommander.IStringConverter; | ||
import java.util.HashMap; | ||
import java.util.HashSet; | ||
import java.util.Map; | ||
import java.util.Set; | ||
|
||
public class CloudFoundrySpaceFilterMapConverter | ||
implements IStringConverter<Map<String, Set<String>>> { | ||
|
||
@Override | ||
public Map<String, Set<String>> convert(String filter) { | ||
Map<String, Set<String>> spaceFilters = new HashMap<>(); | ||
|
||
String[] s = filter.split(","); | ||
for (String pair : s) { | ||
String[] p = pair.split(":"); | ||
if (p.length > 2) { | ||
throw new IllegalArgumentException( | ||
"Syntax must be one of the following: 'Organization1' or 'Organization1:Space1' or 'Organization1:Space1,Organization2:Space2'"); | ||
} else if (p.length == 2) { | ||
spaceFilters.computeIfAbsent(p[0], k -> new HashSet<>()).add(p[1]); | ||
} else if (p.length == 1) { | ||
spaceFilters.computeIfAbsent(p[0], k -> new HashSet<>()); | ||
} | ||
} | ||
return spaceFilters; | ||
} | ||
} |
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