{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/fabric8-maven-plugin/issues/430","repository_url":"https://api.github.com/repos/fabric8io/fabric8-maven-plugin","labels_url":"https://api.github.com/repos/fabric8io/fabric8-maven-plugin/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/fabric8-maven-plugin/issues/430/comments","events_url":"https://api.github.com/repos/fabric8io/fabric8-maven-plugin/issues/430/events","html_url":"https://github.com/fabric8io/fabric8-maven-plugin/issues/430","id":179660106,"number":430,"title":"sourceStrategy.from.name: Invalid value: \"fabric8/s2i-java\"","user":{"login":"chirino","id":103255,"avatar_url":"https://avatars.githubusercontent.com/u/103255?v=3","gravatar_id":"","url":"https://api.github.com/users/chirino","html_url":"https://github.com/chirino","followers_url":"https://api.github.com/users/chirino/followers","following_url":"https://api.github.com/users/chirino/following{/other_user}","gists_url":"https://api.github.com/users/chirino/gists{/gist_id}","starred_url":"https://api.github.com/users/chirino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chirino/subscriptions","organizations_url":"https://api.github.com/users/chirino/orgs","repos_url":"https://api.github.com/users/chirino/repos","events_url":"https://api.github.com/users/chirino/events{/privacy}","received_events_url":"https://api.github.com/users/chirino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-28T01:37:06Z","updated_at":"2016-09-28T05:35:25Z","closed_at":null,"body":"Seems fabric8/s2i-java is not a valid image stream name.  When run against OpenShift, the following:\r\n    \r\n    git clone git://github.com/fabric8-quickstarts/spring-boot-camel.git \r\n    cd spring-boot-camel\r\n    mvn clean install -Dfabric8.build.recreate=all fabric8:deploy  -Dfabric8.mode=auto\r\n\r\nfails with:\r\n\r\n[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.1.53:build (default) on project spring-boot-camel: Execution default of goal io.fabric8:fabric8-maven-plugin:3.1.53:build failed: Failure executing: POST at: https://192.168.64.2:8443/oapi/v1/namespaces/test/buildconfigs. Message: BuildConfig \"spring-boot-camel\" is invalid: spec.strategy.sourceStrategy.from.name: Invalid value: \"fabric8/s2i-java\": ImageStreamTag name contains invalid syntax. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.strategy.sourceStrategy.from.name, message=Invalid value: \"fabric8/s2i-java\": ImageStreamTag name contains invalid syntax, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=BuildConfig, name=spring-boot-camel, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=BuildConfig \"spring-boot-camel\" is invalid: spec.strategy.sourceStrategy.from.name: Invalid value: \"fabric8/s2i-java\": ImageStreamTag name contains invalid syntax, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}). -> [Help 1]"},"comment":{"url":"https://api.github.com/repos/fabric8io/fabric8-maven-plugin/issues/comments/250076069","html_url":"https://github.com/fabric8io/fabric8-maven-plugin/issues/430#issuecomment-250076069","issue_url":"https://api.github.com/repos/fabric8io/fabric8-maven-plugin/issues/430","id":250076069,"user":{"login":"rhuss","id":99080,"avatar_url":"https://avatars.githubusercontent.com/u/99080?v=3","gravatar_id":"","url":"https://api.github.com/users/rhuss","html_url":"https://github.com/rhuss","followers_url":"https://api.github.com/users/rhuss/followers","following_url":"https://api.github.com/users/rhuss/following{/other_user}","gists_url":"https://api.github.com/users/rhuss/gists{/gist_id}","starred_url":"https://api.github.com/users/rhuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhuss/subscriptions","organizations_url":"https://api.github.com/users/rhuss/orgs","repos_url":"https://api.github.com/users/rhuss/repos","events_url":"https://api.github.com/users/rhuss/events{/privacy}","received_events_url":"https://api.github.com/users/rhuss/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T05:35:25Z","updated_at":"2016-09-28T05:35:25Z","body":"Previously, the from was always considered to be a Docker image name, for which fabric8/s2i-java is perfectly valid.\r\n\r\nHowever when you change this to an `ImageStream`, it must be a [simple name](https://github.com/openshift/origin/blob/48f6a2807d7b2920b5301152cbe2e8168bb7d4bf/pkg/image/api/validation/validation.go#L37) without [registry part](https://github.com/openshift/origin/blob/48f6a2807d7b2920b5301152cbe2e8168bb7d4bf/pkg/api/helpers.go#L13).\r\n\r\nAn image stream can not have an obvious default value since it depends on your installation. So the only I way I currently see to use an `ImageStream` or `ImageStreamTag` as base image to provide it with the configuration: Either `-Dfabric8.generator.from` or within a `<generator><config><spring-boot>` config section."}}
{"actor":{"display_login":"rhuss"}}