New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rugal/pulumi-istio

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rugal/pulumi-istio

## Usage

1.0.6
latest
Source
npm
Version published
Weekly downloads
443
-21.73%
Maintainers
1
Weekly downloads
 
Created
Source

Istio custom resource definition generated for Typescript

Usage

installation

yarn add @rugal/pulumi-istio

create CRD just like K8S

import * as istio from "@rugal/pulumi-istio";

const vs = new istio.networking.v1beta1.VirtualService(name, {
      metadata: {
        name,
        namespace: args.namespace,
      },
      spec: {
        gateways: args.gateway,
        hosts: args.hosts,
        http: [
          {
            match: [
              {
                uri: { prefix: "/" },
              },
            ],
            route: [
              {
                destination: {
                  host: this.service.metadata.name,
                  port: {
                    number: 80,
                  },
                },
              },
            ],
          },
        ],
      },
    }, {
      parent: this,
    });

Contribution

  • Generate the base

    crd2pulumi --nodejsPath src istio/manifests/charts/base/crds/crd-all.gen.yaml
    
  • Replace | undefined> with >

    sed -i 's/ | undefined>/>/g' src/*
    
  • Replace pulumi.Output<ObjectMeta> with pulumi.Output<k8s.types.output.meta.v1.ObjectMeta>;
    Also add import * as k8s from "@pulumi/kubernetes"; on the top of the changed files.
    The later part is tedious, one must manually add it.

Keywords

pulumi

FAQs

Package last updated on 29 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts