Skip to content

Commit

Permalink
Release v0.4.0
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 Feb 23, 2022
1 parent 5821576 commit 50de5c0
Show file tree
Hide file tree
Showing 13 changed files with 840 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v2
with:
context: deployments/operator-lifecycle-manager/0.3.5
context: deployments/operator-lifecycle-manager/0.4.0
push: 'true'
tags: clevercloud/clever-operator-manifest:${{ github.sha }}
file: deployments/operator-lifecycle-manager/0.3.5/bundle.Dockerfile
file: deployments/operator-lifecycle-manager/0.4.0/bundle.Dockerfile
kubernetes-deployment-scripts-validation:
name: Kubernetes validate deployment scripts
runs-on: ubuntu-latest
Expand Down
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.3.5"
version = "0.4.0"
edition = "2021"
rust-version = "1.58.1"
authors = ["Florentin Dubois <florentin.dubois@clever-cloud.com>"]
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.21.0

OLM_SDK ?= $(shell which operator-sdk)
OLM_SDK_VERSION ?= 1.15.0
OLM_VERSION ?= 0.3.5
OLM_VERSION ?= 0.4.0

OCP_VALIDATOR ?= $(shell which ocp-olm-catalog-validator)
OCP_VERSION ?= 0.0.1
Expand Down
10 changes: 5 additions & 5 deletions deployments/kubernetes/v1.21.0/20-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ metadata:
data:
config.toml: |
[api]
token = "ab6dbb453ddd4288abdb3190a6ed93b3"
secret = "861cb86b251949c1b02e5a5d3a3e6d56"
consumerKey = "6BAxsDCu8FBZz1RWPXvXssErWID1hA"
consumerSecret = "pYxVtdTsy02zg3lmpCDIBx6XVSvDCl"
token = ""
secret = ""
consumerKey = ""
consumerSecret = ""
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -140,7 +140,7 @@ spec:
- key: "config.toml"
path: "config.toml"
containers:
- image: clevercloud/clever-operator:b9677e94a778d01f4a6ae98d4280d8e70f4a8f8b
- image: clevercloud/clever-operator:5821576632c9d524a3f1c419b86346823033c282
imagePullPolicy: Always
name: clever-operator
command: ["/usr/local/bin/clever-operator"]
Expand Down
24 changes: 24 additions & 0 deletions deployments/operator-lifecycle-manager/0.4.0/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,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: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: postgresqls.api.clever-cloud.com
spec:
group: api.clever-cloud.com
names:
categories: []
kind: PostgreSql
plural: postgresqls
shortNames:
- pg
singular: postgresql
scope: Namespaced
versions:
- additionalPrinterColumns: []
name: v1
schema:
openAPIV3Schema:
description: "Auto-generated derived type for PostgreSqlSpec 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:
- 13
- 12
- 11
- 10
- 96
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: PostgreSql
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: pulsars.api.clever-cloud.com
spec:
group: api.clever-cloud.com
names:
categories: []
kind: Pulsar
plural: pulsars
shortNames:
- pulse
- pul
singular: pulsar
scope: Namespaced
versions:
- additionalPrinterColumns: []
name: v1beta1
schema:
openAPIV3Schema:
description: "Auto-generated derived type for PulsarSpec via `CustomResource`"
properties:
spec:
properties:
instance:
properties:
region:
type: string
required:
- region
type: object
organisation:
type: string
required:
- instance
- organisation
type: object
status:
nullable: true
properties:
addon:
nullable: true
type: string
type: object
required:
- spec
title: Pulsar
type: object
served: true
storage: true
subresources:
status: {}
Loading

0 comments on commit 50de5c0

Please sign in to comment.