Skip to content

Commit

Permalink
Set webhook port to 9443
Browse files Browse the repository at this point in the history
Adds CRDs to providers category
  • Loading branch information
Warren Fernandes committed Feb 1, 2021
1 parent a6d13af commit 4b98eee
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions operator/api/v1alpha4/bootstrapprovider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type BootstrapProviderStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:path=bootstrapproviders,scope=Namespaced,categories=providers
// +kubebuilder:storageversion

// BootstrapProvider is the Schema for the bootstrapproviders API
type BootstrapProvider struct { //nolint:maligned
Expand Down
2 changes: 2 additions & 0 deletions operator/api/v1alpha4/controlplaneprovider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type ControlPlaneProviderStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:path=controlplaneproviders,scope=Namespaced,categories=providers
// +kubebuilder:storageversion

// ControlPlaneProvider is the Schema for the controlplaneproviders API
type ControlPlaneProvider struct { //nolint:maligned
Expand Down
2 changes: 2 additions & 0 deletions operator/api/v1alpha4/coreprovider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type CoreProviderStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:path=coreproviders,scope=Namespaced,categories=providers
// +kubebuilder:storageversion

// CoreProvider is the Schema for the coreproviders API
type CoreProvider struct { //nolint:maligned
Expand Down
2 changes: 2 additions & 0 deletions operator/api/v1alpha4/infrastructureprovider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type InfrastructureProviderStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:path=infrastructureproviders,scope=Namespaced,categories=providers
// +kubebuilder:storageversion

// InfrastructureProvider is the Schema for the infrastructureproviders API
type InfrastructureProvider struct { //nolint:maligned
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
spec:
group: operator.cluster.x-k8s.io
names:
categories:
- providers
kind: BootstrapProvider
listKind: BootstrapProviderList
plural: bootstrapproviders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
spec:
group: operator.cluster.x-k8s.io
names:
categories:
- providers
kind: ControlPlaneProvider
listKind: ControlPlaneProviderList
plural: controlplaneproviders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
spec:
group: operator.cluster.x-k8s.io
names:
categories:
- providers
kind: CoreProvider
listKind: CoreProviderList
plural: coreproviders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
spec:
group: operator.cluster.x-k8s.io
names:
categories:
- providers
kind: InfrastructureProvider
listKind: InfrastructureProviderList
plural: infrastructureproviders
Expand Down
2 changes: 1 addition & 1 deletion operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func InitFlags(fs *pflag.FlagSet) {
fs.BoolVar(&enableLeaderElection, "leader-elect", false,
"Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.")

fs.IntVar(&webhookPort, "webhook-port", 0,
fs.IntVar(&webhookPort, "webhook-port", 9443,
"Webhook Server port, disabled by default. When enabled, the manager will only work as webhook server, no reconcilers are installed.")

}
Expand Down

0 comments on commit 4b98eee

Please sign in to comment.