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

Add service account to support deploying from CI/CD #9

Merged
merged 4 commits into from
Feb 6, 2020

Conversation

tobiasmcnulty
Copy link
Member

@tobiasmcnulty tobiasmcnulty commented Feb 1, 2020

Depends on #7 which should be merged first.

The service/role definitions are heavily based on: https://www.digitalocean.com/community/tutorials/how-to-automate-deployments-to-digitalocean-kubernetes-with-circleci

This seems to work but does complicate things a little for normal deploys. Is this a useful feature to have and if so are there any ways we could simplify things?

To do:

  • change base branch back to master before merging

@tobiasmcnulty tobiasmcnulty force-pushed the service-account branch 3 times, most recently from 2a9bacf to f12d8e1 Compare February 2, 2020 17:57
@tobiasmcnulty tobiasmcnulty changed the title [WIP] Add service account to support deploying from CI/CD Add service account to support deploying from CI/CD Feb 2, 2020
@tobiasmcnulty tobiasmcnulty changed the base branch from registry-secret to master February 4, 2020 18:36
Copy link
Member

@copelco copelco left a comment

Choose a reason for hiding this comment

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

Worked for me. I did hit #12 once, but successive deploys worked. Added one comment.


- name: Create/update templates in Kubernetes
k8s:
api_key: "{{ k8s_auth_api_key }}"
Copy link
Member

@copelco copelco Feb 4, 2020

Choose a reason for hiding this comment

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

Should we support a path that doesn't require a deploy account? One idea would be to use the default(omit) pattern here and only perform the above deploy-account tasks or call out to another tasks file if k8s_auth_host is defined. I also see the value in always using the deploy account, so just an idea.

Copy link
Member

Choose a reason for hiding this comment

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

Opened #13 for this idea

@copelco copelco merged commit 16a1fdd into master Feb 6, 2020
@copelco copelco deleted the service-account branch February 6, 2020 21:58
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