You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just making same as in https://codefresh.io/docs/docs/deploy-to-kubernetes/kubernetes-templating/
Got error:
...
Pulling image codefresh/cf-deploy-kubernetes:master
Digest: sha256:bf2dd51daba391b46999ecb0bcae3dd7eb0acf989d17218ea73cb2641b97901e
Status: Image is up to date for codefresh/cf-deploy-kubernetes:master
------------------------------
�[32mExecuting command:�[39m /cf-deploy-kubernetes kubernetes-manifest.yml
Server minor version: 15
Warning: No variable was found in kubernetes-manifest.yml, syntax is {{VAR}}
---> Kubernetes objects to deploy in kubernetes-manifest.yml :
Error: unknown flag: --no-headers
Examples:
# Convert 'pod.yaml' to latest version and print to stdout.
kubectl convert -f pod.yaml
# Convert the live state of the resource specified by 'pod.yaml' to the latest version
# and print to stdout in JSON format.
kubectl convert -f pod.yaml --local -o json
# Convert all files under current directory to latest version and create them all.
kubectl convert -f . | kubectl create -f -
Options:
--allow-missing-template-keys=true: If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.
-f, --filename=[]: Filename, directory, or URL to files to need to get converted.
-k, --kustomize='': Process the kustomization directory. This flag can't be used together with -f or -R.
--local=true: If true, convert will NOT try to contact api-server but run locally.
-o, --output='yaml': Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file.
--output-version='': Output the formatted object with the given group version (for ex: 'extensions/v1beta1').
-R, --recursive=false: Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.
--template='': Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
--validate=true: If true, use a schema to validate the input before sending it
Usage:
kubectl convert -f FILENAME [options]
Use "kubectl options" for a list of global command-line options (applies to all commands).
unknown flag: --no-headers
Failed to parse kubernetes-manifest.yml with kubectl...
Using alternative parsing method...
---> Submitting a deployment to Kubernetes by
kubectl --context XXX --namespace YYY apply
error: no objects passed to apply
ERROR: Deployment submitting Failed
Reading environment variable exporting file contents.
Reading environment variable exporting file contents.
�[31m[SYSTEM]
�[31mMessage�[39m �[31mFailed to run freestyle step: ZZZ�[39m
�[32mCaused by�[39m Container for step title: ZZZ, step type: freestyle, operation: Freestyle step. Failed with
exit code: 1
�[32mDocumentation Link�[39m https://codefresh.io/docs/docs/codefresh-yaml/steps/freestyle/
�[32mExit code�[39m 1
�[32mName�[39m NonZeroExitCodeError �[0m
The text was updated successfully, but these errors were encountered:
Just making same as in
https://codefresh.io/docs/docs/deploy-to-kubernetes/kubernetes-templating/
Got error:
The text was updated successfully, but these errors were encountered: