Skip to content

Instantly share code, notes, and snippets.

@phantomjinx
Created June 12, 2019 11:27
Show Gist options
  • Save phantomjinx/fa1f10fac4cc7a437d94062d14dd3388 to your computer and use it in GitHub Desktop.
Save phantomjinx/fa1f10fac4cc7a437d94062d14dd3388 to your computer and use it in GitHub Desktop.
Suite of syndesis building operator scripts
#!/bin/bash
syndesis build \
--local \
-m operator \
-f \
-i
#!/bin/bash
cd ~/go/src/github.com/syndesisio/syndesis/install/operator
CGO_ENABLED=0 go build -o ./syndesis-operator ./cmd/syndesis-operator
#!/bin/bash
SYNDESIS="$HOME/programming/java/syndesis"
oc create -f $SYNDESIS/install/operator/deploy/syndesis-operator.yml
#!/bin/bash
syndesis=$(cat << EOT
apiVersion: "syndesis.io/v1alpha1"
kind: "Syndesis"
metadata:
name: "app"
EOT
)
echo "${syndesis}" | cat | oc create -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment