Re: How to identify OpenShift v4?

2019-10-03 Thread Gabe Montero
Cool glad it helped.

On Thu, Oct 3, 2019 at 4:31 PM Andre Dietisheim  wrote:

> Hi Gabe
>
> great pointers, exactly what I needed, thanks a lot!
>
> Cheers
> Andre
> Am 03.10.19 um 18:44 schrieb Gabe Montero:
>
>
>
> On Thu, Oct 3, 2019 at 11:47 AM Andre Dietisheim 
> wrote:
>
>> Hi
>>
>> Since the endpoint "/version/openshift" is gone, how can a client
>> library identify the OpenShift version it deals with?
>>
>
> I believe "/version" still exists, just not "/version/openshift".
>
> Here is how the openshift jenkins login plugin does it:
>
>
> https://github.com/openshift/jenkins-openshift-login-plugin/blob/master/src/main/java/org/openshift/jenkins/plugins/openshiftlogin/OpenShiftOAuth2SecurityRealm.java#L640-L678
>
> Here is how `oc` does it:
>
>
> https://github.com/openshift/oc/blob/master/pkg/cli/version/version.go#L109-L172
> and
>
> https://github.com/openshift/oc/blob/master/vendor/k8s.io/client-go/discovery/discovery_client.go#L407-L418
>
> where you can see it going after /version
>
>>
>> Thanks for your pointers!
>>
>> Cheers
>> André
>>
>>
>> ___
>> dev mailing list
>> dev@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>>
>
___
dev mailing list
dev@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev


Re: How to identify OpenShift v4?

2019-10-03 Thread Gabe Montero
On Thu, Oct 3, 2019 at 11:47 AM Andre Dietisheim 
wrote:

> Hi
>
> Since the endpoint "/version/openshift" is gone, how can a client
> library identify the OpenShift version it deals with?
>

I believe "/version" still exists, just not "/version/openshift".

Here is how the openshift jenkins login plugin does it:

https://github.com/openshift/jenkins-openshift-login-plugin/blob/master/src/main/java/org/openshift/jenkins/plugins/openshiftlogin/OpenShiftOAuth2SecurityRealm.java#L640-L678

Here is how `oc` does it:

https://github.com/openshift/oc/blob/master/pkg/cli/version/version.go#L109-L172
and
https://github.com/openshift/oc/blob/master/vendor/k8s.io/client-go/discovery/discovery_client.go#L407-L418

where you can see it going after /version

>
> Thanks for your pointers!
>
> Cheers
> André
>
>
> ___
> dev mailing list
> dev@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>
___
dev mailing list
dev@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev


Re: s2i spec, doc ?

2018-06-21 Thread Gabe Montero
Additionally, you have
https://docs.openshift.org/latest/creating_images/s2i.html#creating-images-s2i

On Thu, Jun 21, 2018 at 5:24 AM, Tako Schotanus  wrote:

> THis is probably a good place to start Charles: https://github.com/
> openshift/source-to-image
>
> On Thu, Jun 21, 2018 at 10:24 AM Charles Moulliard 
> wrote:
>
>> Hi,
>>
>> Excepted the API and Controller [1], I haven't been able to find another
>> source of information. So my queation is : Is there a document
>> presenting and explaining the S2I spec ?
>>
>> Is it possible to discuss/collaborate with Origin team in order to
>> propose enhancements ? How ?
>>
>> [1] https://github.com/openshift/origin/blob/master/
>> pkg/build/apis/build/v1/defaults.go
>> [2] Build Type : https://github.com/openshift/api/blob/master/
>> build/v1/types.go, Controller: https://github.com/openshift/origin/blob/
>> master/pkg/build/controller/buildconfig/buildconfig_controller.go
>>
>> Regards
>>
>> Charles
>> ___
>> dev mailing list
>> dev@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>>
>
>
> --
>
> TAKO SCHOTANUS
>
> SENIOR SOFTWARE ENGINEER
>
> Red Hat
>
> 
> 
>
>
> ___
> dev mailing list
> dev@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>
>
___
dev mailing list
dev@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev


Re: OpenShift Origin v1.2.0-rc1

2016-04-22 Thread Gabe Montero
Would this be an example of such an issue:

E0422 13:18:25.7715051184 manager.go:1858] Failed to create pod infra
container: ImagePullBackOff; Skipping pod
"docker-registry-1-deploy_default(257b451d-08ae-11e6-bf78-68f7287398a7)"
E0422 13:18:25.7715581184 pod_workers.go:138] Error syncing pod
257b451d-08ae-11e6-bf78-68f7287398a7, skipping: failed to "StartContainer"
for "POD" with ImagePullBackOff: "Back-off pulling image
\"openshift/origin-pod:v1.2.0-rc1-5-g8fb838f\""

I ran into this this by:
1) running `openshift start
--write-config=/home/gmontero/openshift.local.config`
2) then `sudo ./openshift start
--master-config=/home/gmontero/openshift.local.config/master/master-config.yaml
--node-config=/home/gmontero/openshift.local.config/node-gmontero.rh/node-config.yaml`
3) then `oadm registry -n default
--config=/home/gmontero/master/admin.kubeconfig`

I've also tried permutations using --latest-images=true for both master and
registry starts, as well as clearing out all openshift related images from
my local docker daemon before running those commands.

If I should open an issue, let me know whatever debug / info would be of
use.

thanks,
gabe

On Thu, Apr 21, 2016 at 6:17 PM, Clayton Coleman 
wrote:

> The first release candidate for 1.2.0 has been pushed to GitHub
> https://github.com/openshift/origin/releases/tag/v1.2.0-rc1
>
> Because this is the first official release we've done using a semantic
> version tag, it's possible that some images / code may break trying to
> pull "v1.2.0-rc1".  If you encounter any problems please file an issue
> and we'll correct it for v1.2.0-rc2.
>
> Thanks!
>
> ___
> dev mailing list
> dev@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>
___
dev mailing list
dev@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev