Skip to content

Conversation

@akashkeshari
Copy link
Owner


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

found_running = found_running + 1
time.sleep(2)
if pod.metadata.name.startswith('connect-agent'):
for container_status in pod.status.container_statuses:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is is possible to merge checking container status and container availability into one step ?

if pod.metadata.name.startswith('connect-agent'):
for container_status in pod.status.container_statuses:
if container_status.name == 'connect-agent':
connect_agent_state = container_status.state.running

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you explain what are the possible values of container_status.state.running ?.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its is 'None' if the container is not running. If container is running, it contains the start-time of the container

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

@akashkeshari akashkeshari merged commit 678c2b7 into master Mar 16, 2020
akashkeshari pushed a commit that referenced this pull request Jan 22, 2021
)

* Push updates to k8sconfiguration keys and fix issue with known hosts

* Remove print statement

* Increase CLI version and add to changelog

* Remove deprecated CLIError and reduce history.rst text

* Joinnis/add validators (#1)

* Push updates to k8sconfiguration keys and fix issue with known hosts

* Add validations for naming

* Remove print statement

* Add validator testing to the set of tests

* Add unit testing and greater scenario test coverage

* Delete test_kubernetesconfiguration_scenario.py

* Remove dots from the regex for naming

* Add the scenario tests back

* Add good key scenario test to scenarios

* Remove numeric checks for configurations

* Reduce scneario testing

* Move validation of configuration name into creation command

* Add table formatting for list and show

* Update version

* Update the error message for validation failure

* Update the test cases for the new error messages

* Change error message and regex check

* Add proper formatting to code files

* Updated final formatting checks

* Updated error messages

* Update error message and help text

* Final update to error messaging

* Update test_validators.py

* Update based on PR comments

Co-authored-by: Jonathan Innis <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants