Skip to content

Instantly share code, notes, and snippets.

View mohammedzee1000's full-sized avatar

Mohammed Ahmed mohammedzee1000

View GitHub Profile
@mohammedzee1000
mohammedzee1000 / app-describe-bug
Created June 10, 2021 10:58
Missing protocol in `odo app describe` for ingresses in openshift cluster
> # Cluster is the openshift 4.7 cluster on PSI
> odo create nodejs
Devfile Object Validation
✓ Checking devfile existence [30121ns]
✓ Creating a devfile component from registry: DefaultDevfileRegistry [41076ns]
Validation
✓ Validating if devfile name is correct [30878ns]
Please use `odo push` command to create the component with source deployed
> odo url list
@mohammedzee1000
mohammedzee1000 / odo-goflags-gomod-gotest-modvendor
Last active September 10, 2020 09:34
weird behaviour in go test with odo
# make test has -mod=vendor for go test
❯ podman build -t test -f openshift-ci/build-root/Dockerfile .
❯ podman run -ti -v `pwd`:/go/src/github.com/openshift/origin test bash
[root@8115898a4072 origin]# unset GOFLAGS
GOFLAGS=-mod=vendor make test
go test -mod=vendor -race github.com/openshift/odo/cmd/cli-doc github.com/openshift/odo/cmd/odo github.com/openshift/odo/pkg/application github.com/openshift/odo/pkg/application/labels github.com/openshift/odo/pkg/auth github.com/openshift/odo/pkg/catalog github.com/openshift/odo/pkg/component github.com/openshift/odo/pkg/component/labels github.com/openshift/odo/pkg/config github.com/openshift/odo/pkg/debug github.com/openshift/odo/pkg/devfile github.com/openshift/odo/pkg/devfile/adapters github.com/openshift/odo/pkg/devfile/adapters/common github.com/openshift/odo/pkg/devfile/adapters/docker github.com/openshift/odo/pkg/devfile/adapters/docker/component github.com/openshift/odo/pkg/devfile/adapters/docker/storage github.com/openshift/odo/pkg/devfile/adapters/docke
@mohammedzee1000
mohammedzee1000 / devfile schema.json
Created December 11, 2019 06:15
devfile schema to go struct experiment
{
"meta:license": [
" Copyright (c) 2012-2019 Red Hat, Inc.",
" This program and the accompanying materials are made",
" available under the terms of the Eclipse Public License 2.0",
" which is available at https://www.eclipse.org/legal/epl-2.0/",
" SPDX-License-Identifier: EPL-2.0",
" Contributors:",
" Red Hat, Inc. - initial API and implementation"
],

Keybase proof

I hereby claim:

  • I am mohammedzee1000 on github.
  • I am mzee1000 (https://keybase.io/mzee1000) on keybase.
  • I have a public key whose fingerprint is 1DC4 6DF4 1C73 6D48 5D95 9F9B 147A 8569 AFC5 E9ED

To claim this, I am signing this object:

#!/bin/bash
set -eu
shopt -s nullglob
readonly base_dir=/var/local/docker-registry
readonly output_dir=$(mktemp -d -t trace-images-XXXX)
readonly jq=/tmp/jq
readonly repository_dir=$base_dir/repositories