Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Configure affinity to be a variable to allow overriding #18

Merged
merged 5 commits into from
Nov 8, 2018
Merged

Configure affinity to be a variable to allow overriding #18

merged 5 commits into from
Nov 8, 2018

Conversation

s3than
Copy link
Contributor

@s3than s3than commented Oct 4, 2018

AS per issue #13

Copy link
Contributor

@adilyse adilyse left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together! It will help folks be able to run on Minikube and support more complicated setups as well.

There are a couple of minor formatting fixes needed, but these changes should also have tests before we merge them. Specifically, it'd be good to test:

  • The default defined values populate correctly, including indentation
  • The null case creates correct and usable templates

templates/server-statefulset.yaml Outdated Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
@s3than
Copy link
Contributor Author

s3than commented Nov 2, 2018

Thanks I'll get on this in the next couple of days.

Add test cases
Improve variable commenting
@s3than
Copy link
Contributor Author

s3than commented Nov 5, 2018

@adilyse
Updated details and added tests.

Copy link
Contributor

@adilyse adilyse left a comment

Choose a reason for hiding this comment

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

Thank you for updating the PR! The code looks good and is ready to merge, but there are a few things that need to be changed in the tests. I'm happy to help you get them updated, or I can go ahead and make the changes and merge everything if you'd prefer.

I'd like to apologize for not having more information about writing tests for you before. I've written up some guidelines about the process here.

test/unit/server-statefulset.bats Outdated Show resolved Hide resolved
test/unit/server-statefulset.bats Outdated Show resolved Hide resolved
test/unit/server-statefulset.bats Outdated Show resolved Hide resolved
--set 'server.affinity=' \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
[ "${actual}" = "true" ]
Copy link
Contributor

Choose a reason for hiding this comment

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

To match the changed condition above:

Suggested change
[ "${actual}" = "true" ]
[ "${actual}" = "false" ]

test/unit/server-statefulset.bats Outdated Show resolved Hide resolved
@s3than
Copy link
Contributor Author

s3than commented Nov 6, 2018

@adilyse Thanks for the feedback, I'll go over #55 and your comments and update.

* consul/master: (35 commits)
  Update CHANGELOG.md
  Pipe through the default flag for catalog sync
  Update to latest consul-k8s version
  update CHANGELOG to show connect injector RBAC support
  making serviceaccount consistent with other tests
  addressing feedback from review
  update CHANGELOG
  update CHANGELOG
  add test for mutatingwebhook namespace
  update CHANGELOG
  Rename files, add create to role
  fix: use a "-" instead of a ":" for names
  namespace is now set using helm release
  connectInject: adding tests, unique service account name per helm install
  Update CHANGELOG.md
  Add command continue indications where needed
  Update connect-inject-deployment.yaml
  Fix connect inject configuration name
  feat: create serviceAccount for sync catalog cluster role bind
  fix: move .Values.rbac.enabled to .Values.syncCatalog.rbac.enabled
  ...
@s3than
Copy link
Contributor Author

s3than commented Nov 8, 2018

Hi @adilyse

Updated the indent to be cleaner
Updated the tests to check for either null or default
Format tidy of the bats file to be in its own section.
Thanks

Copy link
Contributor

@adilyse adilyse left a comment

Choose a reason for hiding this comment

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

This looks great! I'll go ahead and merge it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants