// GetReleasePayloadQueueKeyFromAnnotation returns the "namespace/name" of the
// ReleasePayload to be used as the key for adding an item onto a queue or an
// error if unable to generate the key.
GetReleasePayloadQueueKeyFromAnnotation returns the "namespace/name" of the
ReleasePayload to be used as the key for adding an item onto a queue or an
error if unable to generate the key.
// GetReleasePayloadQueueKeyFromAnnotation returns the " namespace / name " of the // ReleasePayload to be used as the key for adding an item onto a queue or an // error if unable to generate the key .
func GetReleasePayloadQueueKeyFromAnnotation(obj interface{}, annotation, releaseNamespace string) (key string, err error) {
	if len(releaseNamespace) == 0 {
		return "", fmt.Errorf("releaseNamespace parameter must be set")
	}
	object, ok := obj.(runtime.Object)
	if !ok {
		return "", fmt.Errorf("unable to cast obj: %v", obj)
	}
	value, err := GetAnnotation(object, annotation)
	if err != nil {
		return "", fmt.Errorf("unable to determine releasePayload: %v", err)
	}
	return fmt.Sprintf("%s/%s", releaseNamespace, value), nil
}
func GetReleasePayloadQueueKeyFromAnnotation ( obj interface { } , annotation , releaseNamespace string ) ( key string , err error ) { if len ( releaseNamespace ) == 0 { return " " , fmt . Errorf ( " " ) } object , ok := obj . ( runtime . Object ) if ! ok { return " " , fmt . Errorf ( " " , obj ) } value , err := GetAnnotation ( object , annotation ) if err != nil { return " " , fmt . Errorf ( " " , err ) } return fmt . Sprintf ( " " , releaseNamespace , value ) , nil }
GetReleasePayloadQueueKeyFromAnnotation returns the "namespace/name" of the
ReleasePayload to be used as the key for adding an item onto a queue or an
error if unable to generate the key.
GetReleasePayloadQueueKeyFromAnnotation returns the " namespace / name " of the ReleasePayload to be used as the key for adding an item onto a queue or an error if unable to generate the key .