From 59bb0382d9930ae1add3d608962066f32b1aa519 Mon Sep 17 00:00:00 2001 From: Timo Furrer Date: Tue, 14 Mar 2023 08:52:58 +0100 Subject: [PATCH] Add deploy token reconciliation limitation to function doc --- gitlab/resource_deploytoken.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gitlab/resource_deploytoken.go b/gitlab/resource_deploytoken.go index 0076fd3b..d7ba790c 100644 --- a/gitlab/resource_deploytoken.go +++ b/gitlab/resource_deploytoken.go @@ -94,9 +94,8 @@ func (dk *deployToken) Delete(_ context.Context) error { // Reconcile makes sure the desired state in this object (called "req" here) becomes // the actual state in the backing Git provider. // -// If req doesn't exist under the hood, it is created (actionTaken == true). -// If req doesn't equal the actual state, the resource will be updated (actionTaken == true). -// If req is already the actual state, this is a no-op (actionTaken == false). +// The deploy token cannot be retrieved from the GitLab, +// consequently we have to re-create the deploy token in every reconcile call. // // The internal API object will be overridden with the received server data if actionTaken == true. func (dk *deployToken) Reconcile(ctx context.Context) (bool, error) {