From 35560045019752cf4a8e53c9de140ae365e434fb Mon Sep 17 00:00:00 2001 From: Payam Hekmat Date: Thu, 4 May 2017 03:14:23 -0500 Subject: [PATCH] Add dockercfg example to Kubernetes secret (#14151) --- .../providers/kubernetes/r/secret.html.markdown | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/website/source/docs/providers/kubernetes/r/secret.html.markdown b/website/source/docs/providers/kubernetes/r/secret.html.markdown index ba01c7203..ccb3f7154 100644 --- a/website/source/docs/providers/kubernetes/r/secret.html.markdown +++ b/website/source/docs/providers/kubernetes/r/secret.html.markdown @@ -33,6 +33,22 @@ resource "kubernetes_secret" "example" { } ``` +## Example Usage (Docker config) + +```hcl +resource "kubernetes_secret" "example" { + metadata { + name = "docker-cfg" + } + + data { + ".dockercfg" = "${file("${path.module}/.docker/config.json")}" + } + + type = "kubernetes.io/dockercfg" +} +``` + ## Argument Reference The following arguments are supported: