Skip to content

Commit 9de06f7

Browse files
Merge pull request #120 from CleverCloud/devel/fdubois/feat/updates
feat: updates dependencies. deployments and documentation
2 parents f246f59 + 607cee6 commit 9de06f7

File tree

7 files changed

+111
-83
lines changed

7 files changed

+111
-83
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,17 @@ jobs:
126126
runs-on: ubuntu-latest
127127
steps:
128128
- uses: actions/checkout@v2
129-
- uses: docker/setup-qemu-action@v1
130-
- uses: docker/setup-buildx-action@v1
131-
- uses: docker/login-action@v1
129+
- uses: docker/setup-qemu-action@v3
130+
- uses: docker/setup-buildx-action@v3
131+
- uses: docker/login-action@v3
132132
with:
133133
username: ${{ secrets.DOCKERHUB_USERNAME }}
134134
password: ${{ secrets.DOCKERHUB_TOKEN }}
135-
- uses: docker/build-push-action@v2
135+
- uses: docker/build-push-action@v6
136136
with:
137137
context: .
138138
push: 'true'
139+
platforms: linux/amd64,linux/arm64
139140
tags: clevercloud/clever-operator:${{ github.sha }}
140141
docker-build-and-push-openshift-manifest:
141142
name: Docker build and push openshift manifest

Cargo.lock

Lines changed: 75 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ serde_json = { version = "^1.0.138", features = [
5151
"float_roundtrip",
5252
] }
5353
serde_yaml = "^0.9.33"
54-
tempfile = "^3.16.0"
54+
tempfile = "^3.17.1"
5555
thiserror = "^2.0.11"
5656
tokio = { version = "^1.43.0", features = ["full"] }
5757
tracing = "^0.1.41"

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ DOCKER_OPTS ?= --log-level debug
1212
DOCKER_IMG ?= clevercloud/$(NAME):$(VERSION)
1313

1414
KUBE ?= $(shell which kubectl)
15-
KUBE_VERSION ?= v1.24.0
15+
KUBE_VERSION ?= v1.30.0
1616

1717
OLM_SDK ?= $(shell which operator-sdk)
18-
OLM_SDK_VERSION ?= 1.26.1
18+
OLM_SDK_VERSION ?= 1.39.1
1919
OLM_VERSION ?= 0.5.5
2020

2121
OCP_VALIDATOR ?= $(shell which ocp-olm-catalog-validator)
@@ -24,7 +24,7 @@ OCP_VERSION ?= 0.1.0
2424
K8S_VALIDATOR ?= $(shell which k8s-community-bundle-validator)
2525
K8S_VERSION ?= 0.1.0
2626

27-
KUBE_SCORE_VERSION ?= 1.16.1
27+
KUBE_SCORE_VERSION ?= 1.19.0
2828
KUBE_SCORE ?= $(shell which kube-score)
2929

3030
DEPLOY_KUBE ?= deployments/kubernetes/$(KUBE_VERSION)

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $ make deploy-kubernetes
8181
```
8282
or
8383
```
84-
$ kubectl apply -f deployments/kubernetes/v1.24.0
84+
$ kubectl apply -f deployments/kubernetes/v1.30.0
8585
```
8686

8787
#### From the helm chart
@@ -102,8 +102,8 @@ $ make deploy-kubernetes
102102
```
103103
or
104104
```
105-
$ kubectl apply -f https://raw.githubusercontent.com/CleverCloud/clever-operator/main/deployments/kubernetes/v1.24.0/10-custom-resource-definition.yaml
106-
$ kubectl apply -f https://raw.githubusercontent.com/CleverCloud/clever-operator/main/deployments/kubernetes/v1.24.0/20-deployment.yaml
105+
$ kubectl apply -f https://raw.githubusercontent.com/CleverCloud/clever-operator/main/deployments/kubernetes/v1.30.0/10-custom-resource-definition.yaml
106+
$ kubectl apply -f https://raw.githubusercontent.com/CleverCloud/clever-operator/main/deployments/kubernetes/v1.30.0/20-deployment.yaml
107107
```
108108

109109
## Configuration
@@ -115,18 +115,14 @@ configurations could be provided through a ConfigMap, a Secret or by the environ
115115

116116
Environment variables are:
117117

118-
| Name | Kind | Default | Required | Description |
119-
| ------------------------------------- | --------------- | ------------------------------ | -------- | ----------- |
120-
| `CLEVER_OPERATOR_OPERATOR_LISTEN` | `SocketAddress` | `0.0.0.0:7080` | yes | |
121-
| `CLEVER_OPERATOR_API_ENDPOINT` | `Url` | `https://api.clever-cloud.com` | yes | |
122-
| `CLEVER_OPERATOR_API_SECRET` | `String` | none | yes | |
123-
| `CLEVER_OPERATOR_API_TOKEN` | `String` | none | yes | |
124-
| `CLEVER_OPERATOR_API_CONSUMER_KEY` | `String` | none | yes | |
125-
| `CLEVER_OPERATOR_API_CONSUMER_SECRET` | `String` | none | yes | |
126-
| `CLEVER_OPERATOR_SENTRY_DSN` | `Url` | none | no | |
127-
| `CLEVER_OPERATOR_JAEGER_ENDPOINT` | `Url` | none | no | |
128-
| `CLEVER_OPERATOR_JAEGER_USER` | `String` | none | no | |
129-
| `CLEVER_OPERATOR_JAEGER_PASSWORD` | `String` | none | no | |
118+
| Name | Kind | Default | Required | Description |
119+
| ------------------------------------- | --------------- | ------------------------------ |----------|-------------------------------------------------------------------|
120+
| `CLEVER_OPERATOR_OPERATOR_LISTEN` | `SocketAddress` | `0.0.0.0:7080` | yes | |
121+
| `CLEVER_OPERATOR_API_ENDPOINT` | `Url` | `https://api.clever-cloud.com` | yes | |
122+
| `CLEVER_OPERATOR_API_SECRET` | `String` | none | false | |
123+
| `CLEVER_OPERATOR_API_TOKEN` | `String` | none | yes | if used alone, we assume that we are using oauthless auth backend |
124+
| `CLEVER_OPERATOR_API_CONSUMER_KEY` | `String` | none | false | |
125+
| `CLEVER_OPERATOR_API_CONSUMER_SECRET` | `String` | none | false | |
130126

131127
By default, if the `--config` flag is not provided to the binary, the operator will look at the following paths to
132128
retrieve its configuration:
@@ -140,7 +136,7 @@ retrieve its configuration:
140136
### Namespace
141137

142138
It is possible to override configuration to connect the Clever Cloud's api through a `Secret` named `clever-operator` and using the `config` key.
143-
Only available configuration keys are `api` and `proxy` from the [`Configuration`](config.sample.toml).
139+
Only available configuration keys is `api` from the [`Configuration`](config.sample.toml).
144140

145141
## License
146142

config.sample.toml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,15 @@
11
# Clever-Cloud api credentials
22
#
3-
# Could be created using this project :
4-
# - https://github.com/CleverCloud/oauth-consumer-server
3+
# We could use only the field token in the api section in the case,
4+
# we are using the oauthless auth backend, like the example below.
5+
#
6+
# [api]
7+
# token = ""
8+
#
9+
# In the case, we are using an oauth consumer group, the configuration does not change,
10+
# we have three additionals fields which are secret, consumer-key and consumer-secret.
511
[api]
612
token = ""
713
secret = ""
8-
consumerKey = ""
9-
consumerSecret = ""
10-
11-
# Jaeger configuration
12-
# [jaeger]
13-
# endpoint = "http://localhost:14268/api/trace"
14-
# User and password are optional, but it is strongly recommended to use them
15-
# user = ""
16-
# password = ""
17-
18-
# Sentry configuration
19-
# [sentry]
20-
# dsn = ""
21-
22-
# Proxy configuration
23-
# [proxy]
24-
# http = "http://localhost:3108"
25-
# https = "http://localhost:3108"
26-
# no = ["10.0.0.1/8", "domain.example.com"]
14+
consumer-key = ""
15+
consumer-secret = ""

0 commit comments

Comments
 (0)