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

replace kubernetes_job with kubectl_manifest #13

Merged
merged 7 commits into from
Mar 24, 2022
Merged

Conversation

aidanmelen
Copy link
Owner

@aidanmelen aidanmelen commented Mar 23, 2022

Fixes

Proposed Changes

  • replace kubernetes_job with kubectl_manifest. This simplifies the module quite a bit. The provider handles create or patch functionality in a single resource. What's more, since the provider uses the k8s golang libraries, this solution also run remote operations in Terraform Cloud or in CI/CD.
  • overhauled documentation/examples with .terraform-docs templates.
  • added terraform-aws-modules/http to ensure the cluster is ACTIVE before the kubectl_manifest runs.
  • created test/mock for hacky rapid testing.

Upgrade Notes

You will see the kubernetes_job get replaced with the kubectl_manifest when upgrading from v0.8.3. The apply will automatically recreate the aws-auth configmap.

… it is clear what terraform is used in replace and what terraform is used to patch. overhauled documentation/examples with .terraform-docs templates.
@aidanmelen aidanmelen added the enhancement New feature or request label Mar 23, 2022
… issue where but the configmap does not exist. in this case, we have to execute kubectl create when it does not exist.
@aidanmelen aidanmelen changed the title V1.0.0 stable major refactor to use kubectl provider Mar 23, 2022
…rce. It is much more simple to implement. It handles create or patch. Manages the data fields correctly for paritially managed resources. Supports remote operations. kind of a win/win/win over the kubernetes job resource.
@aidanmelen aidanmelen changed the title major refactor to use kubectl provider replace kubernetes_job with kubectl_manifest Mar 24, 2022
@aidanmelen aidanmelen merged commit 3f72a72 into main Mar 24, 2022
@aidanmelen aidanmelen deleted the v1.0.0-stable branch March 24, 2022 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to initialize aws-auth configmap with only self managed node group
1 participant