Skip to content

Commit af2dff5

Browse files
committed
chore: Migrate to sigstore repository
Signed-off-by: Jan Bouska <[email protected]>
1 parent c9067df commit af2dff5

File tree

9 files changed

+17
-14
lines changed

9 files changed

+17
-14
lines changed

PROJECT

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ plugins:
99
manifests.sdk.operatorframework.io/v2: {}
1010
scorecard.sdk.operatorframework.io/v2: {}
1111
projectName: sdk-init
12-
repo: github.com/miyunari/model-validation-controller
12+
repo: github.com/sigstore/model-validation-operator
1313
resources:
1414
- api:
1515
crdVersion: v1
1616
namespaced: true
1717
domain: sigstore.dev
1818
group: ml
1919
kind: ModelValidation
20-
path: github.com/miyunari/model-validation-controller/api/v1alpha1
20+
path: github.com/sigstore/model-validation-controller/api/v1alpha1
2121
version: v1alpha1
2222
version: "3"

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ This project is a proof of concept based on the [sigstore/model-transperency-cli
1919

2020
The controller can be installed in the `model-validation-controller` namespace via [kustomize](https://kustomize.io/).
2121
```bash
22-
kubectl apply -k https://raw.githubusercontent.com/miyunari/model-validation-controller/main/manifests
22+
kubectl apply -k https://raw.githubusercontent.com/sigstore/model-validation-operator/main/manifests
2323
# or local
2424
kubectl apply -k manifests
2525
```
2626

2727
Run delete to uninstall the controller.
2828
```bash
29-
kubectl delete -k https://raw.githubusercontent.com/miyunari/model-validation-controller/main/manifests
29+
kubectl delete -k https://raw.githubusercontent.com/sigstore/model-validation-operator/main/manifests
3030
# or local
3131
kubectl delete -k manifests
3232
```
@@ -84,7 +84,7 @@ metadata:
8484
spec:
8585
config:
8686
sigstoreConfig:
87-
certificateIdentity: "https://github.com/miyunari/model-validation-controller/.github/workflows/sign-model.yaml@refs/tags/v0.0.2"
87+
certificateIdentity: "https://github.com/sigstore/model-validation-operator/.github/workflows/sign-model.yaml@refs/tags/v0.0.2"
8888
certificateOidcIssuer: "https://token.actions.githubusercontent.com"
8989
model:
9090
path: /data/tensorflow_saved_model
@@ -123,13 +123,13 @@ The example folder contains two files `prepare.yaml` and `signed.yaml`.
123123

124124
- prepare: contains a persistent volume claim and a job that downloads a signed test model.
125125
```bash
126-
kubectl apply -f https://raw.githubusercontent.com/miyunari/model-validation-controller/main/examples/prepare.yaml
126+
kubectl apply -f https://raw.githubusercontent.com/sigstore/model-validation-operator/main/examples/prepare.yaml
127127
# or local
128128
kubectl apply -f examples/prepare.yaml
129129
```
130130
- signed: contains a model validation manifest for the validation of this model and a demo pod, which is provided with the appropriate label for validation.
131131
```bash
132-
kubectl apply -f https://raw.githubusercontent.com/miyunari/model-validation-controller/main/examples/verify.yaml
132+
kubectl apply -f https://raw.githubusercontent.com/sigstore/model-validation-operator/main/examples/verify.yaml
133133
# or local
134134
kubectl apply -f examples/verify.yaml
135135
```

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
// to ensure that exec-entrypoint and run can make use of them.
2626
_ "k8s.io/client-go/plugin/pkg/client/auth"
2727

28-
"github.com/miyunari/model-validation-controller/internal/webhooks"
28+
"github.com/sigstore/model-validation-controller/internal/webhooks"
2929
"k8s.io/apimachinery/pkg/runtime"
3030
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
3131
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
@@ -37,7 +37,7 @@ import (
3737
"sigs.k8s.io/controller-runtime/pkg/webhook"
3838
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
3939

40-
mlv1alpha1 "github.com/miyunari/model-validation-controller/api/v1alpha1"
40+
mlv1alpha1 "github.com/sigstore/model-validation-controller/api/v1alpha1"
4141
// +kubebuilder:scaffold:imports
4242
)
4343

examples/prepare.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
- /bin/sh
2525
- -c
2626
- |
27-
wget -O /data/tensorflow_saved_model.tar.gz https://github.com/miyunari/model-validation-controller/releases/download/v0.0.1/signed_model.tar.gz
27+
wget -O /data/tensorflow_saved_model.tar.gz https://github.com/sigstore/model-validation-operator/releases/download/v0.0.1/signed_model.tar.gz
2828
tar -xzvf /data/tensorflow_saved_model.tar.gz -C /data
2929
rm /data/tensorflow_saved_model.tar.gz
3030
volumeMounts:

examples/verify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spec:
1212
# privateKeyConfig:
1313
# keyPath: /root/pub.key
1414
sigstoreConfig:
15-
certificateIdentity: "https://github.com/miyunari/model-validation-controller/.github/workflows/sign-model.yaml@refs/tags/v0.0.2"
15+
certificateIdentity: "https://github.com/sigstore/model-validation-operator/.github/workflows/sign-model.yaml@refs/tags/v0.0.2"
1616
certificateOidcIssuer: "https://token.actions.githubusercontent.com"
1717
model:
1818
path: /data

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/miyunari/model-validation-controller
1+
module github.com/sigstore/model-validation-controller
22

33
go 1.23.0
44

internal/constants/images.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package constants
2+
3+
var ()

internal/webhooks/pod_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
1414

1515
"github.com/go-logr/logr"
16-
v1alpha1 "github.com/miyunari/model-validation-controller/api/v1alpha1"
16+
"github.com/sigstore/model-validation-controller/api/v1alpha1"
1717
)
1818

1919
// NewPodInterceptor creates a new pod mutating webhook to be registered

manifests/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
serviceAccountName: model-validation-controller-sa
2020
containers:
2121
- name: model-validation-controller
22-
image: ghcr.io/miyunari/model-validation-controller:v1.0.1
22+
image: ghcr.io/sigstore/model-validation-controller:v1.0.1
2323
ports:
2424
- containerPort: 8080
2525
volumeMounts:

0 commit comments

Comments
 (0)