Skip to content

Commit

Permalink
Release v0.5.4
Browse files Browse the repository at this point in the history
Signed-off-by: Florentin Dubois <florentin.dubois@clever-cloud.com>
  • Loading branch information
FlorentinDUBOIS committed Nov 22, 2022
1 parent 78464b5 commit 877afd5
Show file tree
Hide file tree
Showing 19 changed files with 1,079 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,18 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v2
with:
context: deployments/operator-lifecycle-manager/0.5.3
context: deployments/operator-lifecycle-manager/0.5.4
push: 'true'
tags: clevercloud/clever-operator-manifest:${{ github.sha }}
file: deployments/operator-lifecycle-manager/0.5.3/bundle.Dockerfile
file: deployments/operator-lifecycle-manager/0.5.4/bundle.Dockerfile
kubernetes-deployment-scripts-validation:
name: Kubernetes validate deployment scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: piraces/kube-score-ga@v0.1.2
with:
manifests-folders: 'deployments/kubernetes/v1.21.0/*.yml'
manifests-folders: 'deployments/kubernetes/v1.24.0/*.yml'
kubernetes-deployment:
name: Create a minikube and install the operator
runs-on: ubuntu-latest
Expand All @@ -148,7 +148,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: medyagh/setup-minikube@master
- run: kubectl apply -f deployments/kubernetes/v1.21.0
- run: kubectl apply -f deployments/kubernetes/v1.24.0
openshift-deployment:
name: Create a minikube, install openshift and install the operator
runs-on: ubuntu-latest
Expand All @@ -159,7 +159,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: medyagh/setup-minikube@master
- run: curl -L -vvv https://github.com/operator-framework/operator-sdk/releases/download/v1.22.0/operator-sdk_linux_amd64 > /tmp/operator-sdk && chmod +x /tmp/operator-sdk
- run: curl -L -vvv https://github.com/operator-framework/operator-sdk/releases/download/v1.25.2/operator-sdk_linux_amd64 > /tmp/operator-sdk && chmod +x /tmp/operator-sdk
- run: /tmp/operator-sdk olm install --verbose --timeout 30m
- run: /tmp/operator-sdk run bundle --verbose --timeout 30m 'docker.io/clevercloud/clever-operator-manifest:${{ github.sha }}'
...
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[package]
name = "clever-operator"
description = "A kubernetes operator that expose clever cloud's resources through custom resource definition"
version = "0.5.3"
version = "0.5.4"
edition = "2021"
rust-version = "1.60.0"
authors = ["Florentin Dubois <florentin.dubois@clever-cloud.com>"]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ MAINTAINER Florentin Dubois <florentin.dubois@clever-cloud.com>
LABEL name="clever-operator" \
maintainer="Florentin Dubois <florentin.dubois@clever-cloud.com>" \
vendor="Clever Cloud S.A.S" \
version="v0.5.3" \
version="v0.5.4" \
release="1" \
summary="A kubernetes operator that expose clever cloud's resources through custom resource definition" \
description="A kubernetes operator that expose clever cloud's resources through custom resource definition"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ KUBE_VERSION ?= v1.24.0

OLM_SDK ?= $(shell which operator-sdk)
OLM_SDK_VERSION ?= 1.25.2
OLM_VERSION ?= 0.5.3
OLM_VERSION ?= 0.5.4

OCP_VALIDATOR ?= $(shell which ocp-olm-catalog-validator)
OCP_VERSION ?= 0.1.0
Expand Down
2 changes: 1 addition & 1 deletion deployments/kubernetes/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name: clever-operator
description: A kubernetes operator that expose clever cloud's resources through custom resource definition
type: application
version: 0.1.0
appVersion: "0.5.2"
appVersion: "0.5.4"
2 changes: 1 addition & 1 deletion deployments/kubernetes/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ image:
repository: clevercloud/clever-operator
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "e7cfe6efc4c4da80c722416fe1de373b789612f6"
tag: "78464b50fd6230fe78f5e031048dc81d62308322"

