From 4e8c5e5e19a5f0a7a2efda036646d98557d04a9e Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Fri, 25 Sep 2015 10:24:38 -0700 Subject: [PATCH] install the legacy v1 API for make_secret.go in http-nginx example --- examples/https-nginx/README.md | 2 +- examples/https-nginx/make_secret.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/https-nginx/README.md b/examples/https-nginx/README.md index fb4027bf10c..6eb57c8cb79 100644 --- a/examples/https-nginx/README.md +++ b/examples/https-nginx/README.md @@ -38,7 +38,7 @@ It uses an [nginx server block](http://wiki.nginx.org/ServerBlockExample) to ser ### Generate certificates -First generate a self signed rsa key and certificate that the server can use for TLS. +First generate a self signed rsa key and certificate that the server can use for TLS. This step invokes the make_secret.go script in the same directory, which uses the kubernetes api to generate a secret json config in /tmp/secret.json. ```sh $ make keys secret KEY=/tmp/nginx.key CERT=/tmp/nginx.crt SECRET=/tmp/secret.json diff --git a/examples/https-nginx/make_secret.go b/examples/https-nginx/make_secret.go index 3c6913c9da0..3853637b46f 100644 --- a/examples/https-nginx/make_secret.go +++ b/examples/https-nginx/make_secret.go @@ -29,6 +29,9 @@ import ( "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/latest" "k8s.io/kubernetes/pkg/runtime" + + // This installs the legacy v1 API + _ "k8s.io/kubernetes/pkg/api/install" ) // TODO: