refactor: 整理结构和 maker 构建方式
This commit is contained in:
@@ -73,14 +73,14 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: %s
|
||||
podSpec:
|
||||
resources:
|
||||
requests:
|
||||
cpu: "250m"
|
||||
memory: "250Mi"
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: "4Gi"
|
||||
podSpec:
|
||||
resources:
|
||||
requests:
|
||||
cpu: "250m"
|
||||
memory: "250Mi"
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: "4Gi"
|
||||
# affinity:
|
||||
# podAntiAffinity:
|
||||
# requiredDuringSchedulingIgnoredDuringExecution: # 强制规则
|
||||
@@ -94,7 +94,6 @@ spec:
|
||||
# values: ["mysql-cluster"]
|
||||
# topologyKey: "kubernetes.io/hostname" # 确保不同节点
|
||||
---
|
||||
|
||||
apiVersion: mysql.presslabs.org/v1alpha1
|
||||
kind: MysqlDatabase
|
||||
metadata:
|
||||
@@ -117,7 +116,7 @@ spec:
|
||||
|
||||
err error
|
||||
chartURL = "https://artifactory.yizhisec.com:443/artifactory/filestore/hsv3/charts/mysql-operator-0.6.3.tgz"
|
||||
mysqlDir = filepath.Join(opt.Cfg.Make.Dir, "dependency", "mysql")
|
||||
mysqlDir = filepath.Join(m.workdir, "dependency", "mysql")
|
||||
chartFile = filepath.Join(mysqlDir, "mysql-operator-0.6.3.tgz")
|
||||
clusterFile = filepath.Join(mysqlDir, "cluster.yaml")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user