Skip to content

Commit

Permalink
Adapt project to new temporary name + add auto-create/update rub
Browse files Browse the repository at this point in the history
  • Loading branch information
damsien committed Jun 20, 2024
1 parent 404c61b commit 7285eb5
Show file tree
Hide file tree
Showing 37 changed files with 2,954 additions and 161 deletions.
11 changes: 11 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,15 @@ resources:
webhooks:
validation: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: true
domain: damsien.fr
group: syngit
kind: RemoteUser
path: damsien.fr/syngit/api/v1alpha2
version: v1alpha2
webhooks:
validation: true
webhookVersion: v1
version: "3"
2 changes: 0 additions & 2 deletions api/v1alpha1/remotesyncer_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ func (r *RemoteSyncer) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

//+kubebuilder:webhook:path=/validate-kgio-dams-kgio-v1-remotesyncer,mutating=false,failurePolicy=fail,sideEffects=None,groups=kgio.dams.kgio,resources=remotesyncers,verbs=create;update,versions=v1,name=vremotesyncer.kb.io,admissionReviewVersions=v1

var _ webhook.Validator = &RemoteSyncer{}

// Validate validates the RemoteSyncerSpec
Expand Down
2 changes: 0 additions & 2 deletions api/v1alpha1/remoteuser_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ func (r *RemoteUser) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

//+kubebuilder:webhook:path=/validate-kgio-dams-kgio-v1-remoteuser,mutating=false,failurePolicy=fail,sideEffects=None,groups=kgio.dams.kgio,resources=remoteusers,verbs=create;update,versions=v1,name=vremoteuser.kb.io,admissionReviewVersions=v1

var _ webhook.Validator = &RemoteUser{}

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

// Package v1alpha2 contains API Schema definitions for the syngit v1alpha2 API group
// +kubebuilder:object:generate=true
// +groupName=syngit.damsien.fr
package v1alpha2

import (
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/controller-runtime/pkg/scheme"
)

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "syngit.damsien.fr", Version: "v1alpha2"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
)
Loading

0 comments on commit 7285eb5

Please sign in to comment.