0.0.0-202177121237 • Published 4 years ago

@kubernetes-models/knative v0.0.0-202177121237

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@kubernetes-models/knative

Knative models.

Installation

Install with npm.

npm install @kubernetes-models/knative

Usage

import { Service } from "@kubernetes-models/knative/serving.knative.dev/v1/Service";

// Create a service
const service = new Service({
  metadata: { name: "hello" },
  spec: {
    template: {
      metadata: { name: "hello-world" },
      spec: {
        containers: [
          {
            image: "gcr.io/knative-samples/helloworld-go",
            ports: [{ containerPort: 8080 }]
          }
        ]
      }
    }
  }
});

// Validate against JSON schema
service.validate();

License

MIT

2.4.1

1 year ago

2.4.2

1 year ago

2.3.2

2 years ago

2.4.0

2 years ago

2.3.0

3 years ago

2.3.1

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago