Closed vvanouytsel closed 3 years ago
It seems cannot read docker.registry
from jenkins-x-docker-registry
.
https://github.com/jenkins-x/jx/blob/master/pkg/cmd/step/syntax/step_syntax_effective.go#L172
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale
I have also booted jx on my local kubernetes cluster and I get this error eveytime I want to create a quickstart (in container logs)
error: Missing option: --docker-registry
My configmap is not empty, but no usefull registery is included:
$ kubectl get cm -o yaml jenkins-x-docker-registry -n jx
apiVersion: v1
data:
docker.registry: ""
kind: ConfigMap
metadata:
annotations:
expose.config.fabric8.io/clusterip-port-if-empty-key: docker.registry
jenkins.io/chart: env
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","data":{"docker.registry":null},"kind":"ConfigMap","metadata":{"annotations":{"expose.config.fabric8.io/clusterip-port-if-empty-key":"docker.registry","jenkins.io/chart":"env"},"labels":{"jenkins.io/chart-release":"jenkins-x","jenkins.io/namespace":"jx","jenkins.io/version":"1"},"name":"jenkins-x-docker-registry","namespace":"jx"}}
creationTimestamp: "2020-07-10T15:54:51Z"
labels:
jenkins.io/chart-release: jenkins-x
jenkins.io/namespace: jx
jenkins.io/version: "1"
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:data:
.: {}
f:docker.registry: {}
f:metadata:
f:annotations:
.: {}
f:expose.config.fabric8.io/clusterip-port-if-empty-key: {}
f:jenkins.io/chart: {}
f:kubectl.kubernetes.io/last-applied-configuration: {}
f:labels:
.: {}
f:jenkins.io/chart-release: {}
f:jenkins.io/namespace: {}
f:jenkins.io/version: {}
manager: kubectl
operation: Update
time: "2020-07-10T15:54:51Z"
name: jenkins-x-docker-registry
namespace: jx
resourceVersion: "3615245"
selfLink: /api/v1/namespaces/jx/configmaps/jenkins-x-docker-registry
uid: 0e37f992-20b5-4399-bf5f-98d738dad9fd
$
$ jx version
Version 2.1.98
Commit a6747c4
Build date 2020-07-09T15:16:45Z
Go version 1.13.8
Git tree state clean
/remove-lifecycle stale
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Provide feedback via https://jenkins-x.io/community.
/close
@jenkins-x-bot: Closing this issue.
Summary
Running
jx boot
in combination with thekubernetes
provider and using the internal docker registry results in an empty configmapjenkins-x-docker-registry
.The message
error: Missing option: --docker-registry
is thrown when creating quickstart projects.In order to work around this issue we can manually edit the configmap and specify the service address of the docker registry.
We should populate the configmap automatically with the service address when the user uses the local docker registry.
Steps to reproduce the behavior
Specify the
kubernetes
provider in thejx-requirements.yml
file and do not configure an external docker registry.Expected behavior
Configmap
jenkins-x-docker-registry
configured with the service address of the internal docker registryActual behavior
Cofigmap
jenkins-x-docker-registry
is empty and quickstart projects fail with the messageerror: Missing option: --docker-registry
.Jx version
The output of
jx version
is:Jenkins type
Kubernetes cluster
AKS cluster created via the Azure portal.
Operating system / Environment
Ubuntu 18.04.4 LTS