Files
fission-src/pkg/utils/maps/map.go
T
AmborandGitHub da50c3759d feat: add the fn annotations to newdeploy function based deployment (#2554)
* feat: add copy the fn annotations to the deploy annotations

* feat: add copy the fn labels to the deploy labels
2022-09-22 14:21:27 +05:30

31 lines
853 B
Go

/*
Copyright 2021 The Fission Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package maps
func CopyStringMap(m map[string]string) map[string]string {
n := make(map[string]string)
for k, v := range m {
n[k] = v
}
return n
}
func MergeStringMap(targetMap map[string]string, sourceMap map[string]string) {
for k, v := range sourceMap {
targetMap[k] = v
}
}