diff --git a/examples/simple-cert-manager-ts/index.ts b/examples/simple-cert-manager-ts/index.ts index a0c9b52..2ffdc5f 100644 --- a/examples/simple-cert-manager-ts/index.ts +++ b/examples/simple-cert-manager-ts/index.ts @@ -1,38 +1,39 @@ import * as k8s from "@pulumi/kubernetes"; import * as certmanager from "@pulumi/kubernetes-cert-manager"; +import * as pulumi from "@pulumi/pulumi"; // Create a sandbox namespace. const ns = new k8s.core.v1.Namespace("sandbox-ns"); // Install a cert manager into our cluster. const manager = new certmanager.CertManager("cert-manager", { - installCRDs: true, - helmOptions: { - namespace: ns.metadata.name, - version: "v1.15.3", + installCRDs: true, + helmOptions: { + namespace: ns.metadata.name, + version: "v1.15.3", + }, + image: { + repository: pulumi.output("public.ecr.aws/eks-anywhere-dev/cert-manager/cert-manager-controller"), + tag: "v1.15.3-eks-a-v0.21.3-dev-build.0" + }, + cainjector: { + "image": { + repository: pulumi.output("public.ecr.aws/eks-anywhere-dev/cert-manager/cert-manager-cainjector"), + tag: "v1.15.3-eks-a-v0.21.3-dev-build.0", }, + }, + startupapicheck: { + "image": { + repository: pulumi.output("public.ecr.aws/eks-anywhere-dev/cert-manager/cert-manager-startupapicheck"), + tag: "v1.15.3-eks-a-v0.21.3-dev-build.0", + } + }, + webhook: { image: { - repository: "public.ecr.aws/eks-anywhere-dev/cert-manager/cert-manager-controller", - tag: "v1.15.3-eks-a-v0.21.3-dev-build.0" - }, - cainjector: { - "image": { - repository: "public.ecr.aws/eks-anywhere-dev/cert-manager/cert-manager-cainjector", - tag: "v1.15.3-eks-a-v0.21.3-dev-build.0", - }, - }, - startupapicheck: { - "image": { - repository: "public.ecr.aws/eks-anywhere-dev/cert-manager/cert-manager-startupapicheck", - tag: "v1.15.3-eks-a-v0.21.3-dev-build.0", - } - }, - webhook: { - image: { - repository: "public.ecr.aws/eks-anywhere-dev/cert-manager/cert-manager-webhook", - tag: "v1.15.3-eks-a-v0.21.3-dev-build.0" - } + repository: "public.ecr.aws/eks-anywhere-dev/cert-manager/cert-manager-webhook", + tag: "v1.15.3-eks-a-v0.21.3-dev-build.0" } + } }); // Create a cluster issuer that uses self-signed certificates. @@ -41,19 +42,19 @@ const manager = new certmanager.CertManager("cert-manager", { // https://cert-manager.io/docs/configuration/selfsigned/ // for additional details on other signing providers. const issuer = new k8s.apiextensions.CustomResource( - "issuer", - { - apiVersion: "cert-manager.io/v1", - kind: "Issuer", - metadata: { - name: "selfsigned-issuer", - namespace: ns.metadata.name, - }, - spec: { - selfSigned: {}, - }, + "issuer", + { + apiVersion: "cert-manager.io/v1", + kind: "Issuer", + metadata: { + name: "selfsigned-issuer", + namespace: ns.metadata.name, + }, + spec: { + selfSigned: {}, }, - { dependsOn: manager } + }, + { dependsOn: manager } ); export const certManagerStatus = manager.status; diff --git a/provider/pkg/provider/chart.go b/provider/pkg/provider/chart.go index 90b660c..e3c20e7 100644 --- a/provider/pkg/provider/chart.go +++ b/provider/pkg/provider/chart.go @@ -137,7 +137,7 @@ type CertManagerImage struct { // You can manage a registry with `registry: quay.io`. Registry *string `pulumi:"registry"` // You can manage a registry with `repository: jetstack/cert-manager-controller`. - Repository *string `pulumi:"repository"` + Repository pulumi.StringPtrInput `pulumi:"repository"` // Override the image tag to deploy by setting this variable. // If no value is set, the chart's appVersion will be used. Tag *string `pulumi:"tag"`