entries
function in the spec so we can get object keys
and values
in the same execution context.
v1
&& involvedObject.kind == Service
&& involvedObject.name==my-name
].{ firstTimestamp: firstTimestamp, lastTimestamp: lastTimestamp, count: count, reason: reason, message: message }
search([-x:], [0, 1, 2, 3]) -> [2, 3]
where x is a number - the last x entries
for the last 5 you'd do something like
resources[?involvedObject.apiVersion == v1 && involvedObject.kind == Service && involvedObject.name==my-name].{ firstTimestamp: firstTimestamp, lastTimestamp: lastTimestamp, count: count, reason: reason, message: message }[-5:]
...at least that's what I think you'd have to do
{
"tags": {
"private_password_reset": {
"tag_name": "PasswordResetSettings"
},
"users": {
"tag_name": "users"
}
}
}
result should be: PasswordResetSettings, users
join(', ', tags.*.tag_name)
^[8-9]\d{7}$
[89]\d{7}
[89]\\d{7}
^[89]\\d{7}$
then somewhere in your code you should be doing new Regex(params, 'm')
^\+\d{2}|[89][0-9]{7}$