Skip to content

Commit

Permalink
adds opensearch
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Cooklin <joel.cooklin@gmail.com>
  • Loading branch information
jcooklin committed Aug 25, 2022
1 parent d7e875d commit b8d295e
Show file tree
Hide file tree
Showing 19 changed files with 5,036 additions and 4 deletions.
2 changes: 2 additions & 0 deletions apis/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import (
mwaav1alpha1 "github.com/crossplane-contrib/provider-aws/apis/mwaa/v1alpha1"
neptunev1alpha1 "github.com/crossplane-contrib/provider-aws/apis/neptune/v1alpha1"
notificationv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/notification/v1alpha1"
opensearchv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/opensearchservice/v1alpha1"
prometheusservice "github.com/crossplane-contrib/provider-aws/apis/prometheusservice/v1alpha1"
ramv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/ram/v1alpha1"
rdsv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/rds/v1alpha1"
Expand Down Expand Up @@ -159,6 +160,7 @@ func init() {
cloudsearchv1alpha1.AddToScheme,
apigatewayv1alpha1.AddToScheme,
cognitoidentityv1alpha1.AddToScheme,
opensearchv1alpha1.AddToScheme,
)
}

Expand Down
45 changes: 45 additions & 0 deletions apis/opensearchservice/generator-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
model_name: opensearch
ignore:
resource_names:
- Package
# - Domain
- OutboundConnection
field_paths:
# SnapshotOptions is irrelevant for OpenSearch 5.3+
- CreateDomainInput.SnapshotOptions
- CreateDomainInput.Name
- DeleteDomainInput.Name
resources:
Domain:
renames:
operations:
CreateDomain:
input_fields:
DomainName: Name
TagList: Tags
DeleteDomain:
input_fields:
DomainName: Name
DescribeDomain:
input_fields:
DomainName: Name
reconcile:
# Doing this because it takes a LONG time for the Domain's
# endpoint/endpoints field to be populated, even after the Domain's
# Processing field is set to False after creation...
requeue_on_success_seconds: 60
exceptions:
errors:
404:
code: ResourceNotFoundException
terminal_codes:
- ValidationException
hooks:
sdk_create_post_set_output:
template_path: hooks/domain/sdk_create_post_set_output.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/domain/sdk_read_one_post_set_output.go.tpl
sdk_update_pre_build_request:
template_path: hooks/domain/sdk_update_pre_build_request.go.tpl
sdk_delete_pre_build_request:
template_path: hooks/domain/sdk_delete_pre_build_request.go.tpl
3 changes: 3 additions & 0 deletions apis/opensearchservice/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package v1alpha1

type CustomDomainParameters struct{}
24 changes: 24 additions & 0 deletions apis/opensearchservice/v1alpha1/zz_doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

161 changes: 161 additions & 0 deletions apis/opensearchservice/v1alpha1/zz_domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b8d295e

Please sign in to comment.