Skip to content

Commit

Permalink
Adding in fix, for repository to take output, fixes #133
Browse files Browse the repository at this point in the history
  • Loading branch information
rshade committed Dec 20, 2024
1 parent 839a147 commit f4e9d0d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 37 deletions.
73 changes: 37 additions & 36 deletions examples/simple-cert-manager-ts/index.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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;
2 changes: 1 addition & 1 deletion provider/pkg/provider/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit f4e9d0d

Please sign in to comment.