mirror of
https://github.com/containers/podman.git
synced 2025-05-21 00:56:36 +08:00
Add --no-trunc
flag to maintain original annotation length
Adds a `--no-trunc` flag to `podman kube generate` preventing the annotations from being trimmed at 63 characters. However, due to the fact the annotations will not be trimmed, any annotation that is longer than 63 characters means this YAML will no longer be Kubernetes compatible. However, these YAML files can still be used with `podman kube play` due to the addition of the new flag below. Adds a `--no-trunc` flag to `podman kube play` supporting YAML files with annotations that were not truncated to the Kubernetes maximum length of 63 characters. Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
This commit is contained in:
@ -34,6 +34,11 @@ Note that the generated Kubernetes YAML file can be used to re-run the deploymen
|
||||
|
||||
Output to the given file instead of STDOUT. If the file already exists, `kube generate` refuses to replace it and returns an error.
|
||||
|
||||
#### **--no-trunc**
|
||||
|
||||
Don't truncate annotations to the Kubernetes maximum length of 63 characters.
|
||||
Note: enabling this flag means the generated YAML file is not Kubernetes compatible and can only be used with `podman kube play`
|
||||
|
||||
#### **--replicas**, **-r**=*replica count*
|
||||
|
||||
The value to set `replicas` to when generating a **Deployment** kind.
|
||||
|
@ -214,6 +214,10 @@ When no network option is specified and *host* network mode is not configured in
|
||||
|
||||
This option conflicts with host added in the Kubernetes YAML.
|
||||
|
||||
#### **--no-trunc**
|
||||
|
||||
Use annotations that are not truncated to the Kubernetes maximum length of 63 characters
|
||||
|
||||
#### **--publish**=*[[ip:][hostPort]:]containerPort[/protocol]*
|
||||
|
||||
Define or override a port definition in the YAML file.
|
||||
|
Reference in New Issue
Block a user