Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #760 from dacleyra/684-2
Browse files Browse the repository at this point in the history
Remove v1alpha1
  • Loading branch information
kaczyns authored Jun 16, 2020
2 parents 1d98ae6 + f2706eb commit 4ad97f5
Show file tree
Hide file tree
Showing 60 changed files with 1,700 additions and 4,361 deletions.
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ IMAGE_SHA = $(lastword $(subst @, ,$(IMAGE_REPO_DIGEST)))
REGISTRY_IMAGE_SHA = $(lastword $(subst @, ,$(REGISTRY_IMAGE_REPO_DIGEST)))

# Current release (used for CSV management)
CURRENT_RELEASE=0.9.1
CURRENT_RELEASE=0.10.0

# OS detection
ifeq ($(OS),Windows_NT)
Expand All @@ -66,11 +66,10 @@ endif
endif


.PHONY: build deploy deploy-olm build-image build-registry-image push-image push-registry-image push-manifest int-test-install int-test-collections int-test-uninstall int-test-lifecycle
.PHONY: build deploy deploy-olm build-image build-registry-image push-image push-registry-image push-manifest int-test-install int-test-stacks int-test-uninstall int-test-lifecycle

build: generate
GO111MODULE=on go install ./cmd/manager
GO111MODULE=on go install ./cmd/manager/collection
GO111MODULE=on go install ./cmd/manager/stack
GO111MODULE=on go install ./cmd/admission-webhook

Expand All @@ -80,19 +79,19 @@ build-image: generate
# commands separately here.
# operator-sdk build ${IMAGE}
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -o build/_output/bin/kabanero-operator -gcflags "all=-trimpath=$(GOPATH)" -asmflags "all=-trimpath=$(GOPATH)" -ldflags "-X main.GitTag=$(TRAVIS_TAG) -X main.GitCommit=$(TRAVIS_COMMIT) -X main.GitRepoSlug=$(TRAVIS_REPO_SLUG) -X main.BuildDate=`date -u +%Y%m%d.%H%M%S`" github.com/kabanero-io/kabanero-operator/cmd/manager
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -o build/_output/bin/kabanero-operator-collection-controller -gcflags "all=-trimpath=$(GOPATH)" -asmflags "all=-trimpath=$(GOPATH)" -ldflags "-X main.GitTag=$(TRAVIS_TAG) -X main.GitCommit=$(TRAVIS_COMMIT) -X main.GitRepoSlug=$(TRAVIS_REPO_SLUG) -X main.BuildDate=`date -u +%Y%m%d.%H%M%S`" github.com/kabanero-io/kabanero-operator/cmd/manager/collection
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -o build/_output/bin/kabanero-operator-stack-controller -gcflags "all=-trimpath=$(GOPATH)" -asmflags "all=-trimpath=$(GOPATH)" -ldflags "-X main.GitTag=$(TRAVIS_TAG) -X main.GitCommit=$(TRAVIS_COMMIT) -X main.GitRepoSlug=$(TRAVIS_REPO_SLUG) -X main.BuildDate=`date -u +%Y%m%d.%H%M%S`" github.com/kabanero-io/kabanero-operator/cmd/manager/stack
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -o build/_output/bin/admission-webhook -gcflags "all=-trimpath=$(GOPATH)" -asmflags "all=-trimpath=$(GOPATH)" -ldflags "-X main.GitTag=$(TRAVIS_TAG) -X main.GitCommit=$(TRAVIS_COMMIT) -X main.GitRepoSlug=$(TRAVIS_REPO_SLUG) -X main.BuildDate=`date -u +%Y%m%d.%H%M%S`" github.com/kabanero-io/kabanero-operator/cmd/admission-webhook

docker build -f build/Dockerfile -t $(IMAGE) .

build-registry-image:
# Build an OLM private registry for Kabanero. Should be run after push-image so the IMAGE SHA is generated
rm -Rf build/registry
mkdir -p build/registry
cp LICENSE build/registry/LICENSE
cp -R registry/manifests build/registry/
cp registry/Dockerfile build/registry/Dockerfile
cp deploy/crds/kabanero.io_kabaneros_crd.yaml deploy/crds/kabanero.io_collections_crd.yaml deploy/crds/kabanero.io_stacks_crd.yaml build/registry/manifests/kabanero-operator/$(CURRENT_RELEASE)/
cp deploy/crds/kabanero.io_kabaneros_crd.yaml deploy/crds/kabanero.io_stacks_crd.yaml build/registry/manifests/kabanero-operator/$(CURRENT_RELEASE)/

# Use the internal service address in the CSV
ifdef INTERNAL_REGISTRY
Expand Down Expand Up @@ -156,7 +155,6 @@ generate:
install:
kubectl config set-context $$(kubectl config current-context) --namespace=kabanero
kubectl apply -f deploy/crds/kabanero.io_kabaneros_crd.yaml
kubectl apply -f deploy/crds/kabanero.io_collections_crd.yaml
kubectl apply -f deploy/crds/kabanero.io_stacks_crd.yaml

