Skip to content

Commit f7068bc

Browse files
authored
Merge pull request #140 from spinkube/become-alpha
ref(*): Change group versions from v1 to v1alpha1
2 parents 88ea720 + 736864b commit f7068bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+224
-224
lines changed

PROJECT

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ resources:
1515
domain: spinoperator.dev
1616
group: core
1717
kind: SpinApp
18-
path: github.com/spinkube/spin-operator/api/v1
19-
version: v1
18+
path: github.com/spinkube/spin-operator/api/v1alpha1
19+
version: v1alpha1
2020
webhooks:
2121
defaulting: true
2222
validation: true
@@ -28,8 +28,8 @@ resources:
2828
domain: spinoperator.dev
2929
group: core
3030
kind: SpinAppExecutor
31-
path: github.com/spinkube/spin-operator/api/v1
32-
version: v1
31+
path: github.com/spinkube/spin-operator/api/v1alpha1
32+
version: v1alpha1
3333
webhooks:
3434
defaulting: true
3535
validation: true

api/v1/groupversion_info.go api/v1alpha1/groupversion_info.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package v1 contains API Schema definitions for the spin v1 API group
17+
// Package v1alpha1 contains API Schema definitions for the spin v1alpha1 API group
1818
// +kubebuilder:object:generate=true
1919
// +groupName=core.spinoperator.dev
20-
package v1
20+
package v1alpha1
2121

