Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port mariadb-operator #357

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion acto/constant.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class CONST(object):
__slots__ = ()
ACTO_NAMESPACE = "acto-namespace"
ACTO_NAMESPACE = "default"
WAIT_LIMIT = 180
CLUSTER_NAME = 'acto-cluster'
CLUSTER_CONFIG_FOLDER = "./kubernetes_config"
2 changes: 1 addition & 1 deletion acto/lib/operator_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class OperatorConfig(pydantic.BaseModel, extra="forbid"):
default_factory=list
)
kubernetes_version: str = pydantic.Field(
default="v1.28.0", description="Kubernetes version"
default="v1.29.2", description="Kubernetes version"
)
kubernetes_engine: KubernetesEngineConfig = pydantic.Field(
default=KubernetesEngineConfig(),
Expand Down
19 changes: 19 additions & 0 deletions data/mariadb-operator/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"deploy": {
"steps": [
{
"apply": {
"file": "data/mariadb-operator/mariadb-secret.yaml"
}
},
{
"apply": {
"file": "data/mariadb-operator/manifests.min.yaml",
"operator": true
}
}
]
},
"crd_name": "mariadbs.k8s.mariadb.com",
"seed_custom_resource": "data/mariadb-operator/mariadb.yaml"
}
18,407 changes: 18,407 additions & 0 deletions data/mariadb-operator/context.json

Large diffs are not rendered by default.

48,266 changes: 48,266 additions & 0 deletions data/mariadb-operator/manifests.min.yaml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions data/mariadb-operator/mariadb-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: mariadb
stringData:
password: MariaDB11!
root-password: MariaDB11!
38 changes: 38 additions & 0 deletions data/mariadb-operator/mariadb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: k8s.mariadb.com/v1alpha1
kind: MariaDB
metadata:
name: test-cluster
spec:
rootPasswordSecretKeyRef:
name: mariadb
key: root-password

username: mariadb
passwordSecretKeyRef:
name: mariadb
key: password
database: mariadb

image: mariadb:11.0.3
imagePullPolicy: IfNotPresent

port: 3306

storage:
size: 1Gi

service:
type: LoadBalancer
annotations:
metallb.universe.tf/loadBalancerIPs: 172.18.0.20

myCnf: |
[mariadb]
bind-address=*
default_storage_engine=InnoDB
binlog_format=row
innodb_autoinc_lock_mode=2
max_allowed_packet=256M

metrics:
enabled: true
Loading