Posts

Showing posts from August, 2020

Install Operator-SDK on Linux-[STEP-2]

Install OPERATOR-SDK  Operator SDK source code to compile and install the SDK CLI.   Clone the  operator-sdk  repository: mkdir -p $GOPATH/src/github.com/operator-framework cd $GOPATH/src/github.com/operator-framework git clone https://github.com/operator-framework/operator-sdk cd operator-sdk Check out to branch: git checkout tags/v0.19.4 -b v0.19.4 Install "make" binary by using yum/dnf dnf install make Install the SDK CLI tool: make tidy make install Above command installs the CLI binary  operator- sdk  at  $GOPATH/bin .   Verify CLI tool was installed correctly: operator-sdk -h operator-sdk version NOTE: Please follow the link below before getting in to above steps. https://openshift-operator-intro.blogspot.com/2020/08/install-go.html

Install Go [STEP-1]

Install Go Login as root user  Go to the following link and download file https://golang.org/dl/ Extract tar file to / usr/ local directory tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz Set the PATH and GOPATH in /root/.bash_profile             export PATH=$PATH:/usr/local/go/bin           export GOPATH=/usr/local/go       5.  Execute following command.            source /root/.bash_profile           go           Verify the output [OPTIONAL]        6. Verify Installation -Execute following commands           1. Execute following to behave the GOPATH way even outside of GOPATH                   go env -w GO111MODULE=off              2. cd /root 3. vi hello.go #Add following content package main i...