From 264297f3037b67a5d67844abfec37afd0ad5b4af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Fern=C3=A1ndez?= <7312236+fernandezcuesta@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:11:12 +0100 Subject: [PATCH] chore: bump submodules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- .gitmodules | 2 +- Makefile | 4 +- ...z_actionserviceassociation_terraformed.go} | 44 +- ...o => zz_actionserviceassociation_types.go} | 44 +- ...> zz_actionteamassociation_terraformed.go} | 44 +- ...s.go => zz_actionteamassociation_types.go} | 44 +- .../v1alpha1/zz_generated.conversion_hubs.go | 8 +- .../v1alpha1/zz_generated.deepcopy.go | 614 +++++++++--------- .../v1alpha1/zz_generated.managed.go | 192 +++--- .../v1alpha1/zz_generated.managedlist.go | 16 +- .../v1alpha1/zz_generated.resolvers.go | 152 ++--- build | 2 +- config/actions/config.go | 18 +- config/event/config.go | 20 +- ...ion.yaml => actionserviceassociation.yaml} | 12 +- ...iation.yaml => actionteamassociation.yaml} | 8 +- examples/alert/v1alpha1/groupingsetting.yaml | 4 +- .../{actionsaction.yaml => action.yaml} | 6 +- ...ion.yaml => actionserviceassociation.yaml} | 26 +- .../actionsrunnerteamassociation.yaml | 27 - ...iation.yaml => actionteamassociation.yaml} | 22 +- examples/automation/v1alpha1/runner.yaml | 18 + .../v1alpha1/runnerteamassociation.yaml | 52 ++ .../event/v1alpha1/orchestrationglobal.yaml | 4 +- .../orchestrationglobalcachevariable.yaml | 8 +- .../v1alpha1/orchestrationintegration.yaml | 4 +- .../orchestrationservicecachevariable.yaml | 4 +- .../incident/v1alpha1/customfieldoption.yaml | 4 +- .../incident/v1alpha1/workflowtrigger.yaml | 4 +- examples/install.yaml | 6 - examples/providerconfig/.gitignore | 1 - examples/providerconfig/providerconfig.yaml | 11 - examples/providerconfig/secret.yaml.tmpl | 12 - examples/storeconfig/vault.yaml | 19 - .../v1alpha1/handoffnotificationrule.yaml | 4 +- .../zz_controller.go | 24 +- .../zz_controller.go | 24 +- internal/controller/zz_setup.go | 8 +- ...ssplane.io_actionserviceassociations.yaml} | 18 +- ...crossplane.io_actionteamassociations.yaml} | 20 +- 41 files changed, 794 insertions(+), 762 deletions(-) rename apis/automation/v1alpha1/{zz_serviceassociation_terraformed.go => zz_actionserviceassociation_terraformed.go} (64%) rename apis/automation/v1alpha1/{zz_serviceassociation_types.go => zz_actionserviceassociation_types.go} (73%) rename apis/automation/v1alpha1/{zz_teamassociation_terraformed.go => zz_actionteamassociation_terraformed.go} (65%) rename apis/automation/v1alpha1/{zz_teamassociation_types.go => zz_actionteamassociation_types.go} (74%) rename examples-generated/automation/v1alpha1/{serviceassociation.yaml => actionserviceassociation.yaml} (80%) rename examples-generated/automation/v1alpha1/{teamassociation.yaml => actionteamassociation.yaml} (79%) rename examples/automation/v1alpha1/{actionsaction.yaml => action.yaml} (69%) rename examples/automation/v1alpha1/{actionsactionserviceassociation.yaml => actionserviceassociation.yaml} (66%) delete mode 100644 examples/automation/v1alpha1/actionsrunnerteamassociation.yaml rename examples/automation/v1alpha1/{actionsactionteamassociation.yaml => actionteamassociation.yaml} (53%) create mode 100644 examples/automation/v1alpha1/runner.yaml create mode 100644 examples/automation/v1alpha1/runnerteamassociation.yaml delete mode 100644 examples/install.yaml delete mode 100644 examples/providerconfig/.gitignore delete mode 100644 examples/providerconfig/providerconfig.yaml delete mode 100644 examples/providerconfig/secret.yaml.tmpl delete mode 100644 examples/storeconfig/vault.yaml rename internal/controller/automation/{serviceassociation => actionserviceassociation}/zz_controller.go (80%) rename internal/controller/automation/{teamassociation => actionteamassociation}/zz_controller.go (81%) rename package/crds/{automation.actions.pagerduty.crossplane.io_serviceassociations.yaml => automation.actions.pagerduty.crossplane.io_actionserviceassociations.yaml} (98%) rename package/crds/{automation.actions.pagerduty.crossplane.io_teamassociations.yaml => automation.actions.pagerduty.crossplane.io_actionteamassociations.yaml} (98%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41c4d41..70b7406 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Detect No-op Changes id: noop - uses: fkirc/skip-duplicate-actions@v5.3.1 + uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1 with: github_token: ${{ secrets.GITHUB_TOKEN }} paths_ignore: '["**.md", "**.png", "**.jpg"]' diff --git a/.gitmodules b/.gitmodules index c2fad47..8f84209 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "build"] path = build - url = https://github.com/upbound/build + url = https://github.com/crossplane/build diff --git a/Makefile b/Makefile index ffdde7d..70394a0 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,11 @@ PROJECT_NAME ?= provider-pagerduty PROJECT_REPO ?= github.com/crossplane-contrib/$(PROJECT_NAME) +export TERRAFORM_VERSION ?= 1.5.7 + # Do not allow a version of terraform greater than 1.5.x, due to versions 1.6+ being # licensed under BSL, which is not permitted. -export TERRAFORM_VERSION ?= 1.5.7 +TERRAFORM_VERSION_VALID := $(shell [ "$(TERRAFORM_VERSION)" = "`printf "$(TERRAFORM_VERSION)\n1.6" | sort -V | head -n1`" ] && echo 1 || echo 0) export TERRAFORM_PROVIDER_SOURCE ?= PagerDuty/pagerduty export TERRAFORM_PROVIDER_VERSION ?= 3.17.1 diff --git a/apis/automation/v1alpha1/zz_serviceassociation_terraformed.go b/apis/automation/v1alpha1/zz_actionserviceassociation_terraformed.go similarity index 64% rename from apis/automation/v1alpha1/zz_serviceassociation_terraformed.go rename to apis/automation/v1alpha1/zz_actionserviceassociation_terraformed.go index 7c86e94..293a666 100755 --- a/apis/automation/v1alpha1/zz_serviceassociation_terraformed.go +++ b/apis/automation/v1alpha1/zz_actionserviceassociation_terraformed.go @@ -14,18 +14,18 @@ import ( "github.com/crossplane/upjet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ServiceAssociation -func (mg *ServiceAssociation) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this ActionServiceAssociation +func (mg *ActionServiceAssociation) GetTerraformResourceType() string { return "pagerduty_automation_actions_action_service_association" } -// GetConnectionDetailsMapping for this ServiceAssociation -func (tr *ServiceAssociation) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this ActionServiceAssociation +func (tr *ActionServiceAssociation) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ServiceAssociation -func (tr *ServiceAssociation) GetObservation() (map[string]any, error) { +// GetObservation of this ActionServiceAssociation +func (tr *ActionServiceAssociation) GetObservation() (map[string]any, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -34,8 +34,8 @@ func (tr *ServiceAssociation) GetObservation() (map[string]any, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ServiceAssociation -func (tr *ServiceAssociation) SetObservation(obs map[string]any) error { +// SetObservation for this ActionServiceAssociation +func (tr *ActionServiceAssociation) SetObservation(obs map[string]any) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -43,16 +43,16 @@ func (tr *ServiceAssociation) SetObservation(obs map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ServiceAssociation -func (tr *ServiceAssociation) GetID() string { +// GetID returns ID of underlying Terraform resource of this ActionServiceAssociation +func (tr *ActionServiceAssociation) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ServiceAssociation -func (tr *ServiceAssociation) GetParameters() (map[string]any, error) { +// GetParameters of this ActionServiceAssociation +func (tr *ActionServiceAssociation) GetParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -61,8 +61,8 @@ func (tr *ServiceAssociation) GetParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ServiceAssociation -func (tr *ServiceAssociation) SetParameters(params map[string]any) error { +// SetParameters for this ActionServiceAssociation +func (tr *ActionServiceAssociation) SetParameters(params map[string]any) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -70,8 +70,8 @@ func (tr *ServiceAssociation) SetParameters(params map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// GetInitParameters of this ServiceAssociation -func (tr *ServiceAssociation) GetInitParameters() (map[string]any, error) { +// GetInitParameters of this ActionServiceAssociation +func (tr *ActionServiceAssociation) GetInitParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.InitProvider) if err != nil { return nil, err @@ -80,8 +80,8 @@ func (tr *ServiceAssociation) GetInitParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// GetInitParameters of this ServiceAssociation -func (tr *ServiceAssociation) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { +// GetInitParameters of this ActionServiceAssociation +func (tr *ActionServiceAssociation) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { params, err := tr.GetParameters() if err != nil { return nil, errors.Wrapf(err, "cannot get parameters for resource '%q'", tr.GetName()) @@ -110,10 +110,10 @@ func (tr *ServiceAssociation) GetMergedParameters(shouldMergeInitProvider bool) return params, nil } -// LateInitialize this ServiceAssociation using its observed tfState. +// LateInitialize this ActionServiceAssociation using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ServiceAssociation) LateInitialize(attrs []byte) (bool, error) { - params := &ServiceAssociationParameters{} +func (tr *ActionServiceAssociation) LateInitialize(attrs []byte) (bool, error) { + params := &ActionServiceAssociationParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -124,6 +124,6 @@ func (tr *ServiceAssociation) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ServiceAssociation) GetTerraformSchemaVersion() int { +func (tr *ActionServiceAssociation) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/automation/v1alpha1/zz_serviceassociation_types.go b/apis/automation/v1alpha1/zz_actionserviceassociation_types.go similarity index 73% rename from apis/automation/v1alpha1/zz_serviceassociation_types.go rename to apis/automation/v1alpha1/zz_actionserviceassociation_types.go index 90c730e..d18a8f7 100755 --- a/apis/automation/v1alpha1/zz_serviceassociation_types.go +++ b/apis/automation/v1alpha1/zz_actionserviceassociation_types.go @@ -13,7 +13,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ServiceAssociationInitParameters struct { +type ActionServiceAssociationInitParameters struct { // Id of the action. // +crossplane:generate:reference:type=Action @@ -44,7 +44,7 @@ type ServiceAssociationInitParameters struct { ServiceSelector *v1.Selector `json:"serviceSelector,omitempty" tf:"-"` } -type ServiceAssociationObservation struct { +type ActionServiceAssociationObservation struct { // Id of the action. ActionID *string `json:"actionId,omitempty" tf:"action_id,omitempty"` @@ -55,7 +55,7 @@ type ServiceAssociationObservation struct { ServiceID *string `json:"serviceId,omitempty" tf:"service_id,omitempty"` } -type ServiceAssociationParameters struct { +type ActionServiceAssociationParameters struct { // Id of the action. // +crossplane:generate:reference:type=Action @@ -88,10 +88,10 @@ type ServiceAssociationParameters struct { ServiceSelector *v1.Selector `json:"serviceSelector,omitempty" tf:"-"` } -// ServiceAssociationSpec defines the desired state of ServiceAssociation -type ServiceAssociationSpec struct { +// ActionServiceAssociationSpec defines the desired state of ActionServiceAssociation +type ActionServiceAssociationSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ServiceAssociationParameters `json:"forProvider"` + ForProvider ActionServiceAssociationParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception @@ -102,49 +102,49 @@ type ServiceAssociationSpec struct { // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. - InitProvider ServiceAssociationInitParameters `json:"initProvider,omitempty"` + InitProvider ActionServiceAssociationInitParameters `json:"initProvider,omitempty"` } -// ServiceAssociationStatus defines the observed state of ServiceAssociation. -type ServiceAssociationStatus struct { +// ActionServiceAssociationStatus defines the observed state of ActionServiceAssociation. +type ActionServiceAssociationStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ServiceAssociationObservation `json:"atProvider,omitempty"` + AtProvider ActionServiceAssociationObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:storageversion -// ServiceAssociation is the Schema for the ServiceAssociations API. Creates and manages an Automation Actions action association with a Service in PagerDuty. +// ActionServiceAssociation is the Schema for the ActionServiceAssociations API. Creates and manages an Automation Actions action association with a Service in PagerDuty. // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,pagerduty} -type ServiceAssociation struct { +type ActionServiceAssociation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ServiceAssociationSpec `json:"spec"` - Status ServiceAssociationStatus `json:"status,omitempty"` + Spec ActionServiceAssociationSpec `json:"spec"` + Status ActionServiceAssociationStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ServiceAssociationList contains a list of ServiceAssociations -type ServiceAssociationList struct { +// ActionServiceAssociationList contains a list of ActionServiceAssociations +type ActionServiceAssociationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ServiceAssociation `json:"items"` + Items []ActionServiceAssociation `json:"items"` } // Repository type metadata. var ( - ServiceAssociation_Kind = "ServiceAssociation" - ServiceAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ServiceAssociation_Kind}.String() - ServiceAssociation_KindAPIVersion = ServiceAssociation_Kind + "." + CRDGroupVersion.String() - ServiceAssociation_GroupVersionKind = CRDGroupVersion.WithKind(ServiceAssociation_Kind) + ActionServiceAssociation_Kind = "ActionServiceAssociation" + ActionServiceAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ActionServiceAssociation_Kind}.String() + ActionServiceAssociation_KindAPIVersion = ActionServiceAssociation_Kind + "." + CRDGroupVersion.String() + ActionServiceAssociation_GroupVersionKind = CRDGroupVersion.WithKind(ActionServiceAssociation_Kind) ) func init() { - SchemeBuilder.Register(&ServiceAssociation{}, &ServiceAssociationList{}) + SchemeBuilder.Register(&ActionServiceAssociation{}, &ActionServiceAssociationList{}) } diff --git a/apis/automation/v1alpha1/zz_teamassociation_terraformed.go b/apis/automation/v1alpha1/zz_actionteamassociation_terraformed.go similarity index 65% rename from apis/automation/v1alpha1/zz_teamassociation_terraformed.go rename to apis/automation/v1alpha1/zz_actionteamassociation_terraformed.go index cc93173..29a8c2e 100755 --- a/apis/automation/v1alpha1/zz_teamassociation_terraformed.go +++ b/apis/automation/v1alpha1/zz_actionteamassociation_terraformed.go @@ -14,18 +14,18 @@ import ( "github.com/crossplane/upjet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this TeamAssociation -func (mg *TeamAssociation) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this ActionTeamAssociation +func (mg *ActionTeamAssociation) GetTerraformResourceType() string { return "pagerduty_automation_actions_action_team_association" } -// GetConnectionDetailsMapping for this TeamAssociation -func (tr *TeamAssociation) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this ActionTeamAssociation +func (tr *ActionTeamAssociation) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this TeamAssociation -func (tr *TeamAssociation) GetObservation() (map[string]any, error) { +// GetObservation of this ActionTeamAssociation +func (tr *ActionTeamAssociation) GetObservation() (map[string]any, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -34,8 +34,8 @@ func (tr *TeamAssociation) GetObservation() (map[string]any, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this TeamAssociation -func (tr *TeamAssociation) SetObservation(obs map[string]any) error { +// SetObservation for this ActionTeamAssociation +func (tr *ActionTeamAssociation) SetObservation(obs map[string]any) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -43,16 +43,16 @@ func (tr *TeamAssociation) SetObservation(obs map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this TeamAssociation -func (tr *TeamAssociation) GetID() string { +// GetID returns ID of underlying Terraform resource of this ActionTeamAssociation +func (tr *ActionTeamAssociation) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this TeamAssociation -func (tr *TeamAssociation) GetParameters() (map[string]any, error) { +// GetParameters of this ActionTeamAssociation +func (tr *ActionTeamAssociation) GetParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -61,8 +61,8 @@ func (tr *TeamAssociation) GetParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this TeamAssociation -func (tr *TeamAssociation) SetParameters(params map[string]any) error { +// SetParameters for this ActionTeamAssociation +func (tr *ActionTeamAssociation) SetParameters(params map[string]any) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -70,8 +70,8 @@ func (tr *TeamAssociation) SetParameters(params map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// GetInitParameters of this TeamAssociation -func (tr *TeamAssociation) GetInitParameters() (map[string]any, error) { +// GetInitParameters of this ActionTeamAssociation +func (tr *ActionTeamAssociation) GetInitParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.InitProvider) if err != nil { return nil, err @@ -80,8 +80,8 @@ func (tr *TeamAssociation) GetInitParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// GetInitParameters of this TeamAssociation -func (tr *TeamAssociation) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { +// GetInitParameters of this ActionTeamAssociation +func (tr *ActionTeamAssociation) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { params, err := tr.GetParameters() if err != nil { return nil, errors.Wrapf(err, "cannot get parameters for resource '%q'", tr.GetName()) @@ -110,10 +110,10 @@ func (tr *TeamAssociation) GetMergedParameters(shouldMergeInitProvider bool) (ma return params, nil } -// LateInitialize this TeamAssociation using its observed tfState. +// LateInitialize this ActionTeamAssociation using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *TeamAssociation) LateInitialize(attrs []byte) (bool, error) { - params := &TeamAssociationParameters{} +func (tr *ActionTeamAssociation) LateInitialize(attrs []byte) (bool, error) { + params := &ActionTeamAssociationParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -124,6 +124,6 @@ func (tr *TeamAssociation) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *TeamAssociation) GetTerraformSchemaVersion() int { +func (tr *ActionTeamAssociation) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/automation/v1alpha1/zz_teamassociation_types.go b/apis/automation/v1alpha1/zz_actionteamassociation_types.go similarity index 74% rename from apis/automation/v1alpha1/zz_teamassociation_types.go rename to apis/automation/v1alpha1/zz_actionteamassociation_types.go index 49d637f..5d5b5e7 100755 --- a/apis/automation/v1alpha1/zz_teamassociation_types.go +++ b/apis/automation/v1alpha1/zz_actionteamassociation_types.go @@ -13,7 +13,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type TeamAssociationInitParameters struct { +type ActionTeamAssociationInitParameters struct { // Id of the action. // +crossplane:generate:reference:type=Action @@ -44,7 +44,7 @@ type TeamAssociationInitParameters struct { TeamSelector *v1.Selector `json:"teamSelector,omitempty" tf:"-"` } -type TeamAssociationObservation struct { +type ActionTeamAssociationObservation struct { // Id of the action. ActionID *string `json:"actionId,omitempty" tf:"action_id,omitempty"` @@ -55,7 +55,7 @@ type TeamAssociationObservation struct { TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"` } -type TeamAssociationParameters struct { +type ActionTeamAssociationParameters struct { // Id of the action. // +crossplane:generate:reference:type=Action @@ -88,10 +88,10 @@ type TeamAssociationParameters struct { TeamSelector *v1.Selector `json:"teamSelector,omitempty" tf:"-"` } -// TeamAssociationSpec defines the desired state of TeamAssociation -type TeamAssociationSpec struct { +// ActionTeamAssociationSpec defines the desired state of ActionTeamAssociation +type ActionTeamAssociationSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider TeamAssociationParameters `json:"forProvider"` + ForProvider ActionTeamAssociationParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception @@ -102,49 +102,49 @@ type TeamAssociationSpec struct { // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. - InitProvider TeamAssociationInitParameters `json:"initProvider,omitempty"` + InitProvider ActionTeamAssociationInitParameters `json:"initProvider,omitempty"` } -// TeamAssociationStatus defines the observed state of TeamAssociation. -type TeamAssociationStatus struct { +// ActionTeamAssociationStatus defines the observed state of ActionTeamAssociation. +type ActionTeamAssociationStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider TeamAssociationObservation `json:"atProvider,omitempty"` + AtProvider ActionTeamAssociationObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:storageversion -// TeamAssociation is the Schema for the TeamAssociations API. Creates and manages an Automation Actions action association with a Team in PagerDuty. +// ActionTeamAssociation is the Schema for the ActionTeamAssociations API. Creates and manages an Automation Actions action association with a Team in PagerDuty. // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,pagerduty} -type TeamAssociation struct { +type ActionTeamAssociation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec TeamAssociationSpec `json:"spec"` - Status TeamAssociationStatus `json:"status,omitempty"` + Spec ActionTeamAssociationSpec `json:"spec"` + Status ActionTeamAssociationStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// TeamAssociationList contains a list of TeamAssociations -type TeamAssociationList struct { +// ActionTeamAssociationList contains a list of ActionTeamAssociations +type ActionTeamAssociationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []TeamAssociation `json:"items"` + Items []ActionTeamAssociation `json:"items"` } // Repository type metadata. var ( - TeamAssociation_Kind = "TeamAssociation" - TeamAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: TeamAssociation_Kind}.String() - TeamAssociation_KindAPIVersion = TeamAssociation_Kind + "." + CRDGroupVersion.String() - TeamAssociation_GroupVersionKind = CRDGroupVersion.WithKind(TeamAssociation_Kind) + ActionTeamAssociation_Kind = "ActionTeamAssociation" + ActionTeamAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ActionTeamAssociation_Kind}.String() + ActionTeamAssociation_KindAPIVersion = ActionTeamAssociation_Kind + "." + CRDGroupVersion.String() + ActionTeamAssociation_GroupVersionKind = CRDGroupVersion.WithKind(ActionTeamAssociation_Kind) ) func init() { - SchemeBuilder.Register(&TeamAssociation{}, &TeamAssociationList{}) + SchemeBuilder.Register(&ActionTeamAssociation{}, &ActionTeamAssociationList{}) } diff --git a/apis/automation/v1alpha1/zz_generated.conversion_hubs.go b/apis/automation/v1alpha1/zz_generated.conversion_hubs.go index bbdcf64..3d38af5 100755 --- a/apis/automation/v1alpha1/zz_generated.conversion_hubs.go +++ b/apis/automation/v1alpha1/zz_generated.conversion_hubs.go @@ -10,13 +10,13 @@ package v1alpha1 func (tr *Action) Hub() {} // Hub marks this type as a conversion hub. -func (tr *Runner) Hub() {} +func (tr *ActionServiceAssociation) Hub() {} // Hub marks this type as a conversion hub. -func (tr *RunnerTeamAssociation) Hub() {} +func (tr *ActionTeamAssociation) Hub() {} // Hub marks this type as a conversion hub. -func (tr *ServiceAssociation) Hub() {} +func (tr *Runner) Hub() {} // Hub marks this type as a conversion hub. -func (tr *TeamAssociation) Hub() {} +func (tr *RunnerTeamAssociation) Hub() {} diff --git a/apis/automation/v1alpha1/zz_generated.deepcopy.go b/apis/automation/v1alpha1/zz_generated.deepcopy.go index 7eec3f7..b35901f 100644 --- a/apis/automation/v1alpha1/zz_generated.deepcopy.go +++ b/apis/automation/v1alpha1/zz_generated.deepcopy.go @@ -399,42 +399,7 @@ func (in *ActionParameters) DeepCopy() *ActionParameters { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ActionSpec) DeepCopyInto(out *ActionSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) - in.InitProvider.DeepCopyInto(&out.InitProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionSpec. -func (in *ActionSpec) DeepCopy() *ActionSpec { - if in == nil { - return nil - } - out := new(ActionSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ActionStatus) DeepCopyInto(out *ActionStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionStatus. -func (in *ActionStatus) DeepCopy() *ActionStatus { - if in == nil { - return nil - } - out := new(ActionStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Runner) DeepCopyInto(out *Runner) { +func (in *ActionServiceAssociation) DeepCopyInto(out *ActionServiceAssociation) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -442,18 +407,18 @@ func (in *Runner) DeepCopyInto(out *Runner) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runner. -func (in *Runner) DeepCopy() *Runner { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionServiceAssociation. +func (in *ActionServiceAssociation) DeepCopy() *ActionServiceAssociation { if in == nil { return nil } - out := new(Runner) + out := new(ActionServiceAssociation) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Runner) DeepCopyObject() runtime.Object { +func (in *ActionServiceAssociation) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -461,76 +426,76 @@ func (in *Runner) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerInitParameters) DeepCopyInto(out *RunnerInitParameters) { +func (in *ActionServiceAssociationInitParameters) DeepCopyInto(out *ActionServiceAssociationInitParameters) { *out = *in - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } - if in.LastSeen != nil { - in, out := &in.LastSeen, &out.LastSeen + if in.ActionID != nil { + in, out := &in.ActionID, &out.ActionID *out = new(string) **out = **in } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in + if in.ActionRefs != nil { + in, out := &in.ActionRefs, &out.ActionRefs + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) } - if in.RunbookAPIKeySecretRef != nil { - in, out := &in.RunbookAPIKeySecretRef, &out.RunbookAPIKeySecretRef - *out = new(v1.SecretKeySelector) - **out = **in + if in.ActionSelector != nil { + in, out := &in.ActionSelector, &out.ActionSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - if in.RunbookBaseURI != nil { - in, out := &in.RunbookBaseURI, &out.RunbookBaseURI + if in.ServiceID != nil { + in, out := &in.ServiceID, &out.ServiceID *out = new(string) **out = **in } - if in.RunnerType != nil { - in, out := &in.RunnerType, &out.RunnerType - *out = new(string) - **out = **in + if in.ServiceRefs != nil { + in, out := &in.ServiceRefs, &out.ServiceRefs + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ServiceSelector != nil { + in, out := &in.ServiceSelector, &out.ServiceSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerInitParameters. -func (in *RunnerInitParameters) DeepCopy() *RunnerInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionServiceAssociationInitParameters. +func (in *ActionServiceAssociationInitParameters) DeepCopy() *ActionServiceAssociationInitParameters { if in == nil { return nil } - out := new(RunnerInitParameters) + out := new(ActionServiceAssociationInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerList) DeepCopyInto(out *RunnerList) { +func (in *ActionServiceAssociationList) DeepCopyInto(out *ActionServiceAssociationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Runner, len(*in)) + *out = make([]ActionServiceAssociation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerList. -func (in *RunnerList) DeepCopy() *RunnerList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionServiceAssociationList. +func (in *ActionServiceAssociationList) DeepCopy() *ActionServiceAssociationList { if in == nil { return nil } - out := new(RunnerList) + out := new(ActionServiceAssociationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerList) DeepCopyObject() runtime.Object { +func (in *ActionServiceAssociationList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -538,15 +503,10 @@ func (in *RunnerList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerObservation) DeepCopyInto(out *RunnerObservation) { +func (in *ActionServiceAssociationObservation) DeepCopyInto(out *ActionServiceAssociationObservation) { *out = *in - if in.CreationTime != nil { - in, out := &in.CreationTime, &out.CreationTime - *out = new(string) - **out = **in - } - if in.Description != nil { - in, out := &in.Description, &out.Description + if in.ActionID != nil { + in, out := &in.ActionID, &out.ActionID *out = new(string) **out = **in } @@ -555,125 +515,140 @@ func (in *RunnerObservation) DeepCopyInto(out *RunnerObservation) { *out = new(string) **out = **in } - if in.LastSeen != nil { - in, out := &in.LastSeen, &out.LastSeen - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.RunbookBaseURI != nil { - in, out := &in.RunbookBaseURI, &out.RunbookBaseURI - *out = new(string) - **out = **in - } - if in.RunnerType != nil { - in, out := &in.RunnerType, &out.RunnerType - *out = new(string) - **out = **in - } - if in.Type != nil { - in, out := &in.Type, &out.Type + if in.ServiceID != nil { + in, out := &in.ServiceID, &out.ServiceID *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerObservation. -func (in *RunnerObservation) DeepCopy() *RunnerObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionServiceAssociationObservation. +func (in *ActionServiceAssociationObservation) DeepCopy() *ActionServiceAssociationObservation { if in == nil { return nil } - out := new(RunnerObservation) + out := new(ActionServiceAssociationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerParameters) DeepCopyInto(out *RunnerParameters) { +func (in *ActionServiceAssociationParameters) DeepCopyInto(out *ActionServiceAssociationParameters) { *out = *in - if in.Description != nil { - in, out := &in.Description, &out.Description + if in.ActionID != nil { + in, out := &in.ActionID, &out.ActionID *out = new(string) **out = **in } - if in.LastSeen != nil { - in, out := &in.LastSeen, &out.LastSeen - *out = new(string) - **out = **in + if in.ActionRefs != nil { + in, out := &in.ActionRefs, &out.ActionRefs + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) } - if in.Name != nil { - in, out := &in.Name, &out.Name + if in.ActionSelector != nil { + in, out := &in.ActionSelector, &out.ActionSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.ServiceID != nil { + in, out := &in.ServiceID, &out.ServiceID *out = new(string) **out = **in } - if in.RunbookAPIKeySecretRef != nil { - in, out := &in.RunbookAPIKeySecretRef, &out.RunbookAPIKeySecretRef - *out = new(v1.SecretKeySelector) - **out = **in + if in.ServiceRefs != nil { + in, out := &in.ServiceRefs, &out.ServiceRefs + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) } - if in.RunbookBaseURI != nil { - in, out := &in.RunbookBaseURI, &out.RunbookBaseURI - *out = new(string) - **out = **in + if in.ServiceSelector != nil { + in, out := &in.ServiceSelector, &out.ServiceSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - if in.RunnerType != nil { - in, out := &in.RunnerType, &out.RunnerType - *out = new(string) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionServiceAssociationParameters. +func (in *ActionServiceAssociationParameters) DeepCopy() *ActionServiceAssociationParameters { + if in == nil { + return nil } + out := new(ActionServiceAssociationParameters) + in.DeepCopyInto(out) + return out } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerParameters. -func (in *RunnerParameters) DeepCopy() *RunnerParameters { +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ActionServiceAssociationSpec) DeepCopyInto(out *ActionServiceAssociationSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionServiceAssociationSpec. +func (in *ActionServiceAssociationSpec) DeepCopy() *ActionServiceAssociationSpec { if in == nil { return nil } - out := new(RunnerParameters) + out := new(ActionServiceAssociationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerSpec) DeepCopyInto(out *RunnerSpec) { +func (in *ActionServiceAssociationStatus) DeepCopyInto(out *ActionServiceAssociationStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionServiceAssociationStatus. +func (in *ActionServiceAssociationStatus) DeepCopy() *ActionServiceAssociationStatus { + if in == nil { + return nil + } + out := new(ActionServiceAssociationStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ActionSpec) DeepCopyInto(out *ActionSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerSpec. -func (in *RunnerSpec) DeepCopy() *RunnerSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionSpec. +func (in *ActionSpec) DeepCopy() *ActionSpec { if in == nil { return nil } - out := new(RunnerSpec) + out := new(ActionSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerStatus) DeepCopyInto(out *RunnerStatus) { +func (in *ActionStatus) DeepCopyInto(out *ActionStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerStatus. -func (in *RunnerStatus) DeepCopy() *RunnerStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionStatus. +func (in *ActionStatus) DeepCopy() *ActionStatus { if in == nil { return nil } - out := new(RunnerStatus) + out := new(ActionStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerTeamAssociation) DeepCopyInto(out *RunnerTeamAssociation) { +func (in *ActionTeamAssociation) DeepCopyInto(out *ActionTeamAssociation) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -681,18 +656,18 @@ func (in *RunnerTeamAssociation) DeepCopyInto(out *RunnerTeamAssociation) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociation. -func (in *RunnerTeamAssociation) DeepCopy() *RunnerTeamAssociation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionTeamAssociation. +func (in *ActionTeamAssociation) DeepCopy() *ActionTeamAssociation { if in == nil { return nil } - out := new(RunnerTeamAssociation) + out := new(ActionTeamAssociation) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerTeamAssociation) DeepCopyObject() runtime.Object { +func (in *ActionTeamAssociation) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -700,20 +675,20 @@ func (in *RunnerTeamAssociation) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerTeamAssociationInitParameters) DeepCopyInto(out *RunnerTeamAssociationInitParameters) { +func (in *ActionTeamAssociationInitParameters) DeepCopyInto(out *ActionTeamAssociationInitParameters) { *out = *in - if in.RunnerID != nil { - in, out := &in.RunnerID, &out.RunnerID + if in.ActionID != nil { + in, out := &in.ActionID, &out.ActionID *out = new(string) **out = **in } - if in.RunnerRefs != nil { - in, out := &in.RunnerRefs, &out.RunnerRefs + if in.ActionRefs != nil { + in, out := &in.ActionRefs, &out.ActionRefs *out = new(v1.Reference) (*in).DeepCopyInto(*out) } - if in.RunnerSelector != nil { - in, out := &in.RunnerSelector, &out.RunnerSelector + if in.ActionSelector != nil { + in, out := &in.ActionSelector, &out.ActionSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -734,42 +709,42 @@ func (in *RunnerTeamAssociationInitParameters) DeepCopyInto(out *RunnerTeamAssoc } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationInitParameters. -func (in *RunnerTeamAssociationInitParameters) DeepCopy() *RunnerTeamAssociationInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionTeamAssociationInitParameters. +func (in *ActionTeamAssociationInitParameters) DeepCopy() *ActionTeamAssociationInitParameters { if in == nil { return nil } - out := new(RunnerTeamAssociationInitParameters) + out := new(ActionTeamAssociationInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerTeamAssociationList) DeepCopyInto(out *RunnerTeamAssociationList) { +func (in *ActionTeamAssociationList) DeepCopyInto(out *ActionTeamAssociationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]RunnerTeamAssociation, len(*in)) + *out = make([]ActionTeamAssociation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationList. -func (in *RunnerTeamAssociationList) DeepCopy() *RunnerTeamAssociationList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionTeamAssociationList. +func (in *ActionTeamAssociationList) DeepCopy() *ActionTeamAssociationList { if in == nil { return nil } - out := new(RunnerTeamAssociationList) + out := new(ActionTeamAssociationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerTeamAssociationList) DeepCopyObject() runtime.Object { +func (in *ActionTeamAssociationList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -777,15 +752,15 @@ func (in *RunnerTeamAssociationList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerTeamAssociationObservation) DeepCopyInto(out *RunnerTeamAssociationObservation) { +func (in *ActionTeamAssociationObservation) DeepCopyInto(out *ActionTeamAssociationObservation) { *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID + if in.ActionID != nil { + in, out := &in.ActionID, &out.ActionID *out = new(string) **out = **in } - if in.RunnerID != nil { - in, out := &in.RunnerID, &out.RunnerID + if in.ID != nil { + in, out := &in.ID, &out.ID *out = new(string) **out = **in } @@ -796,31 +771,31 @@ func (in *RunnerTeamAssociationObservation) DeepCopyInto(out *RunnerTeamAssociat } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationObservation. -func (in *RunnerTeamAssociationObservation) DeepCopy() *RunnerTeamAssociationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionTeamAssociationObservation. +func (in *ActionTeamAssociationObservation) DeepCopy() *ActionTeamAssociationObservation { if in == nil { return nil } - out := new(RunnerTeamAssociationObservation) + out := new(ActionTeamAssociationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerTeamAssociationParameters) DeepCopyInto(out *RunnerTeamAssociationParameters) { +func (in *ActionTeamAssociationParameters) DeepCopyInto(out *ActionTeamAssociationParameters) { *out = *in - if in.RunnerID != nil { - in, out := &in.RunnerID, &out.RunnerID + if in.ActionID != nil { + in, out := &in.ActionID, &out.ActionID *out = new(string) **out = **in } - if in.RunnerRefs != nil { - in, out := &in.RunnerRefs, &out.RunnerRefs + if in.ActionRefs != nil { + in, out := &in.ActionRefs, &out.ActionRefs *out = new(v1.Reference) (*in).DeepCopyInto(*out) } - if in.RunnerSelector != nil { - in, out := &in.RunnerSelector, &out.RunnerSelector + if in.ActionSelector != nil { + in, out := &in.ActionSelector, &out.ActionSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -841,53 +816,53 @@ func (in *RunnerTeamAssociationParameters) DeepCopyInto(out *RunnerTeamAssociati } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationParameters. -func (in *RunnerTeamAssociationParameters) DeepCopy() *RunnerTeamAssociationParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionTeamAssociationParameters. +func (in *ActionTeamAssociationParameters) DeepCopy() *ActionTeamAssociationParameters { if in == nil { return nil } - out := new(RunnerTeamAssociationParameters) + out := new(ActionTeamAssociationParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerTeamAssociationSpec) DeepCopyInto(out *RunnerTeamAssociationSpec) { +func (in *ActionTeamAssociationSpec) DeepCopyInto(out *ActionTeamAssociationSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationSpec. -func (in *RunnerTeamAssociationSpec) DeepCopy() *RunnerTeamAssociationSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionTeamAssociationSpec. +func (in *ActionTeamAssociationSpec) DeepCopy() *ActionTeamAssociationSpec { if in == nil { return nil } - out := new(RunnerTeamAssociationSpec) + out := new(ActionTeamAssociationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerTeamAssociationStatus) DeepCopyInto(out *RunnerTeamAssociationStatus) { +func (in *ActionTeamAssociationStatus) DeepCopyInto(out *ActionTeamAssociationStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationStatus. -func (in *RunnerTeamAssociationStatus) DeepCopy() *RunnerTeamAssociationStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionTeamAssociationStatus. +func (in *ActionTeamAssociationStatus) DeepCopy() *ActionTeamAssociationStatus { if in == nil { return nil } - out := new(RunnerTeamAssociationStatus) + out := new(ActionTeamAssociationStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceAssociation) DeepCopyInto(out *ServiceAssociation) { +func (in *Runner) DeepCopyInto(out *Runner) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -895,18 +870,18 @@ func (in *ServiceAssociation) DeepCopyInto(out *ServiceAssociation) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAssociation. -func (in *ServiceAssociation) DeepCopy() *ServiceAssociation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runner. +func (in *Runner) DeepCopy() *Runner { if in == nil { return nil } - out := new(ServiceAssociation) + out := new(Runner) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ServiceAssociation) DeepCopyObject() runtime.Object { +func (in *Runner) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -914,76 +889,76 @@ func (in *ServiceAssociation) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceAssociationInitParameters) DeepCopyInto(out *ServiceAssociationInitParameters) { +func (in *RunnerInitParameters) DeepCopyInto(out *RunnerInitParameters) { *out = *in - if in.ActionID != nil { - in, out := &in.ActionID, &out.ActionID + if in.Description != nil { + in, out := &in.Description, &out.Description *out = new(string) **out = **in } - if in.ActionRefs != nil { - in, out := &in.ActionRefs, &out.ActionRefs - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.ActionSelector != nil { - in, out := &in.ActionSelector, &out.ActionSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.LastSeen != nil { + in, out := &in.LastSeen, &out.LastSeen + *out = new(string) + **out = **in } - if in.ServiceID != nil { - in, out := &in.ServiceID, &out.ServiceID + if in.Name != nil { + in, out := &in.Name, &out.Name *out = new(string) **out = **in } - if in.ServiceRefs != nil { - in, out := &in.ServiceRefs, &out.ServiceRefs - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) + if in.RunbookAPIKeySecretRef != nil { + in, out := &in.RunbookAPIKeySecretRef, &out.RunbookAPIKeySecretRef + *out = new(v1.SecretKeySelector) + **out = **in } - if in.ServiceSelector != nil { - in, out := &in.ServiceSelector, &out.ServiceSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.RunbookBaseURI != nil { + in, out := &in.RunbookBaseURI, &out.RunbookBaseURI + *out = new(string) + **out = **in + } + if in.RunnerType != nil { + in, out := &in.RunnerType, &out.RunnerType + *out = new(string) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAssociationInitParameters. -func (in *ServiceAssociationInitParameters) DeepCopy() *ServiceAssociationInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerInitParameters. +func (in *RunnerInitParameters) DeepCopy() *RunnerInitParameters { if in == nil { return nil } - out := new(ServiceAssociationInitParameters) + out := new(RunnerInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceAssociationList) DeepCopyInto(out *ServiceAssociationList) { +func (in *RunnerList) DeepCopyInto(out *RunnerList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ServiceAssociation, len(*in)) + *out = make([]Runner, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAssociationList. -func (in *ServiceAssociationList) DeepCopy() *ServiceAssociationList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerList. +func (in *RunnerList) DeepCopy() *RunnerList { if in == nil { return nil } - out := new(ServiceAssociationList) + out := new(RunnerList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ServiceAssociationList) DeepCopyObject() runtime.Object { +func (in *RunnerList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -991,10 +966,15 @@ func (in *ServiceAssociationList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceAssociationObservation) DeepCopyInto(out *ServiceAssociationObservation) { +func (in *RunnerObservation) DeepCopyInto(out *RunnerObservation) { *out = *in - if in.ActionID != nil { - in, out := &in.ActionID, &out.ActionID + if in.CreationTime != nil { + in, out := &in.CreationTime, &out.CreationTime + *out = new(string) + **out = **in + } + if in.Description != nil { + in, out := &in.Description, &out.Description *out = new(string) **out = **in } @@ -1003,105 +983,125 @@ func (in *ServiceAssociationObservation) DeepCopyInto(out *ServiceAssociationObs *out = new(string) **out = **in } - if in.ServiceID != nil { - in, out := &in.ServiceID, &out.ServiceID + if in.LastSeen != nil { + in, out := &in.LastSeen, &out.LastSeen + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.RunbookBaseURI != nil { + in, out := &in.RunbookBaseURI, &out.RunbookBaseURI + *out = new(string) + **out = **in + } + if in.RunnerType != nil { + in, out := &in.RunnerType, &out.RunnerType + *out = new(string) + **out = **in + } + if in.Type != nil { + in, out := &in.Type, &out.Type *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAssociationObservation. -func (in *ServiceAssociationObservation) DeepCopy() *ServiceAssociationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerObservation. +func (in *RunnerObservation) DeepCopy() *RunnerObservation { if in == nil { return nil } - out := new(ServiceAssociationObservation) + out := new(RunnerObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceAssociationParameters) DeepCopyInto(out *ServiceAssociationParameters) { +func (in *RunnerParameters) DeepCopyInto(out *RunnerParameters) { *out = *in - if in.ActionID != nil { - in, out := &in.ActionID, &out.ActionID + if in.Description != nil { + in, out := &in.Description, &out.Description *out = new(string) **out = **in } - if in.ActionRefs != nil { - in, out := &in.ActionRefs, &out.ActionRefs - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.ActionSelector != nil { - in, out := &in.ActionSelector, &out.ActionSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.LastSeen != nil { + in, out := &in.LastSeen, &out.LastSeen + *out = new(string) + **out = **in } - if in.ServiceID != nil { - in, out := &in.ServiceID, &out.ServiceID + if in.Name != nil { + in, out := &in.Name, &out.Name *out = new(string) **out = **in } - if in.ServiceRefs != nil { - in, out := &in.ServiceRefs, &out.ServiceRefs - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) + if in.RunbookAPIKeySecretRef != nil { + in, out := &in.RunbookAPIKeySecretRef, &out.RunbookAPIKeySecretRef + *out = new(v1.SecretKeySelector) + **out = **in } - if in.ServiceSelector != nil { - in, out := &in.ServiceSelector, &out.ServiceSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.RunbookBaseURI != nil { + in, out := &in.RunbookBaseURI, &out.RunbookBaseURI + *out = new(string) + **out = **in + } + if in.RunnerType != nil { + in, out := &in.RunnerType, &out.RunnerType + *out = new(string) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAssociationParameters. -func (in *ServiceAssociationParameters) DeepCopy() *ServiceAssociationParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerParameters. +func (in *RunnerParameters) DeepCopy() *RunnerParameters { if in == nil { return nil } - out := new(ServiceAssociationParameters) + out := new(RunnerParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceAssociationSpec) DeepCopyInto(out *ServiceAssociationSpec) { +func (in *RunnerSpec) DeepCopyInto(out *RunnerSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAssociationSpec. -func (in *ServiceAssociationSpec) DeepCopy() *ServiceAssociationSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerSpec. +func (in *RunnerSpec) DeepCopy() *RunnerSpec { if in == nil { return nil } - out := new(ServiceAssociationSpec) + out := new(RunnerSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceAssociationStatus) DeepCopyInto(out *ServiceAssociationStatus) { +func (in *RunnerStatus) DeepCopyInto(out *RunnerStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAssociationStatus. -func (in *ServiceAssociationStatus) DeepCopy() *ServiceAssociationStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerStatus. +func (in *RunnerStatus) DeepCopy() *RunnerStatus { if in == nil { return nil } - out := new(ServiceAssociationStatus) + out := new(RunnerStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAssociation) DeepCopyInto(out *TeamAssociation) { +func (in *RunnerTeamAssociation) DeepCopyInto(out *RunnerTeamAssociation) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1109,18 +1109,18 @@ func (in *TeamAssociation) DeepCopyInto(out *TeamAssociation) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAssociation. -func (in *TeamAssociation) DeepCopy() *TeamAssociation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociation. +func (in *RunnerTeamAssociation) DeepCopy() *RunnerTeamAssociation { if in == nil { return nil } - out := new(TeamAssociation) + out := new(RunnerTeamAssociation) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamAssociation) DeepCopyObject() runtime.Object { +func (in *RunnerTeamAssociation) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1128,20 +1128,20 @@ func (in *TeamAssociation) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAssociationInitParameters) DeepCopyInto(out *TeamAssociationInitParameters) { +func (in *RunnerTeamAssociationInitParameters) DeepCopyInto(out *RunnerTeamAssociationInitParameters) { *out = *in - if in.ActionID != nil { - in, out := &in.ActionID, &out.ActionID + if in.RunnerID != nil { + in, out := &in.RunnerID, &out.RunnerID *out = new(string) **out = **in } - if in.ActionRefs != nil { - in, out := &in.ActionRefs, &out.ActionRefs + if in.RunnerRefs != nil { + in, out := &in.RunnerRefs, &out.RunnerRefs *out = new(v1.Reference) (*in).DeepCopyInto(*out) } - if in.ActionSelector != nil { - in, out := &in.ActionSelector, &out.ActionSelector + if in.RunnerSelector != nil { + in, out := &in.RunnerSelector, &out.RunnerSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -1162,42 +1162,42 @@ func (in *TeamAssociationInitParameters) DeepCopyInto(out *TeamAssociationInitPa } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAssociationInitParameters. -func (in *TeamAssociationInitParameters) DeepCopy() *TeamAssociationInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationInitParameters. +func (in *RunnerTeamAssociationInitParameters) DeepCopy() *RunnerTeamAssociationInitParameters { if in == nil { return nil } - out := new(TeamAssociationInitParameters) + out := new(RunnerTeamAssociationInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAssociationList) DeepCopyInto(out *TeamAssociationList) { +func (in *RunnerTeamAssociationList) DeepCopyInto(out *RunnerTeamAssociationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TeamAssociation, len(*in)) + *out = make([]RunnerTeamAssociation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAssociationList. -func (in *TeamAssociationList) DeepCopy() *TeamAssociationList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationList. +func (in *RunnerTeamAssociationList) DeepCopy() *RunnerTeamAssociationList { if in == nil { return nil } - out := new(TeamAssociationList) + out := new(RunnerTeamAssociationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamAssociationList) DeepCopyObject() runtime.Object { +func (in *RunnerTeamAssociationList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1205,15 +1205,15 @@ func (in *TeamAssociationList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAssociationObservation) DeepCopyInto(out *TeamAssociationObservation) { +func (in *RunnerTeamAssociationObservation) DeepCopyInto(out *RunnerTeamAssociationObservation) { *out = *in - if in.ActionID != nil { - in, out := &in.ActionID, &out.ActionID + if in.ID != nil { + in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.ID != nil { - in, out := &in.ID, &out.ID + if in.RunnerID != nil { + in, out := &in.RunnerID, &out.RunnerID *out = new(string) **out = **in } @@ -1224,31 +1224,31 @@ func (in *TeamAssociationObservation) DeepCopyInto(out *TeamAssociationObservati } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAssociationObservation. -func (in *TeamAssociationObservation) DeepCopy() *TeamAssociationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationObservation. +func (in *RunnerTeamAssociationObservation) DeepCopy() *RunnerTeamAssociationObservation { if in == nil { return nil } - out := new(TeamAssociationObservation) + out := new(RunnerTeamAssociationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAssociationParameters) DeepCopyInto(out *TeamAssociationParameters) { +func (in *RunnerTeamAssociationParameters) DeepCopyInto(out *RunnerTeamAssociationParameters) { *out = *in - if in.ActionID != nil { - in, out := &in.ActionID, &out.ActionID + if in.RunnerID != nil { + in, out := &in.RunnerID, &out.RunnerID *out = new(string) **out = **in } - if in.ActionRefs != nil { - in, out := &in.ActionRefs, &out.ActionRefs + if in.RunnerRefs != nil { + in, out := &in.RunnerRefs, &out.RunnerRefs *out = new(v1.Reference) (*in).DeepCopyInto(*out) } - if in.ActionSelector != nil { - in, out := &in.ActionSelector, &out.ActionSelector + if in.RunnerSelector != nil { + in, out := &in.RunnerSelector, &out.RunnerSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -1269,47 +1269,47 @@ func (in *TeamAssociationParameters) DeepCopyInto(out *TeamAssociationParameters } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAssociationParameters. -func (in *TeamAssociationParameters) DeepCopy() *TeamAssociationParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationParameters. +func (in *RunnerTeamAssociationParameters) DeepCopy() *RunnerTeamAssociationParameters { if in == nil { return nil } - out := new(TeamAssociationParameters) + out := new(RunnerTeamAssociationParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAssociationSpec) DeepCopyInto(out *TeamAssociationSpec) { +func (in *RunnerTeamAssociationSpec) DeepCopyInto(out *RunnerTeamAssociationSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAssociationSpec. -func (in *TeamAssociationSpec) DeepCopy() *TeamAssociationSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationSpec. +func (in *RunnerTeamAssociationSpec) DeepCopy() *RunnerTeamAssociationSpec { if in == nil { return nil } - out := new(TeamAssociationSpec) + out := new(RunnerTeamAssociationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAssociationStatus) DeepCopyInto(out *TeamAssociationStatus) { +func (in *RunnerTeamAssociationStatus) DeepCopyInto(out *RunnerTeamAssociationStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAssociationStatus. -func (in *TeamAssociationStatus) DeepCopy() *TeamAssociationStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerTeamAssociationStatus. +func (in *RunnerTeamAssociationStatus) DeepCopy() *RunnerTeamAssociationStatus { if in == nil { return nil } - out := new(TeamAssociationStatus) + out := new(RunnerTeamAssociationStatus) in.DeepCopyInto(out) return out } diff --git a/apis/automation/v1alpha1/zz_generated.managed.go b/apis/automation/v1alpha1/zz_generated.managed.go index 314d790..bce0f25 100644 --- a/apis/automation/v1alpha1/zz_generated.managed.go +++ b/apis/automation/v1alpha1/zz_generated.managed.go @@ -67,242 +67,242 @@ func (mg *Action) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this Runner. -func (mg *Runner) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this Runner. -func (mg *Runner) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetManagementPolicies of this Runner. -func (mg *Runner) GetManagementPolicies() xpv1.ManagementPolicies { +// GetManagementPolicies of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) GetManagementPolicies() xpv1.ManagementPolicies { return mg.Spec.ManagementPolicies } -// GetProviderConfigReference of this Runner. -func (mg *Runner) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } -// GetPublishConnectionDetailsTo of this Runner. -func (mg *Runner) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { +// GetPublishConnectionDetailsTo of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { return mg.Spec.PublishConnectionDetailsTo } -// GetWriteConnectionSecretToReference of this Runner. -func (mg *Runner) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this Runner. -func (mg *Runner) SetConditions(c ...xpv1.Condition) { +// SetConditions of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this Runner. -func (mg *Runner) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetManagementPolicies of this Runner. -func (mg *Runner) SetManagementPolicies(r xpv1.ManagementPolicies) { +// SetManagementPolicies of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) SetManagementPolicies(r xpv1.ManagementPolicies) { mg.Spec.ManagementPolicies = r } -// SetProviderConfigReference of this Runner. -func (mg *Runner) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } -// SetPublishConnectionDetailsTo of this Runner. -func (mg *Runner) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { +// SetPublishConnectionDetailsTo of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { mg.Spec.PublishConnectionDetailsTo = r } -// SetWriteConnectionSecretToReference of this Runner. -func (mg *Runner) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetManagementPolicies of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) GetManagementPolicies() xpv1.ManagementPolicies { +// GetManagementPolicies of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) GetManagementPolicies() xpv1.ManagementPolicies { return mg.Spec.ManagementPolicies } -// GetProviderConfigReference of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } -// GetPublishConnectionDetailsTo of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { +// GetPublishConnectionDetailsTo of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { return mg.Spec.PublishConnectionDetailsTo } -// GetWriteConnectionSecretToReference of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) SetConditions(c ...xpv1.Condition) { +// SetConditions of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetManagementPolicies of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) SetManagementPolicies(r xpv1.ManagementPolicies) { +// SetManagementPolicies of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) SetManagementPolicies(r xpv1.ManagementPolicies) { mg.Spec.ManagementPolicies = r } -// SetProviderConfigReference of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } -// SetPublishConnectionDetailsTo of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { +// SetPublishConnectionDetailsTo of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { mg.Spec.PublishConnectionDetailsTo = r } -// SetWriteConnectionSecretToReference of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this ServiceAssociation. -func (mg *ServiceAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this Runner. +func (mg *Runner) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this ServiceAssociation. -func (mg *ServiceAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this Runner. +func (mg *Runner) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetManagementPolicies of this ServiceAssociation. -func (mg *ServiceAssociation) GetManagementPolicies() xpv1.ManagementPolicies { +// GetManagementPolicies of this Runner. +func (mg *Runner) GetManagementPolicies() xpv1.ManagementPolicies { return mg.Spec.ManagementPolicies } -// GetProviderConfigReference of this ServiceAssociation. -func (mg *ServiceAssociation) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this Runner. +func (mg *Runner) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } -// GetPublishConnectionDetailsTo of this ServiceAssociation. -func (mg *ServiceAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { +// GetPublishConnectionDetailsTo of this Runner. +func (mg *Runner) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { return mg.Spec.PublishConnectionDetailsTo } -// GetWriteConnectionSecretToReference of this ServiceAssociation. -func (mg *ServiceAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this Runner. +func (mg *Runner) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this ServiceAssociation. -func (mg *ServiceAssociation) SetConditions(c ...xpv1.Condition) { +// SetConditions of this Runner. +func (mg *Runner) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this ServiceAssociation. -func (mg *ServiceAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this Runner. +func (mg *Runner) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetManagementPolicies of this ServiceAssociation. -func (mg *ServiceAssociation) SetManagementPolicies(r xpv1.ManagementPolicies) { +// SetManagementPolicies of this Runner. +func (mg *Runner) SetManagementPolicies(r xpv1.ManagementPolicies) { mg.Spec.ManagementPolicies = r } -// SetProviderConfigReference of this ServiceAssociation. -func (mg *ServiceAssociation) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this Runner. +func (mg *Runner) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } -// SetPublishConnectionDetailsTo of this ServiceAssociation. -func (mg *ServiceAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { +// SetPublishConnectionDetailsTo of this Runner. +func (mg *Runner) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { mg.Spec.PublishConnectionDetailsTo = r } -// SetWriteConnectionSecretToReference of this ServiceAssociation. -func (mg *ServiceAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this Runner. +func (mg *Runner) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this TeamAssociation. -func (mg *TeamAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this TeamAssociation. -func (mg *TeamAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetManagementPolicies of this TeamAssociation. -func (mg *TeamAssociation) GetManagementPolicies() xpv1.ManagementPolicies { +// GetManagementPolicies of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) GetManagementPolicies() xpv1.ManagementPolicies { return mg.Spec.ManagementPolicies } -// GetProviderConfigReference of this TeamAssociation. -func (mg *TeamAssociation) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } -// GetPublishConnectionDetailsTo of this TeamAssociation. -func (mg *TeamAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { +// GetPublishConnectionDetailsTo of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { return mg.Spec.PublishConnectionDetailsTo } -// GetWriteConnectionSecretToReference of this TeamAssociation. -func (mg *TeamAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this TeamAssociation. -func (mg *TeamAssociation) SetConditions(c ...xpv1.Condition) { +// SetConditions of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this TeamAssociation. -func (mg *TeamAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetManagementPolicies of this TeamAssociation. -func (mg *TeamAssociation) SetManagementPolicies(r xpv1.ManagementPolicies) { +// SetManagementPolicies of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) SetManagementPolicies(r xpv1.ManagementPolicies) { mg.Spec.ManagementPolicies = r } -// SetProviderConfigReference of this TeamAssociation. -func (mg *TeamAssociation) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } -// SetPublishConnectionDetailsTo of this TeamAssociation. -func (mg *TeamAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { +// SetPublishConnectionDetailsTo of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { mg.Spec.PublishConnectionDetailsTo = r } -// SetWriteConnectionSecretToReference of this TeamAssociation. -func (mg *TeamAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } diff --git a/apis/automation/v1alpha1/zz_generated.managedlist.go b/apis/automation/v1alpha1/zz_generated.managedlist.go index 46a9941..a43aeb4 100644 --- a/apis/automation/v1alpha1/zz_generated.managedlist.go +++ b/apis/automation/v1alpha1/zz_generated.managedlist.go @@ -16,8 +16,8 @@ func (l *ActionList) GetItems() []resource.Managed { return items } -// GetItems of this RunnerList. -func (l *RunnerList) GetItems() []resource.Managed { +// GetItems of this ActionServiceAssociationList. +func (l *ActionServiceAssociationList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -25,8 +25,8 @@ func (l *RunnerList) GetItems() []resource.Managed { return items } -// GetItems of this RunnerTeamAssociationList. -func (l *RunnerTeamAssociationList) GetItems() []resource.Managed { +// GetItems of this ActionTeamAssociationList. +func (l *ActionTeamAssociationList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -34,8 +34,8 @@ func (l *RunnerTeamAssociationList) GetItems() []resource.Managed { return items } -// GetItems of this ServiceAssociationList. -func (l *ServiceAssociationList) GetItems() []resource.Managed { +// GetItems of this RunnerList. +func (l *RunnerList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -43,8 +43,8 @@ func (l *ServiceAssociationList) GetItems() []resource.Managed { return items } -// GetItems of this TeamAssociationList. -func (l *TeamAssociationList) GetItems() []resource.Managed { +// GetItems of this RunnerTeamAssociationList. +func (l *RunnerTeamAssociationList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] diff --git a/apis/automation/v1alpha1/zz_generated.resolvers.go b/apis/automation/v1alpha1/zz_generated.resolvers.go index c38a8d1..aef7dd2 100644 --- a/apis/automation/v1alpha1/zz_generated.resolvers.go +++ b/apis/automation/v1alpha1/zz_generated.resolvers.go @@ -7,89 +7,89 @@ package v1alpha1 import ( "context" - v1alpha11 "github.com/crossplane-contrib/provider-pagerduty/apis/service/v1alpha1" - v1alpha1 "github.com/crossplane-contrib/provider-pagerduty/apis/team/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-pagerduty/apis/service/v1alpha1" + v1alpha11 "github.com/crossplane-contrib/provider-pagerduty/apis/team/v1alpha1" reference "github.com/crossplane/crossplane-runtime/pkg/reference" errors "github.com/pkg/errors" client "sigs.k8s.io/controller-runtime/pkg/client" ) -// ResolveReferences of this RunnerTeamAssociation. -func (mg *RunnerTeamAssociation) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this ActionServiceAssociation. +func (mg *ActionServiceAssociation) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse var err error rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.RunnerID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ActionID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.RunnerRefs, - Selector: mg.Spec.ForProvider.RunnerSelector, + Reference: mg.Spec.ForProvider.ActionRefs, + Selector: mg.Spec.ForProvider.ActionSelector, To: reference.To{ - List: &RunnerList{}, - Managed: &Runner{}, + List: &ActionList{}, + Managed: &Action{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.RunnerID") + return errors.Wrap(err, "mg.Spec.ForProvider.ActionID") } - mg.Spec.ForProvider.RunnerID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.RunnerRefs = rsp.ResolvedReference + mg.Spec.ForProvider.ActionID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ActionRefs = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.TeamID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ServiceID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.TeamRefs, - Selector: mg.Spec.ForProvider.TeamSelector, + Reference: mg.Spec.ForProvider.ServiceRefs, + Selector: mg.Spec.ForProvider.ServiceSelector, To: reference.To{ - List: &v1alpha1.TeamList{}, - Managed: &v1alpha1.Team{}, + List: &v1alpha1.ServiceList{}, + Managed: &v1alpha1.Service{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.TeamID") + return errors.Wrap(err, "mg.Spec.ForProvider.ServiceID") } - mg.Spec.ForProvider.TeamID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.TeamRefs = rsp.ResolvedReference + mg.Spec.ForProvider.ServiceID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ServiceRefs = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.RunnerID), + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ActionID), Extract: reference.ExternalName(), - Reference: mg.Spec.InitProvider.RunnerRefs, - Selector: mg.Spec.InitProvider.RunnerSelector, + Reference: mg.Spec.InitProvider.ActionRefs, + Selector: mg.Spec.InitProvider.ActionSelector, To: reference.To{ - List: &RunnerList{}, - Managed: &Runner{}, + List: &ActionList{}, + Managed: &Action{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.InitProvider.RunnerID") + return errors.Wrap(err, "mg.Spec.InitProvider.ActionID") } - mg.Spec.InitProvider.RunnerID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.InitProvider.RunnerRefs = rsp.ResolvedReference + mg.Spec.InitProvider.ActionID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.ActionRefs = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.TeamID), + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ServiceID), Extract: reference.ExternalName(), - Reference: mg.Spec.InitProvider.TeamRefs, - Selector: mg.Spec.InitProvider.TeamSelector, + Reference: mg.Spec.InitProvider.ServiceRefs, + Selector: mg.Spec.InitProvider.ServiceSelector, To: reference.To{ - List: &v1alpha1.TeamList{}, - Managed: &v1alpha1.Team{}, + List: &v1alpha1.ServiceList{}, + Managed: &v1alpha1.Service{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.InitProvider.TeamID") + return errors.Wrap(err, "mg.Spec.InitProvider.ServiceID") } - mg.Spec.InitProvider.TeamID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.InitProvider.TeamRefs = rsp.ResolvedReference + mg.Spec.InitProvider.ServiceID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.ServiceRefs = rsp.ResolvedReference return nil } -// ResolveReferences of this ServiceAssociation. -func (mg *ServiceAssociation) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this ActionTeamAssociation. +func (mg *ActionTeamAssociation) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -112,20 +112,20 @@ func (mg *ServiceAssociation) ResolveReferences(ctx context.Context, c client.Re mg.Spec.ForProvider.ActionRefs = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ServiceID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.TeamID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.ServiceRefs, - Selector: mg.Spec.ForProvider.ServiceSelector, + Reference: mg.Spec.ForProvider.TeamRefs, + Selector: mg.Spec.ForProvider.TeamSelector, To: reference.To{ - List: &v1alpha11.ServiceList{}, - Managed: &v1alpha11.Service{}, + List: &v1alpha11.TeamList{}, + Managed: &v1alpha11.Team{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.ServiceID") + return errors.Wrap(err, "mg.Spec.ForProvider.TeamID") } - mg.Spec.ForProvider.ServiceID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.ServiceRefs = rsp.ResolvedReference + mg.Spec.ForProvider.TeamID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.TeamRefs = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ActionID), @@ -144,46 +144,46 @@ func (mg *ServiceAssociation) ResolveReferences(ctx context.Context, c client.Re mg.Spec.InitProvider.ActionRefs = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ServiceID), + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.TeamID), Extract: reference.ExternalName(), - Reference: mg.Spec.InitProvider.ServiceRefs, - Selector: mg.Spec.InitProvider.ServiceSelector, + Reference: mg.Spec.InitProvider.TeamRefs, + Selector: mg.Spec.InitProvider.TeamSelector, To: reference.To{ - List: &v1alpha11.ServiceList{}, - Managed: &v1alpha11.Service{}, + List: &v1alpha11.TeamList{}, + Managed: &v1alpha11.Team{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.InitProvider.ServiceID") + return errors.Wrap(err, "mg.Spec.InitProvider.TeamID") } - mg.Spec.InitProvider.ServiceID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.InitProvider.ServiceRefs = rsp.ResolvedReference + mg.Spec.InitProvider.TeamID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.TeamRefs = rsp.ResolvedReference return nil } -// ResolveReferences of this TeamAssociation. -func (mg *TeamAssociation) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this RunnerTeamAssociation. +func (mg *RunnerTeamAssociation) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse var err error rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ActionID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.RunnerID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.ActionRefs, - Selector: mg.Spec.ForProvider.ActionSelector, + Reference: mg.Spec.ForProvider.RunnerRefs, + Selector: mg.Spec.ForProvider.RunnerSelector, To: reference.To{ - List: &ActionList{}, - Managed: &Action{}, + List: &RunnerList{}, + Managed: &Runner{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.ActionID") + return errors.Wrap(err, "mg.Spec.ForProvider.RunnerID") } - mg.Spec.ForProvider.ActionID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.ActionRefs = rsp.ResolvedReference + mg.Spec.ForProvider.RunnerID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.RunnerRefs = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.TeamID), @@ -191,8 +191,8 @@ func (mg *TeamAssociation) ResolveReferences(ctx context.Context, c client.Reade Reference: mg.Spec.ForProvider.TeamRefs, Selector: mg.Spec.ForProvider.TeamSelector, To: reference.To{ - List: &v1alpha1.TeamList{}, - Managed: &v1alpha1.Team{}, + List: &v1alpha11.TeamList{}, + Managed: &v1alpha11.Team{}, }, }) if err != nil { @@ -202,20 +202,20 @@ func (mg *TeamAssociation) ResolveReferences(ctx context.Context, c client.Reade mg.Spec.ForProvider.TeamRefs = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ActionID), + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.RunnerID), Extract: reference.ExternalName(), - Reference: mg.Spec.InitProvider.ActionRefs, - Selector: mg.Spec.InitProvider.ActionSelector, + Reference: mg.Spec.InitProvider.RunnerRefs, + Selector: mg.Spec.InitProvider.RunnerSelector, To: reference.To{ - List: &ActionList{}, - Managed: &Action{}, + List: &RunnerList{}, + Managed: &Runner{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.InitProvider.ActionID") + return errors.Wrap(err, "mg.Spec.InitProvider.RunnerID") } - mg.Spec.InitProvider.ActionID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.InitProvider.ActionRefs = rsp.ResolvedReference + mg.Spec.InitProvider.RunnerID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.RunnerRefs = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.TeamID), @@ -223,8 +223,8 @@ func (mg *TeamAssociation) ResolveReferences(ctx context.Context, c client.Reade Reference: mg.Spec.InitProvider.TeamRefs, Selector: mg.Spec.InitProvider.TeamSelector, To: reference.To{ - List: &v1alpha1.TeamList{}, - Managed: &v1alpha1.Team{}, + List: &v1alpha11.TeamList{}, + Managed: &v1alpha11.Team{}, }, }) if err != nil { diff --git a/build b/build index 75a9fe3..cc14f9c 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit 75a9fe3ae6b6de82c5f7ddc6a267617940f16b83 +Subproject commit cc14f9cdac034e0eaaeb43479f57ee85d5490473 diff --git a/config/actions/config.go b/config/actions/config.go index b7b56d0..3278b43 100644 --- a/config/actions/config.go +++ b/config/actions/config.go @@ -7,14 +7,18 @@ import ( "github.com/crossplane/upjet/pkg/config" ) +const ( + ShortGroup = "automation.actions" +) + func Configure(p *config.Provider) { p.AddResourceConfigurator("pagerduty_automation_actions_action", func(r *config.Resource) { - r.ShortGroup = "automation.actions" + r.ShortGroup = ShortGroup r.Kind = "Action" }) p.AddResourceConfigurator("pagerduty_automation_actions_action_service_association", func(r *config.Resource) { - r.ShortGroup = "automation.actions" - r.Kind = "ServiceAssociation" + r.ShortGroup = ShortGroup + r.Kind = "ActionServiceAssociation" r.ExternalName.GetIDFn = func(_ context.Context, externalName string, parameters map[string]any, _ map[string]any) (string, error) { return fmt.Sprintf("%s:%s", parameters["action_id"].(string), parameters["service_id"].(string)), nil } @@ -32,8 +36,8 @@ func Configure(p *config.Provider) { } }) p.AddResourceConfigurator("pagerduty_automation_actions_action_team_association", func(r *config.Resource) { - r.ShortGroup = "automation.actions" - r.Kind = "TeamAssociation" + r.ShortGroup = ShortGroup + r.Kind = "ActionTeamAssociation" r.ExternalName.GetIDFn = func(_ context.Context, externalName string, parameters map[string]any, _ map[string]any) (string, error) { return fmt.Sprintf("%s:%s", parameters["action_id"].(string), parameters["team_id"].(string)), nil } @@ -51,11 +55,11 @@ func Configure(p *config.Provider) { } }) p.AddResourceConfigurator("pagerduty_automation_actions_runner", func(r *config.Resource) { - r.ShortGroup = "automation.actions" + r.ShortGroup = ShortGroup r.Kind = "Runner" }) p.AddResourceConfigurator("pagerduty_automation_actions_runner_team_association", func(r *config.Resource) { - r.ShortGroup = "automation.actions" + r.ShortGroup = ShortGroup r.Kind = "RunnerTeamAssociation" r.ExternalName.GetIDFn = func(_ context.Context, externalName string, parameters map[string]any, _ map[string]any) (string, error) { return fmt.Sprintf("%s:%s", parameters["runner_id"].(string), parameters["team_id"].(string)), nil diff --git a/config/event/config.go b/config/event/config.go index e11a6c3..0e27a83 100644 --- a/config/event/config.go +++ b/config/event/config.go @@ -7,6 +7,10 @@ import ( "github.com/crossplane/upjet/pkg/config" ) +const ( + ShortGroup = "event" +) + // Configure configures individual resources by adding custom ResourceConfigurators. func Configure(p *config.Provider) { @@ -16,7 +20,7 @@ func Configure(p *config.Provider) { p.AddResourceConfigurator("pagerduty_event_orchestration_unrouted", func(r *config.Resource) { - r.ShortGroup = "event" + r.ShortGroup = ShortGroup r.References = config.References{ "event_orchestration": { Type: "Orchestration", @@ -26,7 +30,7 @@ func Configure(p *config.Provider) { p.AddResourceConfigurator("pagerduty_event_orchestration_service", func(r *config.Resource) { - r.ShortGroup = "event" + r.ShortGroup = ShortGroup r.References = config.References{ "service": { Type: "github.com/crossplane-contrib/provider-pagerduty/apis/service/v1alpha1.Service", @@ -37,7 +41,7 @@ func Configure(p *config.Provider) { p.AddResourceConfigurator("pagerduty_event_orchestration_router", func(r *config.Resource) { - r.ShortGroup = "event" + r.ShortGroup = ShortGroup r.References = config.References{ "event_orchestration": { Type: "Orchestration", @@ -47,7 +51,7 @@ func Configure(p *config.Provider) { p.AddResourceConfigurator("pagerduty_event_orchestration", func(r *config.Resource) { - r.ShortGroup = "event" + r.ShortGroup = ShortGroup r.References = config.References{ "team": { Type: "github.com/crossplane-contrib/provider-pagerduty/apis/team/v1alpha1.Team", @@ -57,7 +61,7 @@ func Configure(p *config.Provider) { p.AddResourceConfigurator("pagerduty_event_orchestration_global_cache_variable", func(r *config.Resource) { - r.ShortGroup = "event" + r.ShortGroup = ShortGroup r.ExternalName.GetIDFn = func(_ context.Context, externalName string, parameters map[string]any, _ map[string]any) (string, error) { return fmt.Sprintf("%s:%s", parameters["event_orchestration"].(string), externalName), nil } @@ -70,7 +74,7 @@ func Configure(p *config.Provider) { p.AddResourceConfigurator("pagerduty_event_orchestration_global", func(r *config.Resource) { - r.ShortGroup = "event" + r.ShortGroup = ShortGroup r.ExternalName.GetIDFn = func(_ context.Context, externalName string, parameters map[string]any, _ map[string]any) (string, error) { return fmt.Sprintf("%s:%s", parameters["event_orchestration"].(string), externalName), nil } @@ -83,7 +87,7 @@ func Configure(p *config.Provider) { p.AddResourceConfigurator("pagerduty_event_orchestration_integration", func(r *config.Resource) { - r.ShortGroup = "event" + r.ShortGroup = ShortGroup r.ExternalName.GetIDFn = func(_ context.Context, externalName string, parameters map[string]any, _ map[string]any) (string, error) { return fmt.Sprintf("%s:%s", parameters["event_orchestration"].(string), externalName), nil } @@ -96,7 +100,7 @@ func Configure(p *config.Provider) { p.AddResourceConfigurator("pagerduty_event_orchestration_service_cache_variable", func(r *config.Resource) { - r.ShortGroup = "event" + r.ShortGroup = ShortGroup r.ExternalName.GetIDFn = func(_ context.Context, externalName string, parameters map[string]any, _ map[string]any) (string, error) { return fmt.Sprintf("%s:%s", parameters["service"].(string), externalName), nil } diff --git a/examples-generated/automation/v1alpha1/serviceassociation.yaml b/examples-generated/automation/v1alpha1/actionserviceassociation.yaml similarity index 80% rename from examples-generated/automation/v1alpha1/serviceassociation.yaml rename to examples-generated/automation/v1alpha1/actionserviceassociation.yaml index 18e349b..0a0eda8 100644 --- a/examples-generated/automation/v1alpha1/serviceassociation.yaml +++ b/examples-generated/automation/v1alpha1/actionserviceassociation.yaml @@ -1,8 +1,8 @@ apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 -kind: ServiceAssociation +kind: ActionServiceAssociation metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/serviceassociation + meta.upbound.io/example-id: automation/v1alpha1/actionserviceassociation labels: testing.upbound.io/example-name: foo name: foo @@ -21,7 +21,7 @@ apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 kind: Action metadata: annotations: - meta.upbound.io/example-id: automation.actions/v1alpha1/serviceassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionserviceassociation labels: testing.upbound.io/example-name: pa_action_example name: pa-action-example @@ -39,7 +39,7 @@ apiVersion: escalation.pagerduty.crossplane.io/v1alpha1 kind: Policy metadata: annotations: - meta.upbound.io/example-id: automation.actions/v1alpha1/serviceassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionserviceassociation labels: testing.upbound.io/example-name: foo name: foo @@ -59,7 +59,7 @@ apiVersion: service.pagerduty.crossplane.io/v1alpha1 kind: Service metadata: annotations: - meta.upbound.io/example-id: automation.actions/v1alpha1/serviceassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionserviceassociation labels: testing.upbound.io/example-name: example name: example @@ -82,7 +82,7 @@ apiVersion: user.pagerduty.crossplane.io/v1alpha1 kind: User metadata: annotations: - meta.upbound.io/example-id: automation.actions/v1alpha1/serviceassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionserviceassociation labels: testing.upbound.io/example-name: example name: example diff --git a/examples-generated/automation/v1alpha1/teamassociation.yaml b/examples-generated/automation/v1alpha1/actionteamassociation.yaml similarity index 79% rename from examples-generated/automation/v1alpha1/teamassociation.yaml rename to examples-generated/automation/v1alpha1/actionteamassociation.yaml index e12bda9..9a1c72a 100644 --- a/examples-generated/automation/v1alpha1/teamassociation.yaml +++ b/examples-generated/automation/v1alpha1/actionteamassociation.yaml @@ -1,8 +1,8 @@ apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 -kind: TeamAssociation +kind: ActionTeamAssociation metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/teamassociation + meta.upbound.io/example-id: automation/v1alpha1/actionteamassociation labels: testing.upbound.io/example-name: foo name: foo @@ -21,7 +21,7 @@ apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 kind: Action metadata: annotations: - meta.upbound.io/example-id: automation.actions/v1alpha1/teamassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionteamassociation labels: testing.upbound.io/example-name: pa_action_example name: pa-action-example @@ -39,7 +39,7 @@ apiVersion: team.pagerduty.crossplane.io/v1alpha1 kind: Team metadata: annotations: - meta.upbound.io/example-id: automation.actions/v1alpha1/teamassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionteamassociation labels: testing.upbound.io/example-name: example name: example diff --git a/examples/alert/v1alpha1/groupingsetting.yaml b/examples/alert/v1alpha1/groupingsetting.yaml index 1ab3317..b6ac1bf 100644 --- a/examples/alert/v1alpha1/groupingsetting.yaml +++ b/examples/alert/v1alpha1/groupingsetting.yaml @@ -14,8 +14,8 @@ spec: - fields timeWindow: 300 name: Configuration for type-1 devices - services: - - ${pagerduty_service.basic.id} + serviceRefs: + - name: basic type: content_based --- diff --git a/examples/automation/v1alpha1/actionsaction.yaml b/examples/automation/v1alpha1/action.yaml similarity index 69% rename from examples/automation/v1alpha1/actionsaction.yaml rename to examples/automation/v1alpha1/action.yaml index 83c288e..5da3c11 100644 --- a/examples/automation/v1alpha1/actionsaction.yaml +++ b/examples/automation/v1alpha1/action.yaml @@ -1,8 +1,8 @@ -apiVersion: automation.pagerduty.crossplane.io/v1alpha1 -kind: ActionsAction +apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 +kind: Action metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsaction + meta.upbound.io/example-id: automation/v1alpha1/action labels: testing.upbound.io/example-name: pa_action_example name: pa-action-example diff --git a/examples/automation/v1alpha1/actionsactionserviceassociation.yaml b/examples/automation/v1alpha1/actionserviceassociation.yaml similarity index 66% rename from examples/automation/v1alpha1/actionsactionserviceassociation.yaml rename to examples/automation/v1alpha1/actionserviceassociation.yaml index ca87491..0a0eda8 100644 --- a/examples/automation/v1alpha1/actionsactionserviceassociation.yaml +++ b/examples/automation/v1alpha1/actionserviceassociation.yaml @@ -1,23 +1,27 @@ -apiVersion: automation.pagerduty.crossplane.io/v1alpha1 -kind: ActionsActionServiceAssociation +apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 +kind: ActionServiceAssociation metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsactionserviceassociation + meta.upbound.io/example-id: automation/v1alpha1/actionserviceassociation labels: testing.upbound.io/example-name: foo name: foo spec: forProvider: - actionId: ${pagerduty_automation_actions_action.pa_action_example.id} - serviceId: ${pagerduty_service.example.id} + actionSelector: + matchLabels: + testing.upbound.io/example-name: pa_action_example + serviceSelector: + matchLabels: + testing.upbound.io/example-name: example --- -apiVersion: automation.pagerduty.crossplane.io/v1alpha1 -kind: ActionsAction +apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 +kind: Action metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsactionserviceassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionserviceassociation labels: testing.upbound.io/example-name: pa_action_example name: pa-action-example @@ -35,7 +39,7 @@ apiVersion: escalation.pagerduty.crossplane.io/v1alpha1 kind: Policy metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsactionserviceassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionserviceassociation labels: testing.upbound.io/example-name: foo name: foo @@ -55,7 +59,7 @@ apiVersion: service.pagerduty.crossplane.io/v1alpha1 kind: Service metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsactionserviceassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionserviceassociation labels: testing.upbound.io/example-name: example name: example @@ -78,7 +82,7 @@ apiVersion: user.pagerduty.crossplane.io/v1alpha1 kind: User metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsactionserviceassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionserviceassociation labels: testing.upbound.io/example-name: example name: example diff --git a/examples/automation/v1alpha1/actionsrunnerteamassociation.yaml b/examples/automation/v1alpha1/actionsrunnerteamassociation.yaml deleted file mode 100644 index 5567a61..0000000 --- a/examples/automation/v1alpha1/actionsrunnerteamassociation.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: automation.pagerduty.crossplane.io/v1alpha1 -kind: ActionsRunnerTeamAssociation -metadata: - annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsrunnerteamassociation - labels: - testing.upbound.io/example-name: pa_runner_ent_eng_assoc - name: pa-runner-ent-eng-assoc -spec: - forProvider: - runnerId: ${pagerduty_automation_actions_runner.pa_runbook_runner.id} - teamId: ${pagerduty_team.team_ent_eng.id} - ---- - -apiVersion: team.pagerduty.crossplane.io/v1alpha1 -kind: Team -metadata: - annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsrunnerteamassociation - labels: - testing.upbound.io/example-name: team_ent_eng - name: team-ent-eng -spec: - forProvider: - description: Enterprise engineering - name: Enterprise Engineering diff --git a/examples/automation/v1alpha1/actionsactionteamassociation.yaml b/examples/automation/v1alpha1/actionteamassociation.yaml similarity index 53% rename from examples/automation/v1alpha1/actionsactionteamassociation.yaml rename to examples/automation/v1alpha1/actionteamassociation.yaml index d46e4e5..9a1c72a 100644 --- a/examples/automation/v1alpha1/actionsactionteamassociation.yaml +++ b/examples/automation/v1alpha1/actionteamassociation.yaml @@ -1,23 +1,27 @@ -apiVersion: automation.pagerduty.crossplane.io/v1alpha1 -kind: ActionsActionTeamAssociation +apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 +kind: ActionTeamAssociation metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsactionteamassociation + meta.upbound.io/example-id: automation/v1alpha1/actionteamassociation labels: testing.upbound.io/example-name: foo name: foo spec: forProvider: - actionId: ${pagerduty_automation_actions_action.pa_action_example.id} - teamId: ${pagerduty_team.example.id} + actionSelector: + matchLabels: + testing.upbound.io/example-name: pa_action_example + teamSelector: + matchLabels: + testing.upbound.io/example-name: example --- -apiVersion: automation.pagerduty.crossplane.io/v1alpha1 -kind: ActionsAction +apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 +kind: Action metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsactionteamassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionteamassociation labels: testing.upbound.io/example-name: pa_action_example name: pa-action-example @@ -35,7 +39,7 @@ apiVersion: team.pagerduty.crossplane.io/v1alpha1 kind: Team metadata: annotations: - meta.upbound.io/example-id: automation/v1alpha1/actionsactionteamassociation + meta.upbound.io/example-id: automation.actions/v1alpha1/actionteamassociation labels: testing.upbound.io/example-name: example name: example diff --git a/examples/automation/v1alpha1/runner.yaml b/examples/automation/v1alpha1/runner.yaml new file mode 100644 index 0000000..293980e --- /dev/null +++ b/examples/automation/v1alpha1/runner.yaml @@ -0,0 +1,18 @@ +apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 +kind: Runner +metadata: + annotations: + meta.upbound.io/example-id: automation/v1alpha1/runner + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + description: Description of the Runner created via TF + name: Runner created via TF + runbookApiKeySecretRef: + key: example-key + name: example-secret + namespace: upbound-system + runbookBaseUri: rdcat.stg + runnerType: runbook diff --git a/examples/automation/v1alpha1/runnerteamassociation.yaml b/examples/automation/v1alpha1/runnerteamassociation.yaml new file mode 100644 index 0000000..a4f85a8 --- /dev/null +++ b/examples/automation/v1alpha1/runnerteamassociation.yaml @@ -0,0 +1,52 @@ +apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 +kind: RunnerTeamAssociation +metadata: + annotations: + meta.upbound.io/example-id: automation/v1alpha1/runnerteamassociation + labels: + testing.upbound.io/example-name: pa_runner_ent_eng_assoc + name: pa-runner-ent-eng-assoc +spec: + forProvider: + runnerSelector: + matchLabels: + testing.upbound.io/example-name: pa_runbook_runner + teamSelector: + matchLabels: + testing.upbound.io/example-name: team_ent_eng + +--- + +apiVersion: automation.actions.pagerduty.crossplane.io/v1alpha1 +kind: Runner +metadata: + annotations: + meta.upbound.io/example-id: automation.actions/v1alpha1/runnerteamassociation + labels: + testing.upbound.io/example-name: pa_runbook_runner + name: pa-runbook-runner +spec: + forProvider: + description: Description of the Runner created via TF + name: Runner created via TF + runbookApiKeySecretRef: + key: example-key + name: example-secret + namespace: upbound-system + runbookBaseUri: cat-cat + runnerType: runbook + +--- + +apiVersion: team.pagerduty.crossplane.io/v1alpha1 +kind: Team +metadata: + annotations: + meta.upbound.io/example-id: automation.actions/v1alpha1/runnerteamassociation + labels: + testing.upbound.io/example-name: team_ent_eng + name: team-ent-eng +spec: + forProvider: + description: Enterprise engineering + name: Enterprise Engineering diff --git a/examples/event/v1alpha1/orchestrationglobal.yaml b/examples/event/v1alpha1/orchestrationglobal.yaml index d279b85..0db444a 100644 --- a/examples/event/v1alpha1/orchestrationglobal.yaml +++ b/examples/event/v1alpha1/orchestrationglobal.yaml @@ -11,7 +11,9 @@ spec: catchAll: - actions: - {} - eventOrchestration: ${pagerduty_event_orchestration.event_orchestration.id} + eventOrchestrationSelector: + matchLabels: + testing.upbound.io/example-name: event_orchestration set: - id: start rule: diff --git a/examples/event/v1alpha1/orchestrationglobalcachevariable.yaml b/examples/event/v1alpha1/orchestrationglobalcachevariable.yaml index ef13ece..beeb8a1 100644 --- a/examples/event/v1alpha1/orchestrationglobalcachevariable.yaml +++ b/examples/event/v1alpha1/orchestrationglobalcachevariable.yaml @@ -14,7 +14,9 @@ spec: - regex: .* source: event.source type: recent_value - eventOrchestration: ${pagerduty_event_orchestration.event_orchestration.id} + eventOrchestrationSelector: + matchLabels: + testing.upbound.io/example-name: event_orchestration name: recent_host --- @@ -49,7 +51,9 @@ spec: catchAll: - actions: - {} - eventOrchestration: ${pagerduty_event_orchestration.event_orchestration.id} + eventOrchestrationSelector: + matchLabels: + testing.upbound.io/example-name: event_orchestration set: - id: start rule: diff --git a/examples/event/v1alpha1/orchestrationintegration.yaml b/examples/event/v1alpha1/orchestrationintegration.yaml index c7a1bf6..aad1ef6 100644 --- a/examples/event/v1alpha1/orchestrationintegration.yaml +++ b/examples/event/v1alpha1/orchestrationintegration.yaml @@ -8,7 +8,9 @@ metadata: name: integration spec: forProvider: - eventOrchestration: ${pagerduty_event_orchestration.event_orchestration.id} + eventOrchestrationSelector: + matchLabels: + testing.upbound.io/example-name: event_orchestration label: Example integration --- diff --git a/examples/event/v1alpha1/orchestrationservicecachevariable.yaml b/examples/event/v1alpha1/orchestrationservicecachevariable.yaml index 5a75e97..cc117a2 100644 --- a/examples/event/v1alpha1/orchestrationservicecachevariable.yaml +++ b/examples/event/v1alpha1/orchestrationservicecachevariable.yaml @@ -14,7 +14,9 @@ spec: - ttlSeconds: 60 type: trigger_event_count name: num_db_triggers - service: ${pagerduty_service.svc.id} + serviceSelector: + matchLabels: + testing.upbound.io/example-name: svc --- diff --git a/examples/incident/v1alpha1/customfieldoption.yaml b/examples/incident/v1alpha1/customfieldoption.yaml index b6a4211..43cbf80 100644 --- a/examples/incident/v1alpha1/customfieldoption.yaml +++ b/examples/incident/v1alpha1/customfieldoption.yaml @@ -9,7 +9,9 @@ metadata: spec: forProvider: dataType: string - field: ${pagerduty_incident_custom_field.sre_environment.id} + fieldSelector: + matchLabels: + testing.upbound.io/example-name: sre_environment value: dev --- diff --git a/examples/incident/v1alpha1/workflowtrigger.yaml b/examples/incident/v1alpha1/workflowtrigger.yaml index e61f48e..70a3106 100644 --- a/examples/incident/v1alpha1/workflowtrigger.yaml +++ b/examples/incident/v1alpha1/workflowtrigger.yaml @@ -13,7 +13,9 @@ spec: - ${pagerduty_service.first_service.id} subscribedToAllServices: false type: conditional - workflow: ${pagerduty_incident_workflow.my_first_workflow.id} + workflowSelector: + matchLabels: + testing.upbound.io/example-name: my_first_workflow --- diff --git a/examples/install.yaml b/examples/install.yaml deleted file mode 100644 index 5717cca..0000000 --- a/examples/install.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: pkg.crossplane.io/v1 -kind: Provider -metadata: - name: provider-pagerduty -spec: - package: crossplane-contrib/provider-pagerduty:v0.1.0 diff --git a/examples/providerconfig/.gitignore b/examples/providerconfig/.gitignore deleted file mode 100644 index 4a424df..0000000 --- a/examples/providerconfig/.gitignore +++ /dev/null @@ -1 +0,0 @@ -secret.yaml diff --git a/examples/providerconfig/providerconfig.yaml b/examples/providerconfig/providerconfig.yaml deleted file mode 100644 index fef9d0d..0000000 --- a/examples/providerconfig/providerconfig.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: pagerduty.crossplane.io/v1beta1 -kind: ProviderConfig -metadata: - name: default -spec: - credentials: - source: Secret - secretRef: - name: pagerduty-creds - namespace: crossplane-system - key: credentials diff --git a/examples/providerconfig/secret.yaml.tmpl b/examples/providerconfig/secret.yaml.tmpl deleted file mode 100644 index a21cdcd..0000000 --- a/examples/providerconfig/secret.yaml.tmpl +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: pagerduty-creds - namespace: crossplane-system -type: Opaque -stringData: - credentials: | - { - "token": "y0ur-t0k3n", - "user_token": "y0ur-t0k3n" - } diff --git a/examples/storeconfig/vault.yaml b/examples/storeconfig/vault.yaml deleted file mode 100644 index 709df19..0000000 --- a/examples/storeconfig/vault.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: pagerduty.crossplane.io/v1alpha1 -kind: StoreConfig -metadata: - name: vault -spec: - type: Vault - defaultScope: crossplane-system - vault: - server: http://vault.vault-system:8200 - mountPath: kv2/ - version: v2 - auth: - method: Token - token: - source: Secret - secretRef: - namespace: crossplane-system - name: vault-token - key: token \ No newline at end of file diff --git a/examples/user/v1alpha1/handoffnotificationrule.yaml b/examples/user/v1alpha1/handoffnotificationrule.yaml index 646a2a3..498f855 100644 --- a/examples/user/v1alpha1/handoffnotificationrule.yaml +++ b/examples/user/v1alpha1/handoffnotificationrule.yaml @@ -13,7 +13,9 @@ spec: type: email_contact_method handoffType: both notifyAdvanceInMinutes: 180 - userId: ${pagerduty_user.example.id} + userIdSelector: + matchLabels: + testing.upbound.io/example-name: example --- diff --git a/internal/controller/automation/serviceassociation/zz_controller.go b/internal/controller/automation/actionserviceassociation/zz_controller.go similarity index 80% rename from internal/controller/automation/serviceassociation/zz_controller.go rename to internal/controller/automation/actionserviceassociation/zz_controller.go index 4bbd363..a9b880a 100755 --- a/internal/controller/automation/serviceassociation/zz_controller.go +++ b/internal/controller/automation/actionserviceassociation/zz_controller.go @@ -4,7 +4,7 @@ Copyright 2022 Upbound Inc. // Code generated by upjet. DO NOT EDIT. -package serviceassociation +package actionserviceassociation import ( "time" @@ -25,16 +25,16 @@ import ( features "github.com/crossplane-contrib/provider-pagerduty/internal/features" ) -// Setup adds a controller that reconciles ServiceAssociation managed resources. +// Setup adds a controller that reconciles ActionServiceAssociation managed resources. func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { - name := managed.ControllerName(v1alpha1.ServiceAssociation_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.ActionServiceAssociation_GroupVersionKind.String()) var initializers managed.InitializerChain cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} if o.SecretStoreConfigGVK != nil { cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) } - eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.ServiceAssociation_GroupVersionKind))) - ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ServiceAssociation_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.ActionServiceAssociation_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ActionServiceAssociation_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) opts := []managed.ReconcilerOption{ managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["pagerduty_automation_actions_action_service_association"], tjcontroller.WithLogger(o.Logger), tjcontroller.WithConnectorEventHandler(eventHandler), tjcontroller.WithCallbackProvider(ac), @@ -57,31 +57,31 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { opts = append(opts, managed.WithMetricRecorder(o.MetricOptions.MRMetrics)) } - // register webhooks for the kind v1alpha1.ServiceAssociation + // register webhooks for the kind v1alpha1.ActionServiceAssociation // if they're enabled. if o.StartWebhooks { if err := ctrl.NewWebhookManagedBy(mgr). - For(&v1alpha1.ServiceAssociation{}). + For(&v1alpha1.ActionServiceAssociation{}). Complete(); err != nil { - return errors.Wrap(err, "cannot register webhook for the kind v1alpha1.ServiceAssociation") + return errors.Wrap(err, "cannot register webhook for the kind v1alpha1.ActionServiceAssociation") } } if o.MetricOptions != nil && o.MetricOptions.MRStateMetrics != nil { stateMetricsRecorder := statemetrics.NewMRStateRecorder( - mgr.GetClient(), o.Logger, o.MetricOptions.MRStateMetrics, &v1alpha1.ServiceAssociationList{}, o.MetricOptions.PollStateMetricInterval, + mgr.GetClient(), o.Logger, o.MetricOptions.MRStateMetrics, &v1alpha1.ActionServiceAssociationList{}, o.MetricOptions.PollStateMetricInterval, ) if err := mgr.Add(stateMetricsRecorder); err != nil { - return errors.Wrap(err, "cannot register MR state metrics recorder for kind v1alpha1.ServiceAssociationList") + return errors.Wrap(err, "cannot register MR state metrics recorder for kind v1alpha1.ActionServiceAssociationList") } } - r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.ServiceAssociation_GroupVersionKind), opts...) + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.ActionServiceAssociation_GroupVersionKind), opts...) return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(o.ForControllerRuntime()). WithEventFilter(xpresource.DesiredStateChanged()). - Watches(&v1alpha1.ServiceAssociation{}, eventHandler). + Watches(&v1alpha1.ActionServiceAssociation{}, eventHandler). Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) } diff --git a/internal/controller/automation/teamassociation/zz_controller.go b/internal/controller/automation/actionteamassociation/zz_controller.go similarity index 81% rename from internal/controller/automation/teamassociation/zz_controller.go rename to internal/controller/automation/actionteamassociation/zz_controller.go index 80f4808..5cc2e6e 100755 --- a/internal/controller/automation/teamassociation/zz_controller.go +++ b/internal/controller/automation/actionteamassociation/zz_controller.go @@ -4,7 +4,7 @@ Copyright 2022 Upbound Inc. // Code generated by upjet. DO NOT EDIT. -package teamassociation +package actionteamassociation import ( "time" @@ -25,16 +25,16 @@ import ( features "github.com/crossplane-contrib/provider-pagerduty/internal/features" ) -// Setup adds a controller that reconciles TeamAssociation managed resources. +// Setup adds a controller that reconciles ActionTeamAssociation managed resources. func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { - name := managed.ControllerName(v1alpha1.TeamAssociation_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.ActionTeamAssociation_GroupVersionKind.String()) var initializers managed.InitializerChain cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} if o.SecretStoreConfigGVK != nil { cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) } - eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.TeamAssociation_GroupVersionKind))) - ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.TeamAssociation_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.ActionTeamAssociation_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ActionTeamAssociation_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) opts := []managed.ReconcilerOption{ managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["pagerduty_automation_actions_action_team_association"], tjcontroller.WithLogger(o.Logger), tjcontroller.WithConnectorEventHandler(eventHandler), tjcontroller.WithCallbackProvider(ac), @@ -57,31 +57,31 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { opts = append(opts, managed.WithMetricRecorder(o.MetricOptions.MRMetrics)) } - // register webhooks for the kind v1alpha1.TeamAssociation + // register webhooks for the kind v1alpha1.ActionTeamAssociation // if they're enabled. if o.StartWebhooks { if err := ctrl.NewWebhookManagedBy(mgr). - For(&v1alpha1.TeamAssociation{}). + For(&v1alpha1.ActionTeamAssociation{}). Complete(); err != nil { - return errors.Wrap(err, "cannot register webhook for the kind v1alpha1.TeamAssociation") + return errors.Wrap(err, "cannot register webhook for the kind v1alpha1.ActionTeamAssociation") } } if o.MetricOptions != nil && o.MetricOptions.MRStateMetrics != nil { stateMetricsRecorder := statemetrics.NewMRStateRecorder( - mgr.GetClient(), o.Logger, o.MetricOptions.MRStateMetrics, &v1alpha1.TeamAssociationList{}, o.MetricOptions.PollStateMetricInterval, + mgr.GetClient(), o.Logger, o.MetricOptions.MRStateMetrics, &v1alpha1.ActionTeamAssociationList{}, o.MetricOptions.PollStateMetricInterval, ) if err := mgr.Add(stateMetricsRecorder); err != nil { - return errors.Wrap(err, "cannot register MR state metrics recorder for kind v1alpha1.TeamAssociationList") + return errors.Wrap(err, "cannot register MR state metrics recorder for kind v1alpha1.ActionTeamAssociationList") } } - r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.TeamAssociation_GroupVersionKind), opts...) + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.ActionTeamAssociation_GroupVersionKind), opts...) return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(o.ForControllerRuntime()). WithEventFilter(xpresource.DesiredStateChanged()). - Watches(&v1alpha1.TeamAssociation{}, eventHandler). + Watches(&v1alpha1.ActionTeamAssociation{}, eventHandler). Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) } diff --git a/internal/controller/zz_setup.go b/internal/controller/zz_setup.go index d0dc146..9fd681c 100755 --- a/internal/controller/zz_setup.go +++ b/internal/controller/zz_setup.go @@ -12,10 +12,10 @@ import ( addon "github.com/crossplane-contrib/provider-pagerduty/internal/controller/addon/addon" groupingsetting "github.com/crossplane-contrib/provider-pagerduty/internal/controller/alert/groupingsetting" action "github.com/crossplane-contrib/provider-pagerduty/internal/controller/automation/action" + actionserviceassociation "github.com/crossplane-contrib/provider-pagerduty/internal/controller/automation/actionserviceassociation" + actionteamassociation "github.com/crossplane-contrib/provider-pagerduty/internal/controller/automation/actionteamassociation" runner "github.com/crossplane-contrib/provider-pagerduty/internal/controller/automation/runner" runnerteamassociation "github.com/crossplane-contrib/provider-pagerduty/internal/controller/automation/runnerteamassociation" - serviceassociation "github.com/crossplane-contrib/provider-pagerduty/internal/controller/automation/serviceassociation" - teamassociation "github.com/crossplane-contrib/provider-pagerduty/internal/controller/automation/teamassociation" service "github.com/crossplane-contrib/provider-pagerduty/internal/controller/business/service" servicesubscriber "github.com/crossplane-contrib/provider-pagerduty/internal/controller/business/servicesubscriber" policy "github.com/crossplane-contrib/provider-pagerduty/internal/controller/escalation/policy" @@ -64,10 +64,10 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { addon.Setup, groupingsetting.Setup, action.Setup, + actionserviceassociation.Setup, + actionteamassociation.Setup, runner.Setup, runnerteamassociation.Setup, - serviceassociation.Setup, - teamassociation.Setup, service.Setup, servicesubscriber.Setup, policy.Setup, diff --git a/package/crds/automation.actions.pagerduty.crossplane.io_serviceassociations.yaml b/package/crds/automation.actions.pagerduty.crossplane.io_actionserviceassociations.yaml similarity index 98% rename from package/crds/automation.actions.pagerduty.crossplane.io_serviceassociations.yaml rename to package/crds/automation.actions.pagerduty.crossplane.io_actionserviceassociations.yaml index 915399f..08b3bae 100644 --- a/package/crds/automation.actions.pagerduty.crossplane.io_serviceassociations.yaml +++ b/package/crds/automation.actions.pagerduty.crossplane.io_actionserviceassociations.yaml @@ -4,7 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.14.0 - name: serviceassociations.automation.actions.pagerduty.crossplane.io + name: actionserviceassociations.automation.actions.pagerduty.crossplane.io spec: group: automation.actions.pagerduty.crossplane.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - pagerduty - kind: ServiceAssociation - listKind: ServiceAssociationList - plural: serviceassociations - singular: serviceassociation + kind: ActionServiceAssociation + listKind: ActionServiceAssociationList + plural: actionserviceassociations + singular: actionserviceassociation scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ServiceAssociation is the Schema for the ServiceAssociations + description: ActionServiceAssociation is the Schema for the ActionServiceAssociations API. Creates and manages an Automation Actions action association with a Service in PagerDuty. properties: @@ -56,7 +56,8 @@ spec: metadata: type: object spec: - description: ServiceAssociationSpec defines the desired state of ServiceAssociation + description: ActionServiceAssociationSpec defines the desired state of + ActionServiceAssociation properties: deletionPolicy: default: Delete @@ -565,7 +566,8 @@ spec: - forProvider type: object status: - description: ServiceAssociationStatus defines the observed state of ServiceAssociation. + description: ActionServiceAssociationStatus defines the observed state + of ActionServiceAssociation. properties: atProvider: properties: diff --git a/package/crds/automation.actions.pagerduty.crossplane.io_teamassociations.yaml b/package/crds/automation.actions.pagerduty.crossplane.io_actionteamassociations.yaml similarity index 98% rename from package/crds/automation.actions.pagerduty.crossplane.io_teamassociations.yaml rename to package/crds/automation.actions.pagerduty.crossplane.io_actionteamassociations.yaml index 9a7295f..704c7f0 100644 --- a/package/crds/automation.actions.pagerduty.crossplane.io_teamassociations.yaml +++ b/package/crds/automation.actions.pagerduty.crossplane.io_actionteamassociations.yaml @@ -4,7 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.14.0 - name: teamassociations.automation.actions.pagerduty.crossplane.io + name: actionteamassociations.automation.actions.pagerduty.crossplane.io spec: group: automation.actions.pagerduty.crossplane.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - pagerduty - kind: TeamAssociation - listKind: TeamAssociationList - plural: teamassociations - singular: teamassociation + kind: ActionTeamAssociation + listKind: ActionTeamAssociationList + plural: actionteamassociations + singular: actionteamassociation scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,9 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: TeamAssociation is the Schema for the TeamAssociations API. Creates - and manages an Automation Actions action association with a Team in PagerDuty. + description: ActionTeamAssociation is the Schema for the ActionTeamAssociations + API. Creates and manages an Automation Actions action association with a + Team in PagerDuty. properties: apiVersion: description: |- @@ -55,7 +56,7 @@ spec: metadata: type: object spec: - description: TeamAssociationSpec defines the desired state of TeamAssociation + description: ActionTeamAssociationSpec defines the desired state of ActionTeamAssociation properties: deletionPolicy: default: Delete @@ -564,7 +565,8 @@ spec: - forProvider type: object status: - description: TeamAssociationStatus defines the observed state of TeamAssociation. + description: ActionTeamAssociationStatus defines the observed state of + ActionTeamAssociation. properties: atProvider: properties: