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
$ kubectl get crossplane | |
Warning: Please use v1beta1 version of this resource that has identical schema. | |
NAME ESTABLISHED OFFERED AGE | |
compositeresourcedefinition.apiextensions.crossplane.io/xs3buckets.crossplane.jonashackt.io True True 23m | |
NAME AGE | |
composition.apiextensions.crossplane.io/s3bucket 2d17h | |
NAME INSTALLED HEALTHY PACKAGE AGE | |
provider.pkg.crossplane.io/provider-aws True True crossplane/provider-aws:v0.22.0 4d21h |
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
$ kubectl apply -f claim.yaml | |
error: error validating "claim.yaml": error validating data: [ValidationError(S3Bucket.metadata): unknown field "crossplane.io/external-name" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta_v2, ValidationError(S3Bucket.spec): unknown field "parameters" in io.jonashackt.crossplane.v1alpha1.S3Bucket.spec, ValidationError(S3Bucket.spec.writeConnectionSecretToRef): missing required field "namespace" in io.jonashackt.crossplane.v1alpha1.S3Bucket.spec.writeConnectionSecretToRef, ValidationError(S3Bucket.spec): missing required field "bucketName" in io.jonashackt.crossplane.v1alpha1.S3Bucket.spec, ValidationError(S3Bucket.spec): missing required field "region" in io.jonashackt.crossplane.v1alpha1.S3Bucket.spec]; if you choose to ignore these errors, turn validation off with --validate=false |
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
--- | |
# 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: |
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
--- | |
apiVersion: apiextensions.crossplane.io/v1 | |
kind: Composition | |
metadata: | |
name: objectstorage-composition | |
labels: | |
# An optional convention is to include a label of the XRD. This allows | |
# easy discovery of compatible Compositions. | |
crossplane.io/xrd: xobjectstorages.crossplane.jonashackt.io | |
# The following label marks this Composition for AWS. This label can |
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
$ kubectl get crds | grep crossplane.jonashackt.io | |
objectstorages.crossplane.jonashackt.io 2022-06-27T09:54:18Z | |
xobjectstorages.crossplane.jonashackt.io 2022-06-27T09:54:18Z |
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
--- | |
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' |
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
apiVersion: aws.crossplane.io/v1beta1 | |
kind: ProviderConfig | |
metadata: | |
name: default | |
spec: | |
credentials: | |
source: Secret | |
secretRef: | |
namespace: crossplane-system | |
name: aws-creds |
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
$ kubectl get provider | |
NAME INSTALLED HEALTHY PACKAGE AGE | |
provider-aws True Unknown crossplane/provider-aws:v0.22.0 13s |
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
$ kubectl get providerrevision | |
NAME HEALTHY REVISION IMAGE STATE DEP-FOUND DEP-INSTALLED AGE | |
providerrevision.pkg.crossplane.io/provider-aws-2189bc61e0bd True 1 crossplane/provider-aws:v0.22.0 Inactive 6d22h | |
providerrevision.pkg.crossplane.io/provider-aws-d87796863f95 True 2 crossplane/provider-aws:v0.28.1 Active 43h |
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
apiVersion: pkg.crossplane.io/v1 | |
kind: Provider | |
metadata: | |
name: provider-aws | |
spec: | |
package: crossplane/provider-aws:v0.28.1 | |
packagePullPolicy: Always | |
revisionActivationPolicy: Automatic | |
revisionHistoryLimit: 1 |
NewerOlder