- Gitlab Premium v14.4.0
- Runners installed v14.4.0 and v14.5.0
- Gitlab agent v14.5.0 installed in EKS cluster (have also tried with v14.4.0 and stable)
- 2 projects in group as follows:
-unixhosting (group)
–infrastructure (subgroup)
---- gitlab-agent (project)
---- nginx-gitops-project (project)
gitlab-agent (project) has this config.yaml file:
observability:
logging:
level: debug
ci_access:
groups:
- id: unixhosting/infrastructure
projects:
- id: unixhosting/infrastructure/nginx-gitops-project
nginx-gitops-project (project) AND gitlab-agent (project) have same .gitlab-ci.yml file:
deploy:
tags:
- docker
image:
name: bitnami/kubectl:latest
entrypoint: [""]
script:
- kubectl config get-contexts
gitlab-agent CI pipeline returns:
$ kubectl config get-contexts
23CURRENT NAME CLUSTER AUTHINFO NAMESPACE
24 unixhosting/infrastructure/gitlab-agent:eks-cluster gitlab agent:7
nginx-gitops-project CI pipeline does not return a kubectl context