Skip to content

Commit

Permalink
feat(amp): added prometheusservice amp workspace, rebased and added t…
Browse files Browse the repository at this point in the history
…agger

Signed-off-by: haarchri <chhaar30@googlemail.com>
  • Loading branch information
haarchri committed Mar 7, 2022
1 parent cc8f87a commit 0fc4a7c
Show file tree
Hide file tree
Showing 17 changed files with 1,600 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import (
mqv1alpha1 "github.com/crossplane/provider-aws/apis/mq/v1alpha1"
neptunev1alpha1 "github.com/crossplane/provider-aws/apis/neptune/v1alpha1"
notificationv1alpha1 "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 @@ -133,6 +134,7 @@ func init() {
kinesisv1alpha1.SchemeBuilder.AddToScheme,
neptunev1alpha1.SchemeBuilder.AddToScheme,
snsv1beta1.SchemeBuilder.AddToScheme,
prometheusservice.SchemeBuilder.AddToScheme,
)
}

Expand Down
19 changes: 19 additions & 0 deletions apis/prometheusservice/generator-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
model_name: amp
ignore:
field_paths:
- CreateWorkspaceInput.ClientToken
resource_names:
- AlertManagerDefinition
- RuleGroupsNamespace
resources:
Workspace:
fields:
PrometheusEndpoint:
is_read_only: true
from:
operation: DescribeWorkspace
path: Workspace.PrometheusEndpoint
exceptions:
errors:
404:
code: ResourceNotFoundException
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{}
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.

60 changes: 60 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 0fc4a7c

Please sign in to comment.