Hello guys, Just started using pulumi for k8s proj...
# general
l
Hello guys, Just started using pulumi for k8s projects, and I am having a hard time creating a custom resources with yaml piped data, for instance: This is my pulumi resource
Copy code
const albController = new k8s.apiextensions.CustomResource('alb-controller', {
  apiVersion: 'argoproj.io/v1alpha1',
  kind: 'Application',
  metadata: {
    name: 'alb-controller',
    namespace: 'argocd',
    finalizers: ['resources-finalizer.argocd.argoproj.io'],
  },
  spec: {
    project: 'default',
    source: {
      repoURL: 'https://bitbucket.org/mycharts/infra.git',
      targetRevision: 'main',
      path: 'k8s/charts/alb-controller',
      helm: {
        image: {
          repository: '123456789.dkr.ecr.eu-west-1.amazonaws.com/backend',
          pullPolicy: 'IfNotPresent',
          tag: 'latest',
        },
      },
    },
  },
}, { dependsOn: [argocd] })