deploy:
Expand Down Expand Up @@ -197,7 +195,7 @@ ifndef GITHUB_TOKEN
endif
mkdir -p build/bin
curl -L https://github.com/mitchellh/golicense/releases/download/v0.2.0/golicense_0.2.0_$(detected_OS)_x86_64.tar.gz | tar -C build/bin -xzf - golicense
build/bin/golicense -plain ./license-rules.json build/_output/bin/admission-webhook build/_output/bin/kabanero-operator build/_output/bin/kabanero-operator-collection-controller build/_output/bin/kabanero-operator-stack-controller | sort > 3RD_PARTY || true
build/bin/golicense -plain ./license-rules.json build/_output/bin/admission-webhook build/_output/bin/kabanero-operator build/_output/bin/kabanero-operator-stack-controller | sort > 3RD_PARTY || true
rm build/bin/golicense

# Integration Tests
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ We suggest you install from a [release](https://github.com/kabanero-io/kabanero-
[![Build Status](https://travis-ci.org/kabanero-io/kabanero-operator.svg?branch=master)](https://travis-ci.org/kabanero-io/kabanero-operator)

The Kabanero operator is developed using:
* `operator-sdk` version 0.16.0.
* `operator-sdk` version 0.17.1.
* `go` version 1.13.x

## Clone the Kabanero operator
Expand All @@ -17,7 +17,7 @@ git clone https://github.com/kabanero-io/kabanero-operator
cd kabanero-operator
```

# Quickstart - OpenShift Container Platform (OCP) 4.3
# Quickstart - OpenShift Container Platform (OCP) 4.4

We recommend you follow the install instructions referenced above to set up your cluster for the first time. If you would rather set it up manually, please continue with the following steps:

Expand All @@ -31,7 +31,7 @@ oc login -u admin -p admin https://openshift.my.com:8443/
## Deploy Prerequisite operators:

The following operators need to be installed at the cluster scope:
* [OpenShift Serverless Operator](https://docs.openshift.com/container-platform/4.3/serverless/installing-openshift-serverless.html)
* [OpenShift Serverless Operator](https://docs.openshift.com/container-platform/4.4/serverless/installing-openshift-serverless.html)
* OpenShift Pipelines Operator (from community-operators)
* Appsody Operator (from certified-operators)
* Open Liberty Operator (from certified-operators)
Expand Down
3 changes: 1 addition & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM registry.access.redhat.com/ubi7/ubi-minimal:latest
LABEL vendor="Kabanero" \
name="Kabanero Operator" \
summary="Image for Kabanero Operator" \
description="This image contains the controller for the Kabanero Foundation and Collection. See https://github.com/kabanero-io/kabanero-operator/"
description="This image contains the controller for the Kabanero Foundation. See https://github.com/kabanero-io/kabanero-operator/"

# The license must be here for Redhat container certification
COPY LICENSE /licenses/
Expand All @@ -16,7 +16,6 @@ ENV OPERATOR=/usr/local/bin/kabanero-operator \
# install operator binary and supporting controllers.
COPY build/_output/bin/kabanero-operator ${OPERATOR}
COPY build/_output/bin/kabanero-operator-stack-controller /usr/local/bin/kabanero-operator-stack-controller
COPY build/_output/bin/kabanero-operator-collection-controller /usr/local/bin/kabanero-operator-collection-controller
COPY build/_output/bin/admission-webhook /usr/local/bin/admission-webhook

COPY build/bin /usr/local/bin
Expand Down
6 changes: 0 additions & 6 deletions cmd/admission-webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
_ "k8s.io/client-go/plugin/pkg/client/auth"

"github.com/kabanero-io/kabanero-operator/pkg/apis"
collectionwebhook "github.com/kabanero-io/kabanero-operator/pkg/webhook/collection"
kabanerowebhookv1alpha1 "github.com/kabanero-io/kabanero-operator/pkg/webhook/kabanero/v1alpha1"
kabanerowebhookv1alpha2 "github.com/kabanero-io/kabanero-operator/pkg/webhook/kabanero/v1alpha2"
stackwebhook "github.com/kabanero-io/kabanero-operator/pkg/webhook/stack"

Expand Down Expand Up @@ -98,10 +96,6 @@ func main() {
// Setup the webhook server
hookServer := mgr.GetWebhookServer()
hookServer.Port = 9443
hookServer.Register("/validate-collections", collectionwebhook.BuildValidatingWebhook(&mgr))
hookServer.Register("/mutate-collections", collectionwebhook.BuildMutatingWebhook(&mgr))
hookServer.Register("/validate-kabaneros", kabanerowebhookv1alpha1.BuildValidatingWebhook(&mgr))
hookServer.Register("/mutate-kabaneros", kabanerowebhookv1alpha1.BuildMutatingWebhook(&mgr))
hookServer.Register("/validate-kabaneros/v1alpha2", kabanerowebhookv1alpha2.BuildValidatingWebhook(&mgr))
hookServer.Register("/validate-stacks", stackwebhook.BuildValidatingWebhook(&mgr))
hookServer.Register("/mutate-stacks", stackwebhook.BuildMutatingWebhook(&mgr))
Expand Down
119 changes: 0 additions & 119 deletions cmd/manager/collection/main.go

This file was deleted.

15 changes: 0 additions & 15 deletions config/samples/collection.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion config/samples/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Kabanero
metadata:
name: kabanero
spec:
version: "0.9.1"
version: "0.10.0"
stacks:
repositories:
- name: central
Expand Down
25 changes: 7 additions & 18 deletions config/samples/full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ metadata:
spec:
# The platform version determines the desired version for all components, but those
# can be overriden individually as well
version: "0.9.1"
version: "0.10.0"

targetNamespaces:
- kabanero

cliServices:
# Overrides the setting for version on this component
version: "0.9.1"
version: "0.10.0"

# Overrides the image as a separate repository or tag
repository: kabanero/kabanero-command-line-services
Expand All @@ -31,20 +31,9 @@ spec:
# You can include multiple values in a single entry. For example, 1m30s is equivalent to 90 seconds.
sessionExpirationSeconds: "1440m"

collectionController:
# Overrides the setting for version on this component
version: "0.9.1"

# Overrides the image as a separate repository or tag
repository: kabanero/kabanero-operator
tag: "TRAVIS_TAG"

# Overrides the image uri
image: kabanero/kabanero-operator:TRAVIS_TAG

stackController:
# Overrides the setting for version on this component
version: "0.9.1"
version: "0.10.0"

# Overrides the image as a separate repository or tag
repository: kabanero/kabanero-operator
Expand All @@ -58,7 +47,7 @@ spec:
enable: true

# Overrides the setting for version on this component
version: "0.9.0"
version: "0.10.0"

# Overrides the image as a separate repository or tag
repository: kabanero/landing
Expand All @@ -69,7 +58,7 @@ spec:

admissionControllerWebhook:
# Overrides the setting for version on this component
version: "0.9.1"
version: "0.10.0"

# Overrides the image as a separate repository or tag
repository: kabanero/kabanero-operator
Expand All @@ -88,7 +77,7 @@ spec:
# Image used in Devfile registry deployment.
devFileRegistryImage:
# Overrides the setting for version on this component.
version: "0.9.0"
version: "0.10.0"

# Overrides the image as a separate repository or tag
repository: kabanero/che-devfile-registry
Expand Down Expand Up @@ -161,7 +150,7 @@ spec:

# Overrides the version of the events operator, as defined in
# config/versions.yaml
version: "0.9.0"
version: "0.10.0"

# Overrides the events-operator image as a separate repository or tag
repository: kabanero/events-operator
Expand Down
10 changes: 5 additions & 5 deletions config/samples/override_software_versions.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kabanero.io/v1alpha1
apiVersion: kabanero.io/v1alpha2
kind: Kabanero
metadata:
name: kabanero1
Expand All @@ -9,7 +9,7 @@ spec:
# Overrides the internally determined CLI services version with the provided value
version: "0.1.0"
---
apiVersion: kabanero.io/v1alpha1
apiVersion: kabanero.io/v1alpha2
kind: Kabanero
metadata:
name: kabanero1
Expand All @@ -18,7 +18,7 @@ spec:
# Overrides the internally determined CLI services image with the provided value
image: kabanero/kabanero-command-line-services:0.1.0
---
apiVersion: kabanero.io/v1alpha1
apiVersion: kabanero.io/v1alpha2
kind: Kabanero
metadata:
name: kabanero2
Expand All @@ -28,7 +28,7 @@ spec:
# The tag will be internally determined
repository: kabanero/kabanero-command-line-services
---
apiVersion: kabanero.io/v1alpha1
apiVersion: kabanero.io/v1alpha2
kind: Kabanero
metadata:
name: kabanero2
Expand All @@ -38,7 +38,7 @@ spec:
# The repository will be internally determined
tag: "0.1.1"
---
apiVersion: kabanero.io/v1alpha1
apiVersion: kabanero.io/v1alpha2
kind: Kabanero
metadata:
name: kabanero3
Expand Down
2 changes: 1 addition & 1 deletion config/samples/simple.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kabanero.io/v1alpha1
apiVersion: kabanero.io/v1alpha2
kind: Kabanero
metadata:
name: kabanero
Expand Down
Loading

0 comments on commit 4ad97f5

Please sign in to comment.