Skip to content

Commit

Permalink
Merge pull request #756 from netgroup-polito/qcfe/remove-tenant-v1alpha1
Browse files Browse the repository at this point in the history
  • Loading branch information
kingmakerbot authored Feb 22, 2022
2 parents 7b06dbe + 49f2a91 commit d5434fb
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 537 deletions.
2 changes: 1 addition & 1 deletion operators/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ make run-tenant

For a deeper definition go to

- `Tenant` [GoLang code version](./api/v1alpha1/tenant_types.go)
- `Tenant` [GoLang code version](./api/v1alpha2/tenant_types.go)
- `Tenant` [YAML version](./deploy/crds/crownlabs.polito.it_tenants.yaml)
- `Workspace` [GoLang code version](./api/v1alpha1/workspace_types.go)
- `Workspace` [YAML version](./deploy/crds/crownlabs.polito.it_workspaces.yaml)
Expand Down
68 changes: 0 additions & 68 deletions operators/api/v1alpha1/tenant_conversion.go

This file was deleted.

109 changes: 0 additions & 109 deletions operators/api/v1alpha1/tenant_types.go

This file was deleted.

105 changes: 0 additions & 105 deletions operators/api/v1alpha1/zz_generated.deepcopy.go

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

3 changes: 0 additions & 3 deletions operators/api/v1alpha2/tenant_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ func init() {
SchemeBuilder.Register(&Tenant{}, &TenantList{})
}

// Hub is to enable conversion webhook.
func (*Tenant) Hub() {}

// SetupWebhookWithManager setups the webhook with the given manager.
func (r *Tenant) SetupWebhookWithManager(mgr ctrl.Manager) error {
return ctrl.NewWebhookManagedBy(mgr).
Expand Down
9 changes: 0 additions & 9 deletions operators/cmd/tenant-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,6 @@ func main() {
os.Exit(1)
}
if *enableWH {
if err = (&clv1alpha1.Tenant{}).SetupWebhookWithManager(mgr); err != nil {
log.Error(err, "Unable to create conversion webhook", "webhook", "Tenant")
os.Exit(1)
}
if err = (&clv1alpha2.Tenant{}).SetupWebhookWithManager(mgr); err != nil {
log.Error(err, "Unable to create conversion webhook", "webhook", "Tenant")
os.Exit(1)
}

hookServer := mgr.GetWebhookServer()
webhookBypassGroupsList := strings.Split(webhookBypassGroups, ",")
hookServer.Register(ValidatingWebhookPath, tenantwh.MakeTenantValidator(mgr.GetClient(), webhookBypassGroupsList))
Expand Down
Loading

0 comments on commit d5434fb

Please sign in to comment.