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

Jlopezbarb/fix depends on error #1928

Merged
merged 4 commits into from Nov 16, 2021
Merged

Conversation

jLopezbarb
Copy link
Contributor

Fixes #1891

Proposed changes

  • acídate depends on after merge all the files

Signed-off-by: Javier López Barba <javier@okteto.com>
Signed-off-by: Javier López Barba <javier@okteto.com>
Signed-off-by: Javier López Barba <javier@okteto.com>
@jLopezbarb jLopezbarb requested a review from a team November 3, 2021 16:37
@codecov
Copy link

codecov bot commented Nov 3, 2021

Codecov Report

Merging #1928 (4d08dc8) into master (ff91f37) will increase coverage by 0.03%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1928      +/-   ##
==========================================
+ Coverage   33.67%   33.71%   +0.03%     
==========================================
  Files         121      121              
  Lines       13736    13736              
==========================================
+ Hits         4626     4631       +5     
+ Misses       8610     8603       -7     
- Partials      500      502       +2     
Impacted Files Coverage Δ
pkg/model/stack_serializer.go 65.11% <ø> (-0.45%) ⬇️
pkg/model/stack.go 66.53% <87.50%> (+3.51%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ff91f37...4d08dc8. Read the comment docs.

return fmt.Errorf(" Service '%s' depends on service '%s' which is undefined.", svcName, dependentSvc)
}
if condition.Condition == DependsOnServiceCompleted && !s.Services[dependentSvc].IsJob() {
return fmt.Errorf(" Service '%s' is not a job. Please change the reset policy so that it is not always in service '%s' ", dependentSvc, dependentSvc)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this sentence:

Please change the reset policy so that it is not always in service

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It means that they have set a DependsOnServiceCompleted with a service with a restart policy set to always. We only support that kind of condition with jobs where the restart policy can not be always.
It was the error that we had but it's not explained properly. Any suggestion?

Copy link
Contributor

Choose a reason for hiding this comment

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

@rberrelleza ?? It should say restart policy, not reset policy

Signed-off-by: Javier López Barba <javier@okteto.com>
@jLopezbarb jLopezbarb merged commit c118937 into master Nov 16, 2021
@jLopezbarb jLopezbarb deleted the jlopezbarb/fix-depends-on-error branch November 16, 2021 15:09
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.

depends_on fails across stack manifests
2 participants