shifter icon indicating copy to clipboard operation
shifter copied to clipboard

source-path and output-path options are not available in this latest version local CLI option

Open himanshu-gaur17 opened this issue 2 years ago • 2 comments

Hi

I checked and found that source-path and output-path options are not available in this latest version local CLI option. please add both options, so that I can use it to convert the files from local system using CLI

below are the reference option in from "./shifter convert" command:

  1. -f, --source-path
  2. -o, --output-path
  3. -t, --output-format

-- Regards, Himanshu Gaur

himanshu-gaur17 avatar Apr 20 '23 09:04 himanshu-gaur17

Hey thank you so much for taking the time to raise a issue - This is a error with the documentation which I will get updated ASAP however, the output and input flags have been depreciated in favour of simple arguments:

e.g.

shifter convert -o yaml -i yaml ./_test/yaml/multidoc/os-nginx.yaml ./out/t1_yaml

note the input and output arguments do not require a flag - this change was designed to handle cluster extracts

garybowers avatar Apr 20 '23 09:04 garybowers

Thanks Gary for sharing the information.

Now I`m able to use it and facing an issue at the time converting template to helm.

Issue: shifter is not taking care the "strategy" .

I`m sharing the strategy parameters from source-file and output-file

strategy parameters from source file:

strategy:
  activeDeadlineSeconds: <XYZ>
  resources: {}
  rollingParams:
    intervalSeconds: <XYZ>
    maxSurge: <XYZ>%
    maxUnavailable: <XYZ>%
    timeoutSeconds: <XYZ>
    updatePeriodSeconds: <XYZ>
  type: <XYZ>

strategy parameters from output file:

strategy: {}

Please help to fix this issue or suggest for taking care it.

-- Regards, Himanshu Gaur

himanshu-gaur17 avatar Apr 20 '23 14:04 himanshu-gaur17