Upgrade Operator SDK to 1.14.0

Summary

Upgrades Operator SDK to 1.14.0 for Kubernetes 1.22 compatibility.

Closes #93 (closed)

Related to gitlab-org/cloud-native/gitlab-operator#400 (closed)

Closes #93 (closed)

Testing

Building image locally

$ pwd
/Users/mnielsen/code/gitlab-org/gitlab-build-images-operator-sdk

$ docker build -t operator-build-base:local -f Dockerfile.gitlab-operator-build-base .
...
 => exporting to image                                                                                                                                                                           
 => => exporting layers                                                                                                                                                                          
 => => writing image sha256:18d40e50b9da4dbf02014088b198a4da0e7770a0bcfc990f290321ee3f836682                                                                                                     
 => => naming to docker.io/library/operator-build-base:local

Using image for bundling

OperatorHub publishing docs

$ pwd
/Users/mnielsen/code/gitlab-org/cloud-native/gitlab-operator-sdk-1.14

$ docker run --rm -it -v $(pwd):/test operator-build-base:local bash

# operator-sdk version
operator-sdk version: "v1.14.0", commit: "78f08b4852faf344ad3ef457c54f86087aaa0a0a", kubernetes version: "1.21", go version: "go1.16.9", GOOS: "linux", GOARCH: "amd64"

#  export OPERATOR_TAG="9.9.9"
   export OLM_PACKAGE_VERSION=${OPERATOR_TAG}
   export OPERATORHUB_DIR="${HOME}/work/community-operators"
   export OPERATORHUB_NAME="gitlab-operator-kubernetes"
   export OSDK_BASE_DIR=".build/operatorhub-io"

# scripts/olm_bundle.sh build_manifests generate_bundle patch_bundle
...
INFO[0000] Creating bundle.Dockerfile
INFO[0000] Creating bundle/metadata/annotations.yaml
INFO[0000] Bundle metadata generated suceessfully
...

# echo $?
0

# scripts/olm_bundle.sh validate_bundle
...
INFO[0000] All validation tests have completed successfully
...

# echo $?
0 
Edited by Mitchell Nielsen

Merge request reports

Loading