<p>Please, any idea why deleting the secret does not work?</p>

<p>Thanks!</p>

<pre><code>Cloning repository...

Cloning into '/builds/systemxy/actuator-sample'...

Checking out e503a7da as master...

Skipping Git submodules setup

$ echo "$GOOGLE_KEY" &gt; key.json

$ gcloud auth activate-service-account --key-file key.json

Activated service account credentials for: [23232333-compute@developer.gserviceaccount.com]

$ gcloud config set compute/zone europe-west1-c
Updated property [compute/zone].

$ gcloud config set project actuator-sample-224932
Updated property [core/project].

$ gcloud config set container/use_client_certificate True
Updated property [container/use_client_certificate].

$ gcloud container clusters get-credentials actuator-sample
Fetching cluster endpoint and auth data.
kubeconfig entry generated for actuator-sample.

$ kubectl delete secret registry.gitlab.com
**Error from server (Forbidden): secrets "registry.gitlab.com" is forbidden: User "client" cannot delete secrets in the namespace "default"**
**ERROR: Job failed: exit code 1`enter code here**
</code></pre>

System xy
<p>It's kind of odd since <code>gcloud container clusters get-credentials actuator-sample
</code> should set the right credentials and the right context. However, it seems that you may have the wrong 'current context' in your <code>~/.kube/config</code> file. You can check with:</p>

<pre><code>$ kubectl config get-contexts
</code></pre>

<p>Since it looks like you are using GKE, your current context should be something like this:</p>

<pre><code>CURRENT   NAME                                         CLUSTER                                      AUTHINFO                                     NAMESPACE
*         gke_&lt;project_name&gt;_&lt;region&gt;-&lt;cluster-name&gt;   gke_&lt;project_name&gt;_&lt;region&gt;-&lt;cluster-name&gt;   gke_&lt;project_name&gt;_&lt;region&gt;-&lt;cluster-name&gt;
</code></pre>

<p>If not you have to choose that context:</p>

<pre><code>$ kubectl config use-context gke_&lt;project_name&gt;_&lt;region&gt;-&lt;cluster-name&gt;
</code></pre>
