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

Support existing resources without annotations #108

Closed
wants to merge 2 commits into from

Conversation

captncraig
Copy link

I get a failure in the case where I am applying a stack that has a resource in it that

  • exists in the cluster (maybe created with some other process)
  • has no annotations.

Pharos errors in such a case with ERROR: NoMethodError : undefined method []' for nil:NilClass`

This change will allow pharos to begin managing such a resource even though the checksum does not exist at first.

I get a failure in the case where I am applying a stack that has a resource in it that 

- exists in the cluster (maybe created with some other process)
- has no annotations.

Pharos errors in such a case with `ERROR: NoMethodError : undefined method `[]' for nil:NilClass`
@jakolehm jakolehm added the bug Something isn't working label Feb 17, 2019
lib/k8s/stack.rb Outdated Show resolved Hide resolved
Co-Authored-By: captncraig <[email protected]>
@jakolehm
Copy link
Contributor

Rubocop is not happy.

@jakolehm
Copy link
Contributor

jakolehm commented Apr 5, 2019

@captncraig could you fix the rubocop error? (see https://travis-ci.com/kontena/k8s-client/jobs/178815291#L865)

@jakolehm
Copy link
Contributor

Similar fix: #130

@jakolehm jakolehm closed this May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants