Skip to content

Instantly share code, notes, and snippets.

View dipak-pawar's full-sized avatar

Dipak Pawar dipak-pawar

  • Red Hat
  • Banglore
View GitHub Profile
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM3VENDQWRXZ0F3SUJBZ0lCQVRBTkJna3Foa2lHOXcwQkFRc0ZBREFtTVNRd0lnWURWUVFEREJ0cGJtZHkKWlhOekxXOXdaWEpoZEc5eVFERTFOamt3TXpreE1UUXdIaGNOTVRrd09USXhNRFF4TVRVeldoY05NakV3T1RJdwpNRFF4TVRVMFdqQW1NU1F3SWdZRFZRUUREQnRwYm1keVpYTnpMVzl3WlhKaGRHOXlRREUxTmprd016a3hNVFF3CmdnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUJEd0F3Z2dFS0FvSUJBUURicXdhOWUvMm82RGh2VXdkZE9sQzkKLzA0alV4OXpNSGVSRFZlV2FqbVRMVm53aGNWbEtaSU9XTUFtOXJGZUFPYVJ0N2xCanhMVlhnOS9qNVl4UWxEbwpRT3NOWXVUTHJiMlZyTHdIWWw0TEtmVkpDcUlvNkVSOGFjM0w5dG9KdTNkOEgrMldTeW4rQWk2M1doTjdVYnk1ClU4U0pGYzY5YWhQRXdZUnZhdHBKb2FldFd4aVhZb0xoY0luUm9xcTJXcDExVWpkaGs3MkJmT3RvRVFXaHNxWm4KY0l2SDZEWFZhVUVXVG1KU0IrZm5IdTYyRlppTlRNU3NRN0E3S3I1ZEVrWmE4blcvalF1RGZ2ak0xZ2tnaWhseAozMGRCZXFHYkhwbHVPeUcxR0c1OTNDSTBqTUI5VTRFMFdZWEtRS29CeVpmbGUyZUVXbnlIdGRtbVFtcnBRLzA3CkFnTUJBQUdqSmpBa01BNEdBMVVkRHdFQi93UUVBd0lDcERBU0JnTlZIUk1CQWY4RUNEQUdBUUgvQWdFQU1BMEcKQ1NxR1NJYjNEUUVCQ3dVQUE0SUJBUUI2V1JIRG1uNXBiT1Fqd3c2
#!/usr/bin/env bash
user_help () {
echo "Creates KubeFedCluster"
echo "options:"
echo "-t, --type joining cluster type (host or member)"
echo "-mn, --member-ns namespace where member-operator is running"
echo "-hn, --host-ns namespace where host-operator is running"
echo "-s, --single-cluster running both operators on single cluster"
exit 0
#!/usr/bin/env bash
user_help () {
echo "Creates KubeFedCluster"
echo "options:"
echo "-t, --type joining cluster type (host or member)"
echo "-mn, --member-ns namespace where member-operator is running"
echo "-hn, --host-ns namespace where host-operator is running"
exit 0
}
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
capabilities: Basic Install
name: toolchain-enabler.v0.0.1
namespace: placeholder
spec:
apiservicedefinitions: {}
customresourcedefinitions:

Create CRD

cat >> jenkins-crd.yaml <<EOF apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: build.codeready.toolchain spec: group: codeready.toolchain names:

Name : admin-user
Description : Create admin user and assign the cluster-admin role to it.
Url :
Openshift Version : >=3.7.0
Enabled : true
Priority : 0
Name : anyuid
Description : Changes the default security context constraints to allow pods to run as any user.
Url : https://docs.okd.io/latest/creating_images/guidelines.html#openshift-origin-specific-guidelines
F8_POSTGRES_DATABASE=postgres /home/dipak/go/src/github.com/fabric8-services/fabric8-tenant/bin/fabric8-tenant -migrateDatabase
INFO[0000] Using fabric8-tenant-user.yml of version: eb5a8a4
INFO[0000] Using fabric8-tenant-jenkins.yml of version: e9b2395
INFO[0000] Using fabric8-tenant-jenkins-quotas.yml of version: 53936c6
INFO[0000] Using fabric8-tenant-deploy.yml of version: eb5a8a4
INFO[0000] Using fabric8-tenant-che-mt.yml of version: 53936c6
INFO[0000] Using fabric8-tenant-che.yml of version: 53936c6
INFO[0000] Using fabric8-tenant-che-quotas.yml of version: 53936c6
INFO[0000] Current version 6. Nothing to update. current_version=6 next_version=7 pkg="github.com/fabric8-services/fabric8-tenant/migration"
INFO: Running test: test-with-minishift
F8_POSTGRES_DATABASE=postgres /home/dipak/go/src/github.com/fabric8-services/fabric8-tenant/bin/fabric8-tenant -migrateDatabase
INFO[0000] Using fabric8-tenant-user.yml of version: eb5a8a4
INFO[0000] Using fabric8-tenant-jenkins.yml of version: e9b2395
INFO[0000] Using fabric8-tenant-jenkins-quotas.yml of version: 53936c6
INFO[0000] Using fabric8-tenant-deploy.yml of version: eb5a8a4
INFO[0000] Using fabric8-tenant-che-mt.yml of version: 53936c6
INFO[0000] Using fabric8-tenant-che.yml of version: 53936c6
INFO[0000] Using fabric8-tenant-che-quotas.yml of version: 53936c6
INFO[0000] Current version 6. Nothing to update. current_version=6 next_version=7 pkg="github.com/fabric8-services/fabric8-tenant/migration"
INFO: Running test: test-with-minishift
F8_POSTGRES_DATABASE=postgres /home/dipak/go/src/github.com/fabric8-services/fabric8-tenant/bin/fabric8-tenant -migrateDatabase
INFO[0000] Using fabric8-tenant-user.yml of version: eb5a8a4
INFO[0000] Using fabric8-tenant-jenkins.yml of version: e9b2395
INFO[0000] Using fabric8-tenant-jenkins-quotas.yml of version: 53936c6
INFO[0000] Using fabric8-tenant-deploy.yml of version: eb5a8a4
INFO[0000] Using fabric8-tenant-che-mt.yml of version: 53936c6
INFO[0000] Using fabric8-tenant-che.yml of version: 53936c6
INFO[0000] Using fabric8-tenant-che-quotas.yml of version: 53936c6
ERRO[0000] ERROR: Unable to open connection to database read tcp [::1]:54900->[::1]:5432: read: connection reset by peer
INFO[0000] Retrying to connect in 1s...
-- minishift version: v1.27.0+707887e
-- Starting profile 'minishift'
Found binary path at /usr/local/bin/docker-machine-driver-kvm
Launching plugin server for driver kvm
Plugin server listening at address 127.0.0.1:45939
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minishift) Calling .GetState