Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

johnbuhay/tfm-chartmuseum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tfm-chartmuseum

Generates a custom yaml to be Helm installed with stable/chartmuseum

Getting Started

Initial design is for use with a Tectonic like installation on AWS.

Example chartmuseum.tf file utilizing this module

#!terraform

module chartmuseum {
  source = "git::https://github.com/jnbnyc/tfm-chartmuseum?ref=v1.0.0"

  aws_extra_tags           = "${map("kubernetesCluster", "${var.cluster_name}",)}"
  force_destroy_s3_buckets = false
  kube2iam_enabled         = true
  prefix                   = "${var.cluster_name}"
}

# use the module output to write the yaml to it's destination
resource local_file chartmuseum_custom_values {
  content  = "\n${module.chartmuseum.values_yaml}"
  filename = "./generated/${local.workspace}/charts/chartmuseum/custom.yaml"
}

variable cluster_name {
  type = "string"
}

output chartmuseum_values_yaml {
  value = "${local_file.chartmuseum_custom_values.content}"
}

TODO

  • Create a cross-region replication s3 bucket for resilience
  • Support other common options for custom.yaml, especially for other STORAGE providers

About

Generates a custom.yaml for helm to install stable/chartmuseum

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages