-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#12: Beginning to integrate the upbound official Upjet generated AWS …
…provider
- Loading branch information
1 parent
3d4a682
commit d54bb40
Showing
13 changed files
with
102 additions
and
20 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,20 @@ | ||
--- | ||
# Use the spec.group/spec.versions[0].name defined in the XRD | ||
apiVersion: crossplane.jonashackt.io/v1alpha1 | ||
# Use the spec.claimName or spec.name specified in the XRD | ||
kind: ObjectStorage | ||
metadata: | ||
# Only claims are namespaced, unlike XRs. | ||
namespace: default | ||
name: managed-s3 | ||
spec: | ||
# The compositionRef specifies which Composition this XR will use to compose | ||
# resources when it is created, updated, or deleted. | ||
compositionRef: | ||
name: objectstorage-composition | ||
|
||
# Parameters for the Composition to provide the Managed Resources (MR) with | ||
# to create the actual infrastructure components | ||
parameters: | ||
bucketName: microservice-ui-nuxt-js-static-bucket2 | ||
region: eu-central-1 |
File renamed without changes.
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,10 @@ | ||
apiVersion: meta.pkg.crossplane.io/v1 | ||
kind: Configuration | ||
metadata: | ||
name: s3-bucket-example | ||
spec: | ||
crossplane: | ||
version: ">=v1.9" | ||
dependsOn: | ||
- provider: crossplanecontrib/provider-aws | ||
version: ">=v0.33.0" |
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,52 @@ | ||
--- | ||
apiVersion: apiextensions.crossplane.io/v1 | ||
kind: CompositeResourceDefinition | ||
metadata: | ||
# XRDs must be named 'x<plural>.<group>' | ||
name: xobjectstorages.crossplane.jonashackt.io | ||
spec: | ||
# This XRD defines an XR in the 'crossplane.jonashackt.io' API group. | ||
# The XR or Claim must use this group together with the spec.versions[0].name as it's apiVersion, like this: | ||
# 'crossplane.jonashackt.io/v1alpha1' | ||
group: crossplane.jonashackt.io | ||
|
||
# XR names should always be prefixed with an 'X' | ||
names: | ||
kind: XObjectStorage | ||
plural: xobjectstorages | ||
# This type of XR offers a claim, which should have the same name without the 'X' prefix | ||
claimNames: | ||
kind: ObjectStorage | ||
plural: objectstorages | ||
|
||
# default Composition when none is specified (must match metadata.name of a provided Composition) | ||
# e.g. in composition.yaml | ||
defaultCompositionRef: | ||
name: objectstorage-composition | ||
|
||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
referenceable: true | ||
# OpenAPI schema (like the one used by Kubernetes CRDs). Determines what fields | ||
# the XR (and claim) will have. Will be automatically extended by crossplane. | ||
# See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/ | ||
# for full CRD documentation and guide on how to write OpenAPI schemas | ||
schema: | ||
openAPIV3Schema: | ||
type: object | ||
properties: | ||
spec: | ||
type: object | ||
# We define 2 needed parameters here one has to provide as XR or Claim spec.parameters | ||
properties: | ||
parameters: | ||
type: object | ||
properties: | ||
bucketName: | ||
type: string | ||
region: | ||
type: string | ||
required: | ||
- bucketName | ||
- region |
File renamed without changes.
File renamed without changes.
File renamed without changes.