{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/harbor/issues/2009","repository_url":"https://api.github.com/repos/vmware/harbor","labels_url":"https://api.github.com/repos/vmware/harbor/issues/2009/labels{/name}","comments_url":"https://api.github.com/repos/vmware/harbor/issues/2009/comments","events_url":"https://api.github.com/repos/vmware/harbor/issues/2009/events","html_url":"https://github.com/vmware/harbor/issues/2009","id":221483982,"number":2009,"title":"Can not create config maps when install Harbor on Kubernetes ( v1.3.3 ), error message show \" the ConfigMap  is invalid \"","user":{"login":"willstudy","id":12168193,"avatar_url":"https://avatars0.githubusercontent.com/u/12168193?v=3","gravatar_id":"","url":"https://api.github.com/users/willstudy","html_url":"https://github.com/willstudy","followers_url":"https://api.github.com/users/willstudy/followers","following_url":"https://api.github.com/users/willstudy/following{/other_user}","gists_url":"https://api.github.com/users/willstudy/gists{/gist_id}","starred_url":"https://api.github.com/users/willstudy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willstudy/subscriptions","organizations_url":"https://api.github.com/users/willstudy/orgs","repos_url":"https://api.github.com/users/willstudy/repos","events_url":"https://api.github.com/users/willstudy/events{/privacy}","received_events_url":"https://api.github.com/users/willstudy/received_events","type":"User","site_admin":false},"labels":[{"id":318193284,"url":"https://api.github.com/repos/vmware/harbor/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-13T07:45:06Z","updated_at":"2017-04-16T05:36:54Z","closed_at":null,"body":"At first, modify some basic configs, included `make/harbor.cfg`,`make/kubernetes/**/*.rc.yaml` and so on.\r\n\r\nThen I run this command\r\n```\r\npython make/kubernetes/prepare\r\n```\r\nand some files generated. But some errors happens when I exec\r\n```\r\nkubectl apply -f make/kubernetes/jobservice/jobservice.cm.yaml\r\n```\r\nOutput is \r\n```\r\n[root@XXX ]# kubectl apply -f make/kubernetes/jobservice/jobservice.cm.yaml\r\nThe ConfigMap \"harbor-jobservice-config\" is invalid.\r\n\r\n* data[MYSQL_PORT]: Invalid value: \"MYSQL_PORT\": must have at most 253 characters and match regex \\.?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\r\n* data[REGISTRY_URL]: Invalid value: \"REGISTRY_URL\": must have at most 253 characters and match regex \\.?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\r\n* data[SECRET_KEY]: Invalid value: \"SECRET_KEY\": must have at most 253 characters and match regex \\.?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\r\n* data[EXT_ENDPOINT]: Invalid value: \"EXT_ENDPOINT\": must have at most 253 characters and match regex \\.?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\r\n* data[GODEBUG]: Invalid value: \"GODEBUG\": must have at most 253 characters and match regex \\.?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\r\n* data[LOG_LEVEL]: Invalid value: \"LOG_LEVEL\": must have at most 253 characters and match regex \\.?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\r\n```\r\n```make/kubernetes/jobservice/jobservice.cm.yaml``` file output:\r\n```\r\napiVersion: v1\r\nkind: ConfigMap\r\nmetadata:\r\n  name: harbor-jobservice-config\r\ndata:\r\n  MYSQL_HOST: mysql\r\n  MYSQL_PORT: \"3306\"\r\n  MYSQL_USR: root\r\n  MYSQL_PWD: \"rponline\"\r\n  UI_SECRET: \"xGmyDfwYbwUPLcVX\"\r\n  SECRET_KEY: \"0GFvILdJ5Wj7oJkQ\"\r\n  CONFIG_PATH: /etc/jobservice/app.conf\r\n  REGISTRY_URL: http://registry:5000\r\n  VERIFY_REMOTE_CERT: \"on\"\r\n  MAX_JOB_WORKERS: \"3\"\r\n  LOG_LEVEL: debug\r\n  LOG_DIR: /var/log/jobs\r\n  GODEBUG: netdns=cgo\r\n  EXT_ENDPOINT: \"http:/XXX.com\"\r\n  TOKEN_URL: http://ui\r\n  config: |\r\n    appname = jobservice\r\n    runmode = dev\r\n    [dev]\r\n    httpport = 80\r\n```\r\n\r\nCould anyone help me? Thanks very much."},"comment":{"url":"https://api.github.com/repos/vmware/harbor/issues/comments/294334808","html_url":"https://github.com/vmware/harbor/issues/2009#issuecomment-294334808","issue_url":"https://api.github.com/repos/vmware/harbor/issues/2009","id":294334808,"user":{"login":"willstudy","id":12168193,"avatar_url":"https://avatars0.githubusercontent.com/u/12168193?v=3","gravatar_id":"","url":"https://api.github.com/users/willstudy","html_url":"https://github.com/willstudy","followers_url":"https://api.github.com/users/willstudy/followers","following_url":"https://api.github.com/users/willstudy/following{/other_user}","gists_url":"https://api.github.com/users/willstudy/gists{/gist_id}","starred_url":"https://api.github.com/users/willstudy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willstudy/subscriptions","organizations_url":"https://api.github.com/users/willstudy/orgs","repos_url":"https://api.github.com/users/willstudy/repos","events_url":"https://api.github.com/users/willstudy/events{/privacy}","received_events_url":"https://api.github.com/users/willstudy/received_events","type":"User","site_admin":false},"created_at":"2017-04-16T05:36:54Z","updated_at":"2017-04-16T05:36:54Z","body":"Can create config maps in kubernetes 1.5.6, but errors occurred when created rc using these config maps.\r\n```\r\n# kc get configmaps\r\nNAME                       DATA      AGE\r\nharbor-jobservice-config   16        3m\r\nharbor-mysql-config        1         3m\r\nharbor-nginx-config        3         3m\r\nharbor-registry-config     2         3m\r\nharbor-ui-config           30        3m\r\n```\r\nErrors\r\n```\r\n# kubectl apply -f make/kubernetes/mysql/mysql.rc.yaml\r\nThe ReplicationController \"mysql-rc\" is invalid: spec.template.spec.containers[0].env[0].valueFrom: Invalid value: \"\": may not be specified when `value` is not empty\r\n```\r\nThe `harbor-mysql-config` output is\r\n```\r\n# kc describe configmaps harbor-mysql-config \r\nName:\t\tharbor-mysql-config\r\nNamespace:\tdefault\r\nLabels:\t\t<none>\r\nAnnotations:\t<none>\r\n\r\nData\r\n====\r\nMYSQL_ROOT_PASSWORD:\t8 bytes\r\n```\r\nThe `mysql.cm.yaml` output is \r\n```\r\n# cat make/kubernetes/mysql/mysql.cm.yaml \r\napiVersion: v1\r\nkind: ConfigMap\r\nmetadata:\r\n  name: harbor-mysql-config\r\ndata:\r\n  MYSQL_ROOT_PASSWORD: rponline\r\n```\r\nKubernetes version \r\n```\r\n#  kubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"5\", GitVersion:\"v1.5.6\", GitCommit:\"114f8911f9597be669a747ab72787e0bd74c9359\", GitTreeState:\"clean\", BuildDate:\"2017-03-28T13:54:20Z\", GoVersion:\"go1.7.4\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"5\", GitVersion:\"v1.5.6\", GitCommit:\"114f8911f9597be669a747ab72787e0bd74c9359\", GitTreeState:\"clean\", BuildDate:\"2017-03-28T13:36:31Z\", GoVersion:\"go1.7.4\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n@kdada  Could you help me what's wrong with the problem ？ Thanks very much "}}
{"actor":{"display_login":"willstudy"}}