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

Simplify the docs for installing via terraform #948

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

addyess
Copy link
Contributor

@addyess addyess commented Jan 10, 2025

Overview

Ensure that the user provides a deployment channel for the charms rather than rely on a default in the charm modules.

Details

  • stop ignoring the channel field, and make the user provide one -- one that matches for both charms
  • source the tf modules from github rather than locally checked out modules
  • indicates one should run terraform plan before running apply

@addyess addyess requested a review from a team as a code owner January 10, 2025 22:00
Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

LGTM, minor nit

provider "juju" {}

resource "juju_model" "this" {
name = "juju-myk8s" # name of the juju model
Copy link
Contributor

Choose a reason for hiding this comment

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

this comment feels a bit redundant but I'm also fine with keeping it if you think we should

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a better name than this here? Maybe rather my-model?

Copy link
Contributor

@louiseschmidtgen louiseschmidtgen 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 the improvement of my docs! Some questions here:

provider "juju" {}

resource "juju_model" "this" {
name = "juju-myk8s" # name of the juju model
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a better name than this here? Maybe rather my-model?

Comment on lines +43 to +46
variable "k8s" {
description = "K8s deployment shared configuration"
channel = string
default = "1.xx/stable"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't quite like this variable declaration here. First it should be in an input file and second this should be closer to where it is set >> sub-module.

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