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

Refactor terraform to support 0.12, and bump k8s to v1.14.6 #33

Merged
merged 12 commits into from
Nov 27, 2019

Conversation

smalltown
Copy link
Contributor

@smalltown smalltown commented Sep 5, 2019

@pragmaticivan
Copy link

Just created a cluster with that PR, runs great. Thanks!

@smalltown
Copy link
Contributor Author

Wow ! @pragmaticivan thank for your feedback very much,
but I only push the ESK related commit to this PR,
I still cooking the self-hosted part,
and the release will be blocked by one third party provider Ignition PR

@smalltown smalltown changed the title v1.0.0 Vishwakarma v1.0.0 Sep 6, 2019
@smalltown
Copy link
Contributor Author

Done of the development, but not complete yet, need to

  1. wait for third party provider (ignition) issue fixed
  2. modify the document
  3. code review

Copy link

@alanchchen alanchchen left a comment

Choose a reason for hiding this comment

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

Looks almost good to me. However I think there are lots of things that can be polished.
E.g., Most maps we used as input variables can be replaced by object, to make them more descriptive and more understandable.

We can do such refactoring in upcoming releases.

gid = 232
mode = 256
uid = var.etcd_user_id
gid = var.etcd_user_id

Choose a reason for hiding this comment

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

Would be better if there is a new var var.etcd_group_id or we can use an object like

{
  uid = 232
  gid = 232
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, let me add it in next commit


content {
content = "${coalesce(var.content, join("", data.template_file.kubeconfig.*.rendered))}"
content = coalesce(var.content, join("", data.template_file.kubeconfig.*.rendered))

Choose a reason for hiding this comment

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

Can we remove this join ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

let me check it, thank for reviewing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if disable user to pass their own kubeconfig content, then this join can be disabled

]
}

output "content" {
value = "${coalesce(var.content, join("", data.template_file.kubeconfig.*.rendered))}"
value = coalesce(var.content, join("", data.template_file.kubeconfig.*.rendered))

Choose a reason for hiding this comment

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

ditto

@kairen kairen added do-not-merge/work-in-progress PR is work in progress, don not merge it. kind/feature New feature and request. labels Nov 8, 2019
@kairen kairen removed the do-not-merge/work-in-progress PR is work in progress, don not merge it. label Nov 26, 2019
@kairen kairen self-requested a review November 26, 2019 13:53
@kairen kairen changed the title Vishwakarma v1.0.0 Refactor terraform to support 0.12, and bump k8s to v1.14.6 Nov 27, 2019
@kairen kairen merged commit 414a8f5 into master Nov 27, 2019
@kairen kairen deleted the feature/v1.0.0 branch December 2, 2019 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature and request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants