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

Add example manifests for the converted singleton list API versions #1334

Merged
merged 7 commits into from
Jun 13, 2024

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented May 30, 2024

Description of your changes

Depends on:

This PR introduces the example manifests for the converted singleton list API versions. It also:

  • Refactors some catch-all manifests into individual unit test manifests.
  • Adds the missing example-id annotations for some manifests. However, there are still over 100 manifests with missing annotations.

An example conversion is as follows:
The old (v1beta1) NodeGroup.eks API:

apiVersion: eks.aws.upbound.io/v1beta1
kind: NodeGroup
metadata:
  name: sample-eks-ng
spec:
  forProvider:
    region: us-west-1
    clusterNameRef: 
      name: sample-eks-cluster
    nodeRoleArnRef:
      name: sample-node-role
    subnetIdRefs:
      - name: sample-subnet1
      - name: sample-subnet2
    scalingConfig:
      - minSize: 1
        maxSize: 1
        desiredSize: 1

The new v1beta2 API for this resource:

apiVersion: eks.aws.upbound.io/v1beta2
kind: NodeGroup
metadata:
  annotations:
    meta.upbound.io/example-id: eks/v1beta2/nodegroup
  name: sample-eks-ng
spec:
  forProvider:
    region: us-west-1
    clusterNameRef:
      name: sample-eks-cluster
    nodeRoleArnRef:
      name: sample-node-role
    subnetIdRefs:
      - name: sample-subnet1
      - name: sample-subnet2
    scalingConfig:
      minSize: 1
      maxSize: 1
      desiredSize: 1

Please note the converted singleton list spec.forProvider.scalingConfig as usual. The converted versions have been converted using upjet's example manifest singleton list conversion utility. See crossplane/upjet#397 for further details.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

    message: 'async create failed: failed to create the resource: [{0 creating Connect
      Instance: ServiceQuotaExceededException: Quota limit reached for number of instance
      for account:153891904029. Please request service limit increase before retrying.  []}]'
case.go:363: conversion webhook for elasticbeanstalk.aws.upbound.io/v1beta2, Kind=Application failed: Post "https://provider-aws-elasticbeanstalk.upbound-system.svc:9443/convert?timeout=30s": dial tcp 10.96.123.137:9443: connect: connection refused

Manually tested:

> kubectl get application.v1beta2.elasticbeanstalk.aws.upbound.io/first-app-test-qwerty-test -o yaml | yq '.status.conditions'

- lastTransitionTime: "2024-06-10T21:54:26Z"
  reason: Available
  status: "True"
  type: Ready
- lastTransitionTime: "2024-06-10T21:54:23Z"
  reason: ReconcileSuccess
  status: "True"
  type: Synced
- lastTransitionTime: "2024-06-10T21:54:25Z"
  reason: Success
  status: "True"
  type: LastAsyncOperation
- lastTransitionTime: "2024-06-10T21:55:11Z"
  reason: UpToDate
  status: "True"
  type: Test

@ulucinar
Copy link
Collaborator Author

/test-examples="examples/opensearchserverless/v1beta1/securityconfig.yaml"

@ulucinar ulucinar force-pushed the converted-examples branch from 0cb506c to 17e6b24 Compare May 30, 2024 11:10
@ulucinar
Copy link
Collaborator Author

/test-examples="examples/eks/v1beta2/nodegroup.yaml"

@ulucinar
Copy link
Collaborator Author

/test-examples="examples/ec2/v1beta2/vpcendpoint.yaml"

@ulucinar ulucinar force-pushed the converted-examples branch from 17e6b24 to 9085bbd Compare May 31, 2024 07:32
@ulucinar
Copy link
Collaborator Author

/test-examples="examples/eks/v1beta2/nodegroup.yaml"

@ulucinar
Copy link
Collaborator Author

/test-examples="examples/ec2/v1beta2/vpcendpoint.yaml"

@ulucinar
Copy link
Collaborator Author

/test-examples="examples/opensearchserverless/v1beta1/securityconfig.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/backup/v1beta2/plan.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/cloudfront/v1beta2/fieldlevelencryptionconfig.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/elasticache/v1beta2/replicationgroup.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/eks/v1beta2/nodepool.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/ec2/v1beta2/route.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/glue/v1beta2/job.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/connect/v1beta2/routingprofile.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/cloudfront/v1beta2/fieldlevelencryptionprofile.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/autoscaling/v1beta2/attachment.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/apigateway/v1beta2/stage.yaml"

@turkenf turkenf force-pushed the converted-examples branch from c75424b to 1cc1210 Compare May 31, 2024 15:28
@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/apigateway/v1beta2/usageplan.yaml"

@turkenf turkenf force-pushed the converted-examples branch from 1cc1210 to 32431d7 Compare May 31, 2024 16:42
@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/apigateway/v1beta2/stage.yaml"

@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/cloudfront/v1beta2/fieldlevelencryptionprofile.yaml"

@turkenf turkenf force-pushed the converted-examples branch from 5b97c53 to 310ceaa Compare May 31, 2024 18:04
@turkenf
Copy link
Collaborator

turkenf commented May 31, 2024

/test-examples="examples/cloudfront/v1beta2/fieldlevelencryptionconfig.yaml"

@mbbush mbbush mentioned this pull request Jun 10, 2024
3 tasks
@turkenf
Copy link
Collaborator

turkenf commented Jun 10, 2024

/test-examples="examples/elasticbeanstalk/v1beta2/application.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 10, 2024

/test-examples="examples/firehose/v1beta2/deliverystream.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 10, 2024

/test-examples="examples/fis/v1beta2/experimenttemplate.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 10, 2024

/test-examples="examples/elasticsearch/v1beta2/domain.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 10, 2024

/test-examples="examples/elasticbeanstalk/v1beta1/application.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 10, 2024

/test-examples="examples/elasticbeanstalk/v1beta2/application.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 11, 2024

/test-examples="examples/autoscaling/v1beta2/attachment.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 11, 2024

/test-examples="examples/elasticache/v1beta2/replicationgroup.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 11, 2024

/test-examples="examples/cloudfront/v1beta2/fieldlevelencryptionconfig.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 11, 2024

/test-examples="examples/backup/v1beta2/plan.yaml"

@ulucinar ulucinar force-pushed the converted-examples branch from 760d823 to db9a7ce Compare June 12, 2024 18:59
@ulucinar
Copy link
Collaborator Author

/test-examples="examples/eks/v1beta2/nodepool.yaml"

@ulucinar
Copy link
Collaborator Author

/test-examples="examples/firehose/v1beta2/deliverystream.yaml"

@ulucinar
Copy link
Collaborator Author

/test-examples="examples/eks/v1beta2/nodegroup.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 13, 2024

/test-examples="examples/cloudfront/v1beta2/fieldlevelencryptionprofile.yaml"

@turkenf
Copy link
Collaborator

turkenf commented Jun 13, 2024

/test-examples="examples/ec2/v1beta2/instance.yaml"

Copy link
Collaborator

@turkenf turkenf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @ulucinar, LGTM.

ulucinar and others added 7 commits June 13, 2024 13:59
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
…conversion

for the samlOptions field as its schema is already a single nested block.

- saml_options is thus already generated as an embedded object and not a
  singleton list.

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
- Also refactor some catch-all manifests into individual unit test
  manifests.
- Add the missing example-id annotations for some manifests. There
  are still over 100 manifests with missing annotations.

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
- examples/apigateway/v1beta2/stage.yaml
- examples/apigateway/v1beta2/usageplan.yaml
- examples/apigateway/v1beta2/methodsettings.yaml

Signed-off-by: Fatih Türken <turkenf@gmail.com>
- examples/cloudfront/v1beta2/fieldlevelencryptionprofile.yaml
- examples/cloudfront/v1beta2/fieldlevelencryptionconfig.yaml

Signed-off-by: Fatih Türken <turkenf@gmail.com>
Signed-off-by: Fatih Türken <turkenf@gmail.com>
…ources

Signed-off-by: Fatih Türken <turkenf@gmail.com>
@ulucinar ulucinar force-pushed the converted-examples branch from db9a7ce to 3113f08 Compare June 13, 2024 11:00
@ulucinar
Copy link
Collaborator Author

/test-examples="examples/ec2/v1beta2/instance.yaml"

@ulucinar
Copy link
Collaborator Author

/test-examples="examples/opensearchserverless/v1beta1/securityconfig.yaml"

@ulucinar ulucinar merged commit 57c34f2 into crossplane-contrib:main Jun 13, 2024
13 checks passed
@ulucinar ulucinar deleted the converted-examples branch June 13, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants