Skip to content

Commit

Permalink
deps: bump controller-gen version to 0.16.1 (#224)
Browse files Browse the repository at this point in the history
Co-authored-by: aalexand <aalexand@adobe.com>
  • Loading branch information
aalexandru and aalexand authored Aug 16, 2024
1 parent 53108d7 commit d32dfb7
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ MANAGER_ROLE ?= "cluster-registry"

CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
controller-gen: ## Download controller-gen locally if necessary.
@[ -f $(CONTROLLER_GEN) ] || GOBIN=$(shell pwd)/bin go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.15.0
@[ -f $(CONTROLLER_GEN) ] || GOBIN=$(shell pwd)/bin go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.1

KUSTOMIZE = $(shell pwd)/bin/kustomize
kustomize: ## Download kustomize locally if necessary.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
controller-gen.kubebuilder.io/version: v0.16.1
name: clusters.registry.ethos.adobe.com
spec:
group: registry.ethos.adobe.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
controller-gen.kubebuilder.io/version: v0.16.1
name: servicemetadatawatchers.registry.ethos.adobe.com
spec:
group: registry.ethos.adobe.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
controller-gen.kubebuilder.io/version: v0.16.1
name: clustersyncs.registry.ethos.adobe.com
spec:
group: registry.ethos.adobe.com
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/registry.ethos.adobe.com_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
controller-gen.kubebuilder.io/version: v0.16.1
name: clusters.registry.ethos.adobe.com
spec:
group: registry.ethos.adobe.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
controller-gen.kubebuilder.io/version: v0.16.1
name: clustersyncs.registry.ethos.adobe.com
spec:
group: registry.ethos.adobe.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
controller-gen.kubebuilder.io/version: v0.16.1
name: servicemetadatawatchers.registry.ethos.adobe.com
spec:
group: registry.ethos.adobe.com
Expand Down
27 changes: 2 additions & 25 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,6 @@ rules:
- registry.ethos.adobe.com
resources:
- clusters
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- registry.ethos.adobe.com
resources:
- clusters/finalizers
verbs:
- update
- apiGroups:
- registry.ethos.adobe.com
resources:
- clusters/status
verbs:
- get
- patch
- update
- apiGroups:
- registry.ethos.adobe.com
resources:
- servicemetadatawatchers
verbs:
- create
Expand All @@ -45,12 +20,14 @@ rules:
- apiGroups:
- registry.ethos.adobe.com
resources:
- clusters/finalizers
- servicemetadatawatchers/finalizers
verbs:
- update
- apiGroups:
- registry.ethos.adobe.com
resources:
- clusters/status
- servicemetadatawatchers/status
verbs:
- get
Expand Down
3 changes: 0 additions & 3 deletions pkg/api/registry/v1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,12 @@ type AllowedOnboardingTeam struct {
// Extra information
type Extra struct {
// Name of the domain
// +kubebuilder:validation:Required
DomainName string `json:"domainName"`

// Load balancer endpoints
// +kubebuilder:validation:Required
LbEndpoints map[string]string `json:"lbEndpoints"`

// Logging endpoints
// +kubebuilder:validation:Required
LoggingEndpoints []map[string]string `json:"loggingEndpoints,omitempty"`

// List of IAM Arns
Expand Down

0 comments on commit d32dfb7

Please sign in to comment.