# Declare your secrets for the operator to create add-ons on Clever Cloud
config:
Expand Down
2 changes: 1 addition & 1 deletion deployments/kubernetes/v1.21.0/20-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ spec:
- key: "config.toml"
path: "config.toml"
containers:
- image: clevercloud/clever-operator:e7cfe6efc4c4da80c722416fe1de373b789612f6
- image: clevercloud/clever-operator:78464b50fd6230fe78f5e031048dc81d62308322
imagePullPolicy: Always
name: clever-operator
command: ["/usr/local/bin/clever-operator"]
Expand Down
2 changes: 1 addition & 1 deletion deployments/kubernetes/v1.24.0/20-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ spec:
- key: "config.toml"
path: "config.toml"
containers:
- image: clevercloud/clever-operator:e7cfe6efc4c4da80c722416fe1de373b789612f6
- image: clevercloud/clever-operator:78464b50fd6230fe78f5e031048dc81d62308322
imagePullPolicy: Always
name: clever-operator
command: ["/usr/local/bin/clever-operator"]
Expand Down
24 changes: 24 additions & 0 deletions deployments/operator-lifecycle-manager/0.5.4/bundle.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# See https://github.com/operator-framework/operator-registry/blob/master/docs/design/operator-bundle.md#Bundle-Dockerfile

FROM scratch

# Core bundle labels.
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=clever-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha

# Labels for testing.
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/

# Label for OpenShift.
LABEL com.redhat.openshift.versions=v4.6-v4.9

# Copy files to locations specified by labels.
ADD manifests /manifests/
ADD metadata /metadata/
ADD tests/scorecard /tests/scorecard/

Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: elasticsearches.api.clever-cloud.com
spec:
group: api.clever-cloud.com
names:
categories: []
kind: ElasticSearch
plural: elasticsearches
shortNames:
- es
singular: elasticsearch
scope: Namespaced
versions:
- additionalPrinterColumns: []
name: v1
schema:
openAPIV3Schema:
description: "Auto-generated derived type for Spec via `CustomResource`"
properties:
spec:
properties:
instance:
properties:
plan:
type: string
region:
type: string
required:
- plan
- region
type: object
options:
properties:
apm:
type: boolean
encryption:
type: boolean
kibana:
type: boolean
version:
enum:
- 6
- 7
type: integer
required:
- apm
- encryption
- kibana
- version
type: object
organisation:
type: string
required:
- instance
- options
- organisation
type: object
status:
nullable: true
properties:
addon:
nullable: true
type: string
type: object
required:
- spec
title: ElasticSearch
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: configproviders.api.clever-cloud.com
spec:
group: api.clever-cloud.com
names:
categories: []
kind: ConfigProvider
plural: configproviders
shortNames:
- cp
singular: configprovider
scope: Namespaced
versions:
- additionalPrinterColumns: []
name: v1
schema:
openAPIV3Schema:
description: "Auto-generated derived type for Spec via `CustomResource`"
properties:
spec:
properties:
organisation:
type: string
variables:
additionalProperties:
type: string
type: object
required:
- organisation
- variables
type: object
status:
nullable: true
properties:
addon:
nullable: true
type: string
type: object
required:
- spec
title: ConfigProvider
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: mongodbs.api.clever-cloud.com
spec:
group: api.clever-cloud.com
names:
categories: []
kind: MongoDb
plural: mongodbs
shortNames:
- mo
singular: mongodb
scope: Namespaced
versions:
- additionalPrinterColumns: []
name: v1
schema:
openAPIV3Schema:
description: "Auto-generated derived type for MongoDbSpec via `CustomResource`"
properties:
spec:
properties:
instance:
properties:
plan:
type: string
region:
type: string
required:
- plan
- region
type: object
options:
properties:
encryption:
type: boolean
version:
enum:
- 403
type: integer
required:
- encryption
- version
type: object
organisation:
type: string
required:
- instance
- options
- organisation
type: object
status:
nullable: true
properties:
addon:
nullable: true
type: string
type: object
required:
- spec
title: MongoDb
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: mysqls.api.clever-cloud.com
spec:
group: api.clever-cloud.com
names:
categories: []
kind: MySql
plural: mysqls
shortNames:
- my
singular: mysql
scope: Namespaced
versions:
- additionalPrinterColumns: []
name: v1
schema:
openAPIV3Schema:
description: "Auto-generated derived type for MySqlSpec via `CustomResource`"
properties:
spec:
properties:
instance:
properties:
plan:
type: string
region:
type: string
required:
- plan
- region
type: object
options:
properties:
encryption:
type: boolean
version:
enum:
- 57
- 80
type: integer
required:
- encryption
- version
type: object
organisation:
type: string
required:
- instance
- options
- organisation
type: object
status:
nullable: true
properties:
addon:
nullable: true
type: string
type: object
required:
- spec
title: MySql
type: object
served: true
storage: true
subresources:
status: {}
Loading

0 comments on commit 877afd5

Please sign in to comment.