Skip to content

Instantly share code, notes, and snippets.

View odra's full-sized avatar
💻

odra odra

💻
  • São Paulo, Brazil
View GitHub Profile
realmCr := &v1alpha1.KeycloakRealm{
TypeMeta: metav1.TypeMeta{
Kind: "KeycloakRealm",
APIVersion: "aerogear.org/v1alpha1",
},
ObjectMeta: metav1.ObjectMeta{
Name: "keycloak-realm-test",
Namespace: ns,
},
Status:v1alpha1.KeycloakRealmStatus{
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: keycloak-operator-reader
subjects:
- kind: ServiceAccount
name: keycloak-operator
roleRef:
kind: Role
name: cluster-reader
#copy the template file
make template-copy
#build the image
operator-sdk build docker.io/$org/tutorial-web-app-operator:latest
#push it
docker push docker.io/$org/tutorial-web-app-operator:latest
#deploy all required resources - you may need to change the image name (also set the openshift_host var to the correct value)
apiVersion: "integreatly.org/v1alpha1"
kind: "WebApp"
metadata:
name: "tutorial-web-app-operator"
spec:
templates:
-
template:
path: "/home/tutorial-web-app-operator/deploy/template/oauth-client.yml"
paramaters:
@odra
odra / single.yml
Created October 16, 2018 16:17
app deployment operator
apiVersion: "integreatly.org/v1alpha1"
kind: "WebApp"
metadata:
name: "tutorial-web-app-operator"
spec:
template:
path: "/home/tutorial-web-app-operator/deploy/template/tutorial-web-app.yml"
paramaters:
OAUTH_CLIENT_ID: tutorial-web-app
IMAGE: "quay.io/integreatly/tutorial-web-app"
@odra
odra / images.py
Created September 14, 2018 11:02
import sys
import json
import os
images = []
def get_images(path):
local_images = []
Showing Recent Messages
Build system information
error: Multiple commands produce '/Users/jenkins/Library/Developer/Xcode/DerivedData/AeroGearPush-clqjcsuowywvsebtmfmchebkfdzw/Build/Products/Debug-iphonesimulator/AeroGearPush.framework/Headers/AeroGearPush-Swift.h':
1) Target 'AeroGearPush' (project 'AeroGearPush') has copy command from '/Users/jenkins/tests/aerogear-ios-push/AeroGearPush/AeroGearPush-Swift.h' to '/Users/jenkins/Library/Developer/Xcode/DerivedData/AeroGearPush-clqjcsuowywvsebtmfmchebkfdzw/Build/Products/Debug-iphonesimulator/AeroGearPush.framework/Headers/AeroGearPush-Swift.h'
2) Target 'AeroGearPush' (project 'AeroGearPush'): Ditto /Users/jenkins/Library/Developer/Xcode/DerivedData/AeroGearPush-clqjcsuowywvsebtmfmchebkfdzw/Build/Products/Debug-iphonesimulator/AeroGearPush.framework/Headers/AeroGearPush-Swift.h /Users/jenkins/Library/Developer/Xcode/DerivedData/AeroGearPush-clqjcsuowywvsebtmfmchebkfdzw/Build/Intermediates.noindex/AeroGearPush.build/Debug-iphonesimulator/AeroGearPush.build/Ob
@odra
odra / install-py.sh
Last active August 23, 2018 09:00
minishift python
tce-load -w -i python.tcz gmp-dev.tcz python-dev.tcz compiletc.tcz
wget https://bootstrap.pypa.io/get-pip.py && sudo ptyhon get-pip.py
#Notes:
#minishift master config file: /var/lib/minishift/openshift.local.config/master/master-config.yaml
#minishift openshift restart
{
"apiVersion": "enmasse.io/v1alpha1",
"kind": "AddressSpace",
"metadata": {
"name": "myspace",
"namespace": "mymq",
"labels": {
"addressSpaceType": "standard",
"namespace": "mymq"
},
@odra
odra / gist:16ca839001dae522b22ec238efa0b3a1
Last active July 20, 2018 16:09 — forked from dmueller2001/gist:502b1237f783e2062ed5c93b7d7174da
Operator Framework SIG Agenda and Meeting Notes & Dial-in Details - July 20 2018
Operator Framework SIG Meeting Notes & Agenda
Attendees:
Diane Mueller/Red Hat
Sebastien Pahl/Red Hat
Tom Chance/Red Hat
Aleksandar_Lazic/ME2Digital
Shawn Hurley/
Leonardo Rossetti/Red Hat