Test for httptrigger and functions container/newdeploy (#2861)
* Test for httptrigger and functions * Fixes with multierror * review changes Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -62,6 +62,13 @@ func CacheKeyURFromMeta(metadata *metav1.ObjectMeta) CacheKeyUR {
|
||||
}
|
||||
}
|
||||
|
||||
func CacheKeyURFromObject(obj metav1.Object) CacheKeyUR {
|
||||
return CacheKeyUR{
|
||||
UID: obj.GetUID(),
|
||||
ResourceVersion: obj.GetResourceVersion(),
|
||||
}
|
||||
}
|
||||
|
||||
// CacheKeyURGFromMeta : Given metadata, create a key that uniquely identifies the contents
|
||||
// of the object. Since resourceVersion changes on every update and
|
||||
// UIDs are unique, uid+resourceVersion identifies the
|
||||
|
||||
Reference in New Issue
Block a user