generated from crossplane/upjet-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
202 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
package repository | ||
package blueprint | ||
|
||
import "github.com/upbound/upjet/pkg/config" | ||
|
||
// Configure configures individual resources by adding custom ResourceConfigurators. | ||
func Configure(p *config.Provider) { | ||
p.AddResourceConfigurator("vra_blueprint", func(r *config.Resource) { | ||
|
||
r.ShortGroup = "blueprint" | ||
r.Version = "v1alpha1" | ||
}) | ||
p.AddResourceConfigurator("vra_blueprint", func(r *config.Resource) { | ||
|
||
p.AddResourceConfigurator("vra_blueprint_version", func(r *config.Resource) { | ||
|
||
r.ShortGroup = "blueprint.version" | ||
r.Version = "v1alpha1" | ||
}) | ||
} | ||
r.ShortGroup = "blueprint" | ||
r.Version = "v1alpha1" | ||
r.References["project_id"] = config.Reference{ | ||
Type: "github.com/ankasoftco/upjet-provider-vra/apis/project/v1alpha1.Blueprint", | ||
} | ||
}) | ||
|
||
p.AddResourceConfigurator("vra_blueprint_version", func(r *config.Resource) { | ||
|
||
r.ShortGroup = "blueprint.version" | ||
r.Version = "v1alpha1" | ||
r.References["project_id"] = config.Reference{ | ||
Type: "Blueprint", //github.com/crossplane-contrib/upjet-provider-vra/apis/blueprint/v1alpha1.Blueprint | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package repository | ||
package deployment | ||
|
||
import "github.com/upbound/upjet/pkg/config" | ||
|
||
// Configure configures individual resources by adding custom ResourceConfigurators. | ||
func Configure(p *config.Provider) { | ||
p.AddResourceConfigurator("vra_deployment", func(r *config.Resource) { | ||
r.ShortGroup = "deployment" | ||
r.Version = "v1alpha1" | ||
}) | ||
} | ||
p.AddResourceConfigurator("vra_deployment", func(r *config.Resource) { | ||
r.ShortGroup = "deployment" | ||
r.Version = "v1alpha1" | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package repository | ||
package project | ||
|
||
import "github.com/upbound/upjet/pkg/config" | ||
|
||
// Configure configures individual resources by adding custom ResourceConfigurators. | ||
func Configure(p *config.Provider) { | ||
p.AddResourceConfigurator("vra_project", func(r *config.Resource) { | ||
p.AddResourceConfigurator("vra_project", func(r *config.Resource) { | ||
|
||
r.ShortGroup = "project" | ||
r.Version = "v1alpha1" | ||
}) | ||
} | ||
r.ShortGroup = "project" | ||
r.Version = "v1alpha1" | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: blueprint.version.crossplane.io/v1alpha1 | ||
kind: Blueprint | ||
metadata: | ||
name: test-blueprint-1 | ||
spec: | ||
forProvider: | ||
name: 'test-blueprint-1' | ||
description: 'test-blueprint-1 - alpcan - caner' | ||
|
||
projectIdRef: | ||
name: 'test-project-1' | ||
|
||
providerConfigRef: | ||
name: vra-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.