[Agent][GO] - fix deploy bugs

This commit is contained in:
zeaslity
2024-07-17 16:22:40 +08:00
parent 034ae3d25b
commit b7daaddf1e
47 changed files with 25342 additions and 26 deletions

View File

@@ -14,6 +14,12 @@ type NfsDeployConfig struct {
}
func NFSDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
if commonEnv.NFSServerIP == "" {
log.Error("Nfs server ip is nil")
return false
}
return commonEnv.ParseCommonEnvToApplyFile(CmiiNfsTemplate, z_dep.NfsApplyFilePath)
}

View File

@@ -82,8 +82,6 @@ metadata:
# replace with namespace where provisioner is deployed
namespace: kube-system #与RBAC文件中的namespace保持一致
spec:
imagePullSecrets:
- name: harborsecret
replicas: 1
selector:
matchLabels:
@@ -95,6 +93,8 @@ spec:
labels:
app: nfs-client-provisioner
spec:
imagePullSecrets:
- name: harborsecret
serviceAccountName: nfs-client-provisioner
containers:
- name: nfs-client-provisioner

View File

@@ -21,13 +21,13 @@ metadata:
name: test-pod
spec:
imagePullSecrets:
- name: harborsecret
- name: harborsecret
containers:
- name: test-pod
{{- if .HarborPort }}
image: {{ .HarborIPOrCustomImagePrefix }}:{{ .HarborPort }}/cmii/busybox:latest
image: {{ .HarborIPOrCustomImagePrefix }}:{{ .HarborPort }}/cmii/busybox:latest
{{- else }}
image: {{ .HarborIPOrCustomImagePrefix }}busybox:latest
image: {{ .HarborIPOrCustomImagePrefix }}busybox:latest
{{- end }}
command:
- "/bin/sh"