File tree Expand file tree Collapse file tree 6 files changed +47
-3
lines changed Expand file tree Collapse file tree 6 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 1- .PHONY : all build lint
1+ .PHONY : all build gen-demo  lint
22all : build
33
44build :
77install : build
88	install bin/kubectl-operator $(shell  go env GOPATH) /bin
99
10+ gen-demo :
11+ 	./assets/demo/gen-demo.sh
12+ 
1013GOLANGCI_LINT_VER  = "1.29.0"
1114lint :
1215# 	scripts/golangci-lint-check.sh
1316ifneq  (${GOLANGCI_LINT_VER}, "$(shell  ./bin/golangci-lint --version 2>/dev/null | cut -b 27-32) ")
1417	@echo "golangci-lint missing or not version '${GOLANGCI_LINT_VER}', downloading..."
1518	curl -sSfL "https://raw.githubusercontent.com/golangci/golangci-lint/v${GOLANGCI_LINT_VER}/install.sh" | sh -s -- -b ./bin "v${GOLANGCI_LINT_VER}"
1619endif 
17- 	./bin/golangci-lint --timeout 3m run
20+ 	./bin/golangci-lint --timeout 3m run
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ cluster. See the OLM installation instructions [here](https://olm.operatorframew
1111
1212## Demo  
1313
14- ![ asciicast] ( assets/asciinema- demo.gif ) 
14+ ![ asciicast] ( assets/demo/ demo.gif ) 
1515
1616## Install  
1717
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ 
3+ INTERACTIVE=${INTERACTIVE:- " 1"  
4+ 
5+ run () {
6+ 	type  " kubectl operator catalog list -A" 
7+ 	type  " kubectl operator list-available cockroachdb" 
8+ 	type  " kubectl operator install cockroachdb --create-operator-group -v 2.1.1" 
9+ 	type  " kubectl operator list" 
10+ 	type  " kubectl operator upgrade cockroachdb" 
11+ 	type  " kubectl operator list" 
12+ 	type  " kubectl operator uninstall cockroachdb --delete-crds --delete-operator-groups" 
13+ }
14+ 
15+ prompt () {
16+ 	echo  " " 
17+ 	echo  -n " $ " 
18+ }
19+ 
20+ type () {
21+ 	prompt
22+ 	sleep 1
23+ 	for  ((  i= 0 ; i< ${# 1} ; i++  )) ;  do 
24+ 		echo  -n " ${1: $i : 1} " 
25+ 		sleep 0.06
26+ 	done 
27+ 	echo  " " 
28+ 	sleep 0.25
29+ 	$1 
30+ 	[[ " $INTERACTIVE " ==  " 1" &&  read  -p " " 
31+ }
32+ 
33+ run
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ 
3+ set  -o errexit
4+ set  -o pipefail
5+ 
6+ INTERACTIVE=0 asciinema rec --overwrite -c ./assets/demo/demo.sh ./assets/demo/demo.asciinema.json
7+ asciicast2gif -w 90 -h 33 ./assets/demo/demo.asciinema.json ./assets/demo/demo.gif
8+ rm ./assets/demo/demo.asciinema.json
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments