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

ERROR: Deployment submitting Failed / no objects passed to apply / unknown flag: --no-headers #28

Open
delfer opened this issue Dec 3, 2019 · 1 comment

Comments

@delfer
Copy link

delfer commented Dec 3, 2019

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

@delfer
Copy link
Author

delfer commented Dec 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant