Skip to content

Instantly share code, notes, and snippets.

@AparnaKarve
Created April 13, 2020 21:09
Show Gist options
  • Save AparnaKarve/6ca205000c748d31f844a5ae36c43593 to your computer and use it in GitHub Desktop.
Save AparnaKarve/6ca205000c748d31f844a5ae36c43593 to your computer and use it in GitHub Desktop.
```
$ ocdeployer deploy -s automation-analytics -t templates --secrets-local-dir ./e2esecrets/local-secrets/ ak-aa-ci
Deploying service sets 'automation-analytics' to project 'ak-aa-ci'. Continue? [Y/n] Y
INFO:ocdeployer.utils:Running command: oc get project ak-aa-ci
INFO:ocdeployer.utils: |stdout| NAME DISPLAY NAME STATUS
INFO:ocdeployer.utils: |stdout| ak-aa-ci Active
INFO:ocdeployer.utils:Running command: oc project ak-aa-ci
INFO:ocdeployer.utils: |stdout| Already on project "ak-aa-ci" on server "https://api.insights-dev.openshift.com:443".
INFO:ocdeployer.secrets:Loaded secrets from file './e2esecrets/local-secrets/cloudwatch.yaml
INFO:ocdeployer.secrets:Loaded secrets from file './e2esecrets/local-secrets/nachobot.yml
INFO:ocdeployer.secrets:Loaded secrets from file './e2esecrets/local-secrets/automation-analytics-api.yml
INFO:ocdeployer.secrets:Loaded secrets from file './e2esecrets/local-secrets/rds-client-ca.yml
INFO:ocdeployer.secrets:Loaded secrets from file './e2esecrets/local-secrets/automation-analytics-db.yml
INFO:ocdeployer.secrets:Secret '{'name': 'quay-cloudservices-pull', 'envs': ['smoke', 'qa'], 'link': ['builder', 'default', 'deployer']}' not yet imported, trying import from project...
INFO:ocdeployer.secrets:Importing secret '{'name': 'quay-cloudservices-pull', 'envs': ['smoke', 'qa'], 'link': ['builder', 'default', 'deployer']}' from project 'secrets'
INFO:ocdeployer.utils: |stderr| Error: unknown flag: --name
INFO:ocdeployer.utils: |stderr|
INFO:ocdeployer.utils: |stderr|
INFO:ocdeployer.utils: |stderr| Usage:
INFO:ocdeployer.utils: |stderr| oc get [(-o|--output=)json|yaml|wide|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=...] (TYPE[.VERSION][.GROUP] [NAME | -l label] | TYPE[.VERSION][.GROUP]/NAME ...) [flags]
INFO:ocdeployer.utils: |stderr|
INFO:ocdeployer.utils: |stderr| Examples:
INFO:ocdeployer.utils: |stderr| # List all pods in ps output format.
INFO:ocdeployer.utils: |stderr| oc get pods
INFO:ocdeployer.utils: |stderr|
INFO:ocdeployer.utils: |stderr| # List a single replication controller with specified ID in ps output format.
INFO:ocdeployer.utils: |stderr| oc get rc redis
INFO:ocdeployer.utils: |stderr|
INFO:ocdeployer.utils: |stderr| # List all pods and show more details about them.
INFO:ocdeployer.utils: |stderr| oc get -o wide pods
INFO:ocdeployer.utils: |stderr|
INFO:ocdeployer.utils: |stderr| # List a single pod in JSON output format.
INFO:ocdeployer.utils: |stderr| oc get -o json pod redis-pod
INFO:ocdeployer.utils: |stderr|
INFO:ocdeployer.utils: |stderr| # Return only the status value of the specified pod.
INFO:ocdeployer.utils: |stderr| oc get -o template pod redis-pod --template={{.currentState.status}}
INFO:ocdeployer.utils: |stderr|
INFO:ocdeployer.utils: |stderr| Options:
INFO:ocdeployer.utils: |stderr| --all-namespaces=false: If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
INFO:ocdeployer.utils: |stderr| --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.
INFO:ocdeployer.utils: |stderr| --chunk-size=500: Return large lists in chunks rather than all at once. Pass 0 to disable. This flag is beta and may change in the future.
INFO:ocdeployer.utils: |stderr| --export=false: If true, use 'export' for the resources. Exported resources are stripped of cluster-specific information.
INFO:ocdeployer.utils: |stderr| --field-selector='': Selector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.
INFO:ocdeployer.utils: |stderr| -f, --filename=[]: Filename, directory, or URL to files identifying the resource to get from a server.
INFO:ocdeployer.utils: |stderr| --ignore-not-found=false: If the requested object does not exist the command will return exit code 0.
INFO:ocdeployer.utils: |stderr| --include-uninitialized=false: If true, the kubectl command applies to uninitialized objects. If explicitly set to false, this flag overrides other flags that make the kubectl commands apply to uninitialized objects, e.g., "--all". Objects with empty metadata.initializers are regarded as initialized.
INFO:ocdeployer.utils: |stderr| -L, --label-columns=[]: Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag options like -L label1 -L label2...
INFO:ocdeployer.utils: |stderr| --no-headers=false: When using the default or custom-column output format, don't print headers (default print headers).
INFO:ocdeployer.utils: |stderr| -o, --output='': Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See custom columns [http://kubernetes.io/docs/user-guide/kubectl-overview/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://kubernetes.io/docs/user-guide/jsonpath].
INFO:ocdeployer.utils: |stderr| --raw='': Raw URI to request from the server. Uses the transport specified by the kubeconfig file.
INFO:ocdeployer.utils: |stderr| -R, --recursive=false: Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.
INFO:ocdeployer.utils: |stderr| -l, --selector='': Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
INFO:ocdeployer.utils: |stderr| --server-print=true: If true, have the server return the appropriate table output. Supports extension APIs and CRDs.
INFO:ocdeployer.utils: |stderr| --show-kind=false: If present, list the resource type for the requested object(s).
INFO:ocdeployer.utils: |stderr| --show-labels=false: When printing, show all labels as the last column (default hide labels column)
INFO:ocdeployer.utils: |stderr| --sort-by='': If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string.
INFO:ocdeployer.utils: |stderr| --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].
INFO:ocdeployer.utils: |stderr| --use-openapi-print-columns=false: If true, use x-kubernetes-print-column metadata (if present) from the OpenAPI schema for displaying a resource.
INFO:ocdeployer.utils: |stderr| -w, --watch=false: After listing/getting the requested object, watch for changes. Uninitialized objects are excluded if no object name is provided.
INFO:ocdeployer.utils: |stderr| --watch-only=false: Watch for changes to the requested object(s), without listing/getting first.
INFO:ocdeployer.utils: |stderr|
INFO:ocdeployer.utils: |stderr| Use "oc options" for a list of global command-line options (applies to all commands).
INFO:ocdeployer.utils: |stderr|
ERROR:ocdeployer.utils:Command failed! Aborting.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment