-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Initial Kustomize work #785
Conversation
Codecov Report
@@ Coverage Diff @@
## master #785 +/- ##
==========================================
+ Coverage 71.83% 72.78% +0.95%
==========================================
Files 65 63 -2
Lines 5213 4807 -406
==========================================
- Hits 3745 3499 -246
+ Misses 1183 1050 -133
+ Partials 285 258 -27
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Can you put the files inside a kustomize/
directory? Do they need to be at the root?
runatlantis.io/docs/deployment.md
Outdated
#### Required | ||
```yaml | ||
containers: | ||
- name: atlantis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spacing is off here
bundle.yaml
Outdated
fsGroup: 1000 # Atlantis group (1000) read/write access to volumes. | ||
containers: | ||
- name: atlantis | ||
image: runatlantis/atlantis:v0.9.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you follow the same pattern as the Kubernetes manifest deployment instructions and use
image: runatlantis/atlantis:v<VERSION> # 1. Replace <VERSION> with the most recent release.
Then include this in your patch instructions? Or how do kustomize templates usually work? If that's not possible then add updating this file to the release instructions in CONTRIBUTING.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can - however from most examples I see, a lot of these bundles will be generated upon release and include the latest version in the bundle/kustomization file. It gives the user the a way to run the remote resource without any manifest issues. Sure, Atlantis won't run if they don't patch the environment variables - however that's the application failing here, rather than the actual Kubernetes manifest.
Let me know your thoughts on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. Can you add a bullet to our CONTRIBUTING.md
file under "releases" to say update the kustomize/bundle.yaml
file. You'll see we already say to update main.go
.
I believe the We could move the bundle into it's own directory |
In that doc they use |
Thanks for the feedback - updated the documentation accordingly along with the requested changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Can you squash your commits and then we're ready to merge. |
Thanks - squashed down for merging. 👍 |
Towards #424.
Here I provide a base
bundle.yaml
that I took from the example in the documentation. Ideally, I'd prefer to generate this with a script upon release to update the container image.I've provided some base structural documentation of what envvars need to be patched from the kustomize manifest.
I'd love to hear some feedback and how we can continue on this. Thanks!