Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Bump examples and monitoring group to v1alpha2 #34

Merged
merged 2 commits into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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

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

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

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

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

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

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

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

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

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

8 changes: 4 additions & 4 deletions apis/zz_register.go

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

23 changes: 23 additions & 0 deletions config/monitoring/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package monitoring

import (
"github.com/crossplane/terrajet/pkg/config"

"github.com/crossplane-contrib/provider-jet-gcp/config/common"
)

// Configure configures individual resources by adding custom
// ResourceConfigurators.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("google_monitoring_alert_policy", func(r *config.Resource) {
r.Version = common.VersionV1alpha2
})

p.AddResourceConfigurator("google_monitoring_notification_channel", func(r *config.Resource) {
r.Version = common.VersionV1alpha2
})

p.AddResourceConfigurator("google_monitoring_uptime_check_config", func(r *config.Resource) {
r.Version = common.VersionV1alpha2
})
}
2 changes: 2 additions & 0 deletions config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/crossplane-contrib/provider-jet-gcp/config/container"
"github.com/crossplane-contrib/provider-jet-gcp/config/dataflow"
"github.com/crossplane-contrib/provider-jet-gcp/config/dataproc"
"github.com/crossplane-contrib/provider-jet-gcp/config/monitoring"
"github.com/crossplane-contrib/provider-jet-gcp/config/project"
"github.com/crossplane-contrib/provider-jet-gcp/config/sql"
"github.com/crossplane-contrib/provider-jet-gcp/config/storage"
Expand Down Expand Up @@ -87,6 +88,7 @@ func GetProvider() *tjconfig.Provider {
compute.Configure,
dataflow.Configure,
dataproc.Configure,
monitoring.Configure,
project.Configure,
storage.Configure,
sql.Configure,
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudplatform/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: cloudplatform.gcp.jet.crossplane.io/v1alpha1
apiVersion: cloudplatform.gcp.jet.crossplane.io/v1alpha2
kind: ServiceAccount
metadata:
name: example-service-account
Expand Down
2 changes: 1 addition & 1 deletion examples/compute/instance.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: compute.gcp.jet.crossplane.io/v1alpha1
apiVersion: compute.gcp.jet.crossplane.io/v1alpha2
kind: Instance
metadata:
name: example
Expand Down
2 changes: 1 addition & 1 deletion examples/container/cluster.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: container.gcp.jet.crossplane.io/v1alpha1
apiVersion: container.gcp.jet.crossplane.io/v1alpha2
kind: Cluster
metadata:
name: example-gke-cluster
Expand Down
2 changes: 1 addition & 1 deletion examples/container/nodepool.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: container.gcp.jet.crossplane.io/v1alpha1
apiVersion: container.gcp.jet.crossplane.io/v1alpha2
kind: NodePool
metadata:
name: example-node-pool
Expand Down
2 changes: 1 addition & 1 deletion examples/monitoring/alertpolicy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: monitoring.gcp.jet.crossplane.io/v1alpha1
apiVersion: monitoring.gcp.jet.crossplane.io/v1alpha2
kind: AlertPolicy
metadata:
name: example
Expand Down
2 changes: 1 addition & 1 deletion examples/monitoring/notificationchannel.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: monitoring.gcp.jet.crossplane.io/v1alpha1
apiVersion: monitoring.gcp.jet.crossplane.io/v1alpha2
kind: NotificationChannel
metadata:
name: example
Expand Down
2 changes: 1 addition & 1 deletion examples/monitoring/uptimecheckconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: monitoring.gcp.jet.crossplane.io/v1alpha1
apiVersion: monitoring.gcp.jet.crossplane.io/v1alpha2
kind: UptimeCheckConfig
metadata:
name: example
Expand Down
2 changes: 1 addition & 1 deletion examples/sql/database.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: sql.gcp.jet.crossplane.io/v1alpha1
apiVersion: sql.gcp.jet.crossplane.io/v1alpha2
kind: Database
metadata:
name: example-database
Expand Down
2 changes: 1 addition & 1 deletion examples/sql/instance.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: sql.gcp.jet.crossplane.io/v1alpha1
apiVersion: sql.gcp.jet.crossplane.io/v1alpha2
kind: DatabaseInstance
metadata:
name: example-instance
Expand Down
2 changes: 1 addition & 1 deletion examples/sql/sslcert.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: sql.gcp.jet.crossplane.io/v1alpha1
apiVersion: sql.gcp.jet.crossplane.io/v1alpha2
kind: SSLCert
metadata:
name: example
Expand Down
2 changes: 1 addition & 1 deletion examples/sql/user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: example-sql-user
namespace: crossplane-system
---
apiVersion: sql.gcp.jet.crossplane.io/v1alpha1
apiVersion: sql.gcp.jet.crossplane.io/v1alpha2
kind: User
metadata:
name: example-user
Expand Down
2 changes: 1 addition & 1 deletion examples/storage/bucket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
annotations:
# Note that this will be the actual bucket name, so it has to be globally
# unique/available.
crossplane.io/external-name: crossplane-example-bucket-0099
crossplane.io/external-name: crossplane-example-bucket
# This annotation is a workaround for the following bug which sets
# create/read timeouts to 1 min:
# "https://github.com/crossplane-contrib/provider-jet-gcp/issues/12
Expand Down
8 changes: 4 additions & 4 deletions internal/controller/monitoring/alertpolicy/zz_controller.go

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

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- jsonPath: .metadata.creationTimestamp
name: AGE
type: date
name: v1alpha1
name: v1alpha2
schema:
openAPIV3Schema:
description: AlertPolicy is the Schema for the AlertPolicys API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- jsonPath: .metadata.creationTimestamp
name: AGE
type: date
name: v1alpha1
name: v1alpha2
schema:
openAPIV3Schema:
description: NotificationChannel is the Schema for the NotificationChannels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- jsonPath: .metadata.creationTimestamp
name: AGE
type: date
name: v1alpha1
name: v1alpha2
schema:
openAPIV3Schema:
description: UptimeCheckConfig is the Schema for the UptimeCheckConfigs API
Expand Down