Skip to content

Commit

Permalink
Merge pull request #117 from mittwald/fix/makefile-scheme
Browse files Browse the repository at this point in the history
fix makefile, add v1 to scheme
  • Loading branch information
elenz97 authored Apr 26, 2024
2 parents b20d4b8 + 9f0948e commit d7a2458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ifeq ($(wildcard /tmp/k8s-webhook-server/serving-certs/tls.crt),)
mkdir -p /tmp/k8s-webhook-server/serving-certs && \
openssl req -new -newkey rsa:4096 -x509 -sha256 -days 1 -nodes -batch -out /tmp/k8s-webhook-server/serving-certs/tls.crt -keyout /tmp/k8s-webhook-server/serving-certs/tls.key
endif
go run ./main.go --enable-controllers
go run ./main.go

##@ Helm Chart Generation

Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package main

import (
corev1 "k8s.io/api/core/v1"
"os"
"strings"

Expand Down Expand Up @@ -49,6 +50,7 @@ var (

func init() {

utilruntime.Must(corev1.AddToScheme(scheme))
utilruntime.Must(registriesv1alpha2.AddToScheme(scheme))
// +kubebuilder:scaffold:scheme
}
Expand Down

0 comments on commit d7a2458

Please sign in to comment.