File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,19 @@ func StringToStringMap(map1, map2 map[string]string) map[string]string {
34
34
return mergedMap
35
35
}
36
36
37
+ // StringToBoolMap merges two string-to-bool maps together with the second map
38
+ // overriding any values also specified in the first.
39
+ func StringToBoolMap (map1 , map2 map [string ]bool ) map [string ]bool {
40
+ mergedMap := make (map [string ]bool )
41
+ for k , v := range map1 {
42
+ mergedMap [k ] = v
43
+ }
44
+ for k , v := range map2 {
45
+ mergedMap [k ] = v
46
+ }
47
+ return mergedMap
48
+ }
49
+
37
50
// Containers merges two slices of containers merging each item by container name.
38
51
func Containers (defaultContainers , overrideContainers []corev1.Container ) []corev1.Container {
39
52
mergedContainerMap := map [string ]corev1.Container {}
You can’t perform that action at this time.
0 commit comments