Skip to content

Commit

Permalink
Adding in test for #133
Browse files Browse the repository at this point in the history
  • Loading branch information
rshade committed Dec 23, 2024
1 parent 88ade76 commit 81b91e6
Showing 1 changed file with 39 additions and 16 deletions.
55 changes: 39 additions & 16 deletions examples/simple-cert-manager-ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,33 @@ 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,
},
installCRDs: true,
helmOptions: {
namespace: ns.metadata.name,
version: "v1.15.3",
},
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"
}
}
});

// Create a cluster issuer that uses self-signed certificates.
Expand All @@ -18,19 +41,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;

0 comments on commit 81b91e6

Please sign in to comment.