chore: Tweak runner-id annotation name and the annotation prefix to be more consistent

This commit is contained in:
Yusuke Kuoka 2022-03-02 02:36:57 +00:00
parent 0ba3cad6c2
commit 1917cf90c4
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ const (
// See https://github.com/google/knative-gcp/issues/378 // See https://github.com/google/knative-gcp/issues/378
runnerPodFinalizerName = "actions.summerwind.dev/runner-pod" runnerPodFinalizerName = "actions.summerwind.dev/runner-pod"
annotationKeyPrefix = "actions/" annotationKeyPrefix = "actions-runner/"
AnnotationKeyLastRegistrationCheckTime = "actions-runner-controller/last-registration-check-time" AnnotationKeyLastRegistrationCheckTime = "actions-runner-controller/last-registration-check-time"
@ -28,7 +28,7 @@ const (
// hang like forever. // hang like forever.
AnnotationKeyUnregistrationRequestTimestamp = annotationKeyPrefix + "unregistration-request-timestamp" AnnotationKeyUnregistrationRequestTimestamp = annotationKeyPrefix + "unregistration-request-timestamp"
AnnotationKeyRunnerID = annotationKeyPrefix + "runner-id" AnnotationKeyRunnerID = annotationKeyPrefix + "id"
// DefaultUnregistrationTimeout is the duration until ARC gives up retrying the combo of ListRunners API (to detect the runner ID by name) // DefaultUnregistrationTimeout is the duration until ARC gives up retrying the combo of ListRunners API (to detect the runner ID by name)
// and RemoveRunner API (to actually unregister the runner) calls. // and RemoveRunner API (to actually unregister the runner) calls.