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

BUG: The env parameter brought in by gen is missing #4058

Closed
muicoder opened this issue Oct 10, 2023 · 1 comment · Fixed by #4060
Closed

BUG: The env parameter brought in by gen is missing #4058

muicoder opened this issue Oct 10, 2023 · 1 comment · Fixed by #4060
Labels
kind/bug Something isn't working

Comments

@muicoder
Copy link
Contributor

muicoder commented Oct 10, 2023

Sealos Version

v4.3/v4.4

How to reproduce the bug?

sealos --debug gen docker.io/labring/kubernetes:v1.24.17 docker.io/labring/flannel:v0.22.3 docker.io/labring/cert-manager:v1.12.5 docker.io/labring/endpoints-operator:v0.2.1 --port 234 --masters 10.112.15.15,10.112.15.16,10.112.15.17 --nodes 10.112.15.18 \
--env disableApparmor=true \
-e defaultVIP=172.172.172.172 | grep defaultVIP
2023-10-10T14:35:27 debug renderTextFromEnv: replaces: map[$(SEALOS_SYS_CRI_ENDPOINT):/var/run/containerd/containerd.sock $(SEALOS_SYS_IMAGE_ENDPOINT):/var/run/image-cri-shim.sock $(criData):/var/lib/containerd $(defaultVIP):10.103.97.2 $(disableApparmor):false $(registryConfig):/etc/registry $(registryData):/var/lib/registry $(registryDomain):sealos.hub $(registryPassword):passw0rd $(registryPort):5000 $(registryUsername):admin $(sandboxImage):pause:3.7 $SEALOS_SYS_CRI_ENDPOINT:/var/run/containerd/containerd.sock $SEALOS_SYS_IMAGE_ENDPOINT:/var/run/image-cri-shim.sock $criData:/var/lib/containerd $defaultVIP:10.103.97.2 $disableApparmor:false $registryConfig:/etc/registry $registryData:/var/lib/registry $registryDomain:sealos.hub $registryPassword:passw0rd $registryPort:5000 $registryUsername:admin $sandboxImage:pause:3.7 ${SEALOS_SYS_CRI_ENDPOINT}:/var/run/containerd/containerd.sock ${SEALOS_SYS_IMAGE_ENDPOINT}:/var/run/image-cri-shim.sock ${criData}:/var/lib/containerd ${defaultVIP}:10.103.97.2 ${disableApparmor}:false ${registryConfig}:/etc/registry ${registryData}:/var/lib/registry ${registryDomain}:sealos.hub ${registryPassword}:passw0rd ${registryPort}:5000 ${registryUsername}:admin ${sandboxImage}:pause:3.7] ; text: $defaultVIP

The result is $(defaultVIP):10.103.97.2

sealos --debug gen docker.io/labring/kubernetes:v1.24.17 docker.io/labring/flannel:v0.22.3 docker.io/labring/cert-manager:v1.12.5 docker.io/labring/endpoints-operator:v0.2.1 --port 234 --masters 10.112.15.15,10.112.15.16,10.112.15.17 --nodes 10.112.15.18 \
--env disableApparmor=true \
-e defaultVIP=172.172.172.172 | grep disableApparmor
2023-10-10T14:39:04 debug renderTextFromEnv: replaces: map[$(SEALOS_SYS_CRI_ENDPOINT):/var/run/containerd/containerd.sock $(SEALOS_SYS_IMAGE_ENDPOINT):/var/run/image-cri-shim.sock $(criData):/var/lib/containerd $(defaultVIP):10.103.97.2 $(disableApparmor):false $(registryConfig):/etc/registry $(registryData):/var/lib/registry $(registryDomain):sealos.hub $(registryPassword):passw0rd $(registryPort):5000 $(registryUsername):admin $(sandboxImage):pause:3.7 $SEALOS_SYS_CRI_ENDPOINT:/var/run/containerd/containerd.sock $SEALOS_SYS_IMAGE_ENDPOINT:/var/run/image-cri-shim.sock $criData:/var/lib/containerd $defaultVIP:10.103.97.2 $disableApparmor:false $registryConfig:/etc/registry $registryData:/var/lib/registry $registryDomain:sealos.hub $registryPassword:passw0rd $registryPort:5000 $registryUsername:admin $sandboxImage:pause:3.7 ${SEALOS_SYS_CRI_ENDPOINT}:/var/run/containerd/containerd.sock ${SEALOS_SYS_IMAGE_ENDPOINT}:/var/run/image-cri-shim.sock ${criData}:/var/lib/containerd ${defaultVIP}:10.103.97.2 ${disableApparmor}:false ${registryConfig}:/etc/registry ${registryData}:/var/lib/registry ${registryDomain}:sealos.hub ${registryPassword}:passw0rd ${registryPort}:5000 ${registryUsername}:admin ${sandboxImage}:pause:3.7] ; text: $defaultVIP

The result is $disableApparmor:false

What is the expected behavior?

No response

What do you see instead?

No response

Operating environment

- Sealos version: v4.3.5/v4.4
- Docker version: /
- Kubernetes version: v1.24.17
- Operating system: Ubuntu 20.04.6 LTS
- Runtime environment:
- Cluster size: 3 masters + 1 nodes
- Additional information:

Additional information

No response

@muicoder muicoder added the kind/bug Something isn't working label Oct 10, 2023
@muicoder
Copy link
Contributor Author

@fengxsong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant