Skip to content

Fix issue #64#66

Merged
mdesouky merged 4 commits intodevelopfrom
bugfix/fix-issue-#64
Dec 11, 2023
Merged

Fix issue #64#66
mdesouky merged 4 commits intodevelopfrom
bugfix/fix-issue-#64

Conversation

@mdesouky
Copy link
Copy Markdown
Contributor

@mdesouky mdesouky commented Dec 8, 2023

Fixes erroring out when there are empty directories under uptick-cluster/apps

Fixes erroring out when there are empty directories under uptick-cluster/apps
Comment thread gitops/utils/apps.py Outdated

def is_valid_app_directory(directory: PosixPath) -> bool:
files = ["deployment.yml", "secrets.yml"]
files_exist = False
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can simplify this greatly with any() and a list comprehension.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

can we work with only one file ? or do we have to have both files for working app directory ?

Copy link
Copy Markdown
Collaborator

@uptickmetachu uptickmetachu left a comment

Choose a reason for hiding this comment

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

Conditional approval; there are a few more places you'll need to bump.
CTRL+F for 0.9.21

@mdesouky mdesouky merged commit b7bde5d into develop Dec 11, 2023
@mdesouky mdesouky deleted the bugfix/fix-issue-#64 branch December 11, 2023 00:25
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.

2 participants