New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@appthrust/kubernetes-models-appthrust

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appthrust/kubernetes-models-appthrust

kubernetes models for appthrust

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
3
Created
Source

@appthrust/appthrust

appthrust models.

Installation

Install with npm.

npm install @appthrust/appthrust@0.1.0

Usage

import { Project, IProject } from "@appthrust/appthrust/projects.appthrust.io/v1alpha1";

// Create a new Project
const project = new Project({
  metadata: {
    name: "my-project",
  },
  spec: {
    displayName: "My Project",
    description: "This is my first project",
    template: "nodejs",
  },
});

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

// Get the raw JSON representation
const json = project.toJSON();

// Create a new instance from JSON
const anotherProject = new Project(json);

Getting CRDs from appthrust repository

If you encounter issues with the token expiring when getting CRDs, you can clone the appthrust repository and specify the relative path to the CRD files instead.

  • Clone the appthrust repository:
git clone https://github.com/appthrust/appthrust.git
  • In your package.json, update the crd-generate.input field to point to the cloned CRD files. For example:
"crd-generate": {
  "input": [
    "../../appthrust/apps/project/crds/projects.appthrust.io.yaml"
  ],
  "output": "./gen"
}

This way, the CRDs will be read from the cloned repository instead of the token URL.

License

MIT

Keywords

kubernetes

FAQs

Package last updated on 19 Dec 2024

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