Skip to content

Commit

Permalink
feat(amp): added prometheusservice amp workspace
Browse files Browse the repository at this point in the history
Signed-off-by: haarchri <chhaar30@googlemail.com>
  • Loading branch information
haarchri committed Jan 5, 2022
1 parent 17f1ae9 commit da23af5
Show file tree
Hide file tree
Showing 18 changed files with 1,338 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PROJECT_REPO := github.com/crossplane/$(PROJECT_NAME)
PLATFORMS ?= linux_amd64 linux_arm64

CODE_GENERATOR_COMMIT ?= 285d87b66b62fbfb859986ddf74c9f9b6ae743fb
GENERATED_SERVICES="apigatewayv2,athena,cloudfront,cloudwatchlogs,dynamodb,elbv2,ec2,efs,glue,iot,kafka,kms,lambda,mq,rds,secretsmanager,servicediscovery,sfn,transfer,ram"
GENERATED_SERVICES="apigatewayv2,athena,cloudfront,cloudwatchlogs,dynamodb,elbv2,ec2,efs,glue,iot,kafka,kms,lambda,mq,prometheusservice,rds,secretsmanager,servicediscovery,sfn,transfer,ram"

# kind-related versions
KIND_VERSION ?= v0.11.1
Expand Down
2 changes: 2 additions & 0 deletions apis/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import (
lambdav1alpha1 "github.com/crossplane/provider-aws/apis/lambda/v1alpha1"
mqv1alpha1 "github.com/crossplane/provider-aws/apis/mq/v1alpha1"
notificationv1alpha3 "github.com/crossplane/provider-aws/apis/notification/v1alpha1"
prometheusservice "github.com/crossplane/provider-aws/apis/prometheusservice/v1alpha1"
ramv1alpha1 "github.com/crossplane/provider-aws/apis/ram/v1alpha1"
rdsv1alpha1 "github.com/crossplane/provider-aws/apis/rds/v1alpha1"
redshiftv1alpha1 "github.com/crossplane/provider-aws/apis/redshift/v1alpha1"
Expand Down Expand Up @@ -117,6 +118,7 @@ func init() {
iotv1alpha1.SchemeBuilder.AddToScheme,
athenav1alpha1.SchemeBuilder.AddToScheme,
ramv1alpha1.SchemeBuilder.AddToScheme,
prometheusservice.SchemeBuilder.AddToScheme,
)
}

Expand Down
20 changes: 20 additions & 0 deletions apis/prometheusservice/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
Copyright 2022 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

// CustomWorkspaceParameters includes custom fields about WorkspaceParameters.
type CustomWorkspaceParameters struct{}
16 changes: 16 additions & 0 deletions apis/prometheusservice/v1alpha1/generator-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
model_name: amp
ignore:
field_paths:
- CreateWorkspaceInput.ClientToken
resources:
Workspace:
fields:
PrometheusEndpoint:
is_read_only: true
from:
operation: DescribeWorkspace
path: Workspace.PrometheusEndpoint
exceptions:
errors:
404:
code: ResourceNotFoundException
24 changes: 24 additions & 0 deletions apis/prometheusservice/v1alpha1/zz_doc.go

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

38 changes: 38 additions & 0 deletions apis/prometheusservice/v1alpha1/zz_enums.go

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

0 comments on commit da23af5

Please sign in to comment.