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

Fix kubernetes manifest #3

Merged
merged 9 commits into from
Sep 8, 2022
Merged

Fix kubernetes manifest #3

merged 9 commits into from
Sep 8, 2022

Conversation

uchinda-sph
Copy link

depends_on not working with kubernetes_manifest its an open issue

as a workaround we can use kubectl_manifest
https://medium.com/@danieljimgarcia/dont-use-the-terraform-kubernetes-manifest-resource-6c7ff4fe629a

@uchinda-sph uchinda-sph requested review from lawliet89, niroz89 and a team September 8, 2022 02:14

metadata = {
name = "${lower(each.value.name)}-runner-deployment"
namespace = var.chart_namespace

Choose a reason for hiding this comment

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

Why don't we stick with this and change this to

namespace = helm_release.namespace

?

Then there will be an implicit dependency.

Copy link
Author

Choose a reason for hiding this comment

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

Yea it should work let me test it, Thanks

@uchinda-sph uchinda-sph marked this pull request as ready for review September 8, 2022 03:27
@uchinda-sph uchinda-sph merged commit e710400 into main Sep 8, 2022
@uchinda-sph uchinda-sph deleted the fix-kubernetes-manifest branch September 8, 2022 03:31
@niroz89
Copy link

niroz89 commented Oct 17, 2022

The dependency is not fixed, it's a known limitation CRD must exist before CR creation, detailed discussion:
Possible workaround is to split into two apply.

  1. Comment out org runner creation and apply
  2. Create org runners

hashicorp/terraform-provider-kubernetes#1367

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.

3 participants