2222
import (
2323
"k8s.io/apimachinery/pkg/runtime/schema"
@@ -26,7 +26,7 @@ import (
2626

2727
var (
2828
// GroupVersion is group version used to register these objects
29-
GroupVersion = schema.GroupVersion{Group: "core.spinoperator.dev", Version: "v1"}
29+
GroupVersion = schema.GroupVersion{Group: "core.spinoperator.dev", Version: "v1alpha1"}
3030

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

api/v1/spinapp_types.go api/v1alpha1/spinapp_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package v1
17+
package v1alpha1
1818

1919
import (
2020
corev1 "k8s.io/api/core/v1"

api/v1/spinappexecutor_types.go api/v1alpha1/spinappexecutor_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package v1
17+
package v1alpha1
1818

1919
import (
2020
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

api/v1/zz_generated.deepcopy.go api/v1alpha1/zz_generated.deepcopy.go

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/spin-operator/templates/mutating-webhook-configuration.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ webhooks:
1313
service:
1414
name: '{{ include "spin-operator.fullname" . }}-webhook-service'
1515
namespace: '{{ .Release.Namespace }}'
16-
path: /mutate-core-spinoperator-dev-v1-spinapp
16+
path: /mutate-core-spinoperator-dev-v1alpha1-spinapp
1717
failurePolicy: Fail
1818
name: mspinapp.kb.io
1919
rules:
2020
- apiGroups:
2121
- core.spinoperator.dev
2222
apiVersions:
23-
- v1
23+
- v1alpha1
2424
operations:
2525
- CREATE
2626
- UPDATE
@@ -33,14 +33,14 @@ webhooks:
3333
service:
3434
name: '{{ include "spin-operator.fullname" . }}-webhook-service'
3535
namespace: '{{ .Release.Namespace }}'
36-
path: /mutate-core-spinoperator-dev-v1-spinappexecutor
36+
path: /mutate-core-spinoperator-dev-v1alpha1-spinappexecutor
3737
failurePolicy: Fail
3838
name: mspinappexecutor.kb.io
3939
rules:
4040
- apiGroups:
4141
- core.spinoperator.dev
4242
apiVersions:
43-
- v1
43+
- v1alpha1
4444
operations:
4545
- CREATE
4646
- UPDATE

charts/spin-operator/templates/validating-webhook-configuration.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ webhooks:
1313
service:
1414
name: '{{ include "spin-operator.fullname" . }}-webhook-service'
1515
namespace: '{{ .Release.Namespace }}'
16-
path: /validate-core-spinoperator-dev-v1-spinapp
16+
path: /validate-core-spinoperator-dev-v1alpha1-spinapp
1717
failurePolicy: Fail
1818
name: vspinapp.kb.io
1919
rules:
2020
- apiGroups:
2121
- core.spinoperator.dev
2222
apiVersions:
23-
- v1
23+
- v1alpha1
2424
operations:
2525
- CREATE
2626
- UPDATE
@@ -33,14 +33,14 @@ webhooks:
3333
service:
3434
name: '{{ include "spin-operator.fullname" . }}-webhook-service'
3535
namespace: '{{ .Release.Namespace }}'
36-
path: /validate-core-spinoperator-dev-v1-spinappexecutor
36+
path: /validate-core-spinoperator-dev-v1alpha1-spinappexecutor
3737
failurePolicy: Fail
3838
name: vspinappexecutor.kb.io
3939
rules:
4040
- apiGroups:
4141
- core.spinoperator.dev
4242
apiVersions:
43-
- v1
43+
- v1alpha1
4444
operations:
4545
- CREATE
4646
- UPDATE

cmd/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
"sigs.k8s.io/controller-runtime/pkg/log/zap"
3535
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
3636

37-
spinv1 "github.com/spinkube/spin-operator/api/v1"
37+
spinv1alpha1 "github.com/spinkube/spin-operator/api/v1alpha1"
3838
"github.com/spinkube/spin-operator/internal/controller"
3939
"github.com/spinkube/spin-operator/internal/webhook"
4040
//+kubebuilder:scaffold:imports
@@ -48,7 +48,7 @@ var (
4848
func init() {
4949
utilruntime.Must(clientgoscheme.AddToScheme(scheme))
5050

51-
utilruntime.Must(spinv1.AddToScheme(scheme))
51+
utilruntime.Must(spinv1alpha1.AddToScheme(scheme))
5252
//+kubebuilder:scaffold:scheme
5353
}
5454

config/crd/bases/core.spinoperator.dev_spinappexecutors.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
singular: spinappexecutor
1515
scope: Namespaced
1616
versions:
17-
- name: v1
17+
- name: v1alpha1
1818
schema:
1919
openAPIV3Schema:
2020
description: SpinAppExecutor is the Schema for the spinappexecutors API

config/crd/bases/core.spinoperator.dev_spinapps.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
- jsonPath: .spec.executor
2525
name: Executor
2626
type: string
27-
name: v1
27+
name: v1alpha1
2828
schema:
2929
openAPIV3Schema:
3030
description: SpinApp is the Schema for the spinapps API

config/samples/annotations.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: annotations-spinapp

config/samples/cyclotron.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: cyclotron-spinapp

config/samples/hpa.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: hpa-spinapp

config/samples/keda-app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: keda-spinapp

config/samples/private-image.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: private-image-spinapp

config/samples/probes.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: spinoperator.dev/v1
1+
apiVersion: spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: healthchecks-spinapp

config/samples/redis.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: redis-spinapp

config/samples/resources.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: resource-requirements-spinapp

config/samples/runtime-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: runtime-config

config/samples/simple.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: simple-spinapp

config/samples/spin-shim-executor.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinAppExecutor
33
metadata:
44
name: containerd-shim-spin

config/samples/variable-explorer.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ data:
1313
password: c2VjcmV0X3NhdWNlCg==
1414
---
1515
kind: SpinApp
16-
apiVersion: core.spinoperator.dev/v1
16+
apiVersion: core.spinoperator.dev/v1alpha1
1717
metadata:
1818
name: variable-explorer
1919
spec:

config/samples/variables.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: variables-spinapp

config/samples/volume-mount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: core.spinoperator.dev/v1
1+
apiVersion: core.spinoperator.dev/v1alpha1
22
kind: SpinApp
33
metadata:
44
name: volume-mount-spinapp

config/webhook/manifests.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ webhooks:
1010
service:
1111
name: webhook-service
1212
namespace: system
13-
path: /mutate-core-spinoperator-dev-v1-spinapp
13+
path: /mutate-core-spinoperator-dev-v1alpha1-spinapp
1414
failurePolicy: Fail
1515
name: mspinapp.kb.io
1616
rules:
1717
- apiGroups:
1818
- core.spinoperator.dev
1919
apiVersions:
20-
- v1
20+
- v1alpha1
2121
operations:
2222
- CREATE
2323
- UPDATE
@@ -30,14 +30,14 @@ webhooks:
3030
service:
3131
name: webhook-service
3232
namespace: system
33-
path: /mutate-core-spinoperator-dev-v1-spinappexecutor
33+
path: /mutate-core-spinoperator-dev-v1alpha1-spinappexecutor
3434
failurePolicy: Fail
3535
name: mspinappexecutor.kb.io
3636
rules:
3737
- apiGroups:
3838
- core.spinoperator.dev
3939
apiVersions:
40-
- v1
40+
- v1alpha1
4141
operations:
4242
- CREATE
4343
- UPDATE
@@ -56,14 +56,14 @@ webhooks:
5656
service:
5757
name: webhook-service
5858
namespace: system
59-
path: /validate-core-spinoperator-dev-v1-spinapp
59+
path: /validate-core-spinoperator-dev-v1alpha1-spinapp
6060
failurePolicy: Fail
6161
name: vspinapp.kb.io
6262
rules:
6363
- apiGroups:
6464
- core.spinoperator.dev
6565
apiVersions:
66-
- v1
66+
- v1alpha1
6767
operations:
6868
- CREATE
6969
- UPDATE
@@ -76,14 +76,14 @@ webhooks:
7676
service:
7777
name: webhook-service
7878
namespace: system
79-
path: /validate-core-spinoperator-dev-v1-spinappexecutor
79+
path: /validate-core-spinoperator-dev-v1alpha1-spinappexecutor
8080
failurePolicy: Fail
8181
name: vspinappexecutor.kb.io
8282
rules:
8383
- apiGroups:
8484
- core.spinoperator.dev
8585
apiVersions:
86-
- v1
86+
- v1alpha1
8787
operations:
8888
- CREATE
8989
- UPDATE

0 commit comments

Comments
 (0)