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

Lines changed: 4 additions & 4 deletions
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
Lines changed: 3 additions & 3 deletions
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}
Lines changed: 1 addition & 1 deletion
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"
Lines changed: 1 addition & 1 deletion
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"
Lines changed: 10 additions & 10 deletions
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)