Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Begin Gradual port to go-provider-sdk #258

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Commits on Apr 24, 2024

  1. Regenerate the schema from pulumi-go-provider

    This commit uses the infer package to generate the schema. The hand-written schema has
    moved to `legacy-schema.json`. `legacy-schem.json` is still embedded in the binary, since
    the wrapped RPC provider still needs to be able to produce a schema. As resources are
    moved over the raw RPC provider to infer, they can be removed from the legacy
    schema. While it looks like the new `schema.json` file checked in with this commit is
    extremely different, there are no semantic changes. The only changes are introducing the
    module format key, re-ordering `"required"` and `"requiredInputs"` and adding the `"type":
    "object",` indicator on objects (the default). For completeness, I have included the
    entire diff:
    
    ```
    $ json-diff original-schema.json schema.json
     {
    +  meta: {
    +    moduleFormat: "(.*)"
    +  }
       types: {
         pulumiservice:index:DeploymentSettingsGitAuthBasicAuth: {
           required: [
    +        "password"
             ...
    -        "password"
           ]
         }
         pulumiservice:index:GCPOIDCConfiguration: {
           required: [
             ...
    -        "workloadPoolId"
             ...
             ...
    +        "workloadPoolId"
           ]
         }
         pulumiservice:index:AzureOIDCConfiguration: {
           required: [
             ...
    +        "subscriptionId"
             ...
    -        "subscriptionId"
           ]
         }
       }
       resources: {
         pulumiservice:index:AgentPool: {
    +      type: "object"
         }
         pulumiservice:index:AccessToken: {
    +      type: "object"
           required: [
    +        "description"
             ...
    -        "description"
             ...
           ]
         }
         pulumiservice:index:Team: {
    +      type: "object"
           required: [
    +        "members"
             ...
             ...
    -        "members"
           ]
         }
         pulumiservice:index:TeamAccessToken: {
    +      type: "object"
           required: [
             ...
    +        "organizationName"
             ...
    -        "organizationName"
             ...
           ]
           requiredInputs: [
             ...
    +        "organizationName"
             ...
    -        "organizationName"
           ]
         }
         pulumiservice:index:OrgAccessToken: {
    +      type: "object"
         }
         pulumiservice:index:Webhook: {
    +      type: "object"
           required: [
             ...
             ...
    +        "format"
    +        "name"
             ...
             ...
    -        "name"
    -        "format"
           ]
         }
         pulumiservice:index:DeploymentSettings: {
    +      type: "object"
           requiredInputs: [
             ...
             ...
    +        "sourceContext"
             ...
    -        "sourceContext"
           ]
         }
         pulumiservice:index:StackTag: {
    +      type: "object"
           required: [
    +        "name"
             ...
             ...
             ...
    -        "name"
             ...
           ]
           requiredInputs: [
    +        "name"
             ...
             ...
             ...
    -        "name"
             ...
           ]
         }
         pulumiservice:index:TeamStackPermission: {
    +      type: "object"
           requiredInputs: [
    -        "team"
             ...
    +        "permission"
             ...
             ...
    -        "permission"
    +        "team"
           ]
         }
       }
     }
    ```
    iwahbe committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    024d0d5 View commit details
    Browse the repository at this point in the history
  2. Pass config via context

    iwahbe committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    6b5850f View commit details
    Browse the repository at this point in the history
  3. Fix tests

    iwahbe committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    ea207a6 View commit details
    Browse the repository at this point in the history
  4. Addopt new resources

    iwahbe committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    4c592bd View commit details
    Browse the repository at this point in the history
  5. Regenerate SDKs

    iwahbe committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    f4ab399 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9bf337d View commit details
    Browse the repository at this point in the history
  7. Take config by reference

    iwahbe committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    22d57c0 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Update pulumi-go-provider

    iwahbe committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    0b9e63c View commit details
    Browse the repository at this point in the history
  2. Fix Makefile

    iwahbe committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    94d6514 View commit details
    Browse the repository at this point in the history