How to use the stable.example.com function in stable

To help you get started, we’ve selected a few stable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github godaddy / kubernetes-client / examples / using-crds.js View on Github external
//
    // Create the CRD with the Kubernetes API
    //
    const create = await client.apis['apiextensions.k8s.io'].v1beta1.customresourcedefinitions.post({ body: crd })
    console.log('Create: ', create)

    //
    // Add endpoints to our client
    //
    client.addCustomResourceDefinition(crd)

    //
    // List all the resources of the new type
    //
    const all = await client.apis['stable.example.com'].v1.namespaces('default').crontabs.get()
    console.log('All: ', all)

    //
    // Get a specific resources.
    //
    const one = await client.apis['stable.example.com'].v1.namespaces('default').crontabs('foo').get()
    console.log('One: ', one)
  } catch (err) {
    console.error('Error: ', err)
  }
}

stable

A stable array sort for JavaScript

MIT
Latest version published 6 years ago

Package Health Score

55 / 100
Full package analysis