Skip to content

Commit

Permalink
Rename v1 api version to v1beta1 (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
omris94 authored Jul 17, 2024
1 parent 872c0de commit dba9212
Show file tree
Hide file tree
Showing 44 changed files with 596 additions and 570 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package v1
package v1beta1

import (
"encoding/json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

// Package v1 contains API Schema definitions for the otterize v1 API group
// Package v1beta1 contains API Schema definitions for the otterize v1 API group
// +kubebuilder:object:generate=true
// +groupName=k8s.otterize.com
package v1
package v1beta1

import (
"k8s.io/apimachinery/pkg/runtime/schema"
Expand All @@ -26,7 +26,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "k8s.otterize.com", Version: "v1"}
GroupVersion = schema.GroupVersion{Group: "k8s.otterize.com", Version: "v1beta1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package v1
package v1beta1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1
package v1beta1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1
package v1beta1

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package v1
package v1beta1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package v1
package v1beta1

import (
"github.com/otterize/intents-operator/src/shared/serviceidresolver/serviceidentity"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1
package v1beta1

import "github.com/otterize/intents-operator/src/shared/serviceidresolver/serviceidentity"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1
package v1beta1

import (
"github.com/otterize/intents-operator/src/operator/api/v2alpha1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1
package v1beta1

import (
"github.com/otterize/intents-operator/src/operator/api/v2alpha1"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

276 changes: 138 additions & 138 deletions src/operator/config/crd/k8s.otterize.com_clientintents.patched
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,142 @@ spec:
singular: clientintents
scope: Namespaced
versions:
- name: v1
- name: v1alpha2
schema:
openAPIV3Schema:
description: ClientIntents is the Schema for the intents API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: IntentsSpec defines the desired state of ClientIntents
properties:
calls:
items:
properties:
databaseResources:
items:
properties:
databaseName:
type: string
operations:
items:
enum:
- ALL
- SELECT
- INSERT
- UPDATE
- DELETE
type: string
type: array
table:
type: string
required:
- databaseName
type: object
type: array
name:
type: string
resources:
items:
properties:
methods:
items:
enum:
- GET
- POST
- PUT
- DELETE
- OPTIONS
- TRACE
- PATCH
- CONNECT
type: string
type: array
path:
type: string
required:
- methods
- path
type: object
type: array
topics:
items:
properties:
name:
type: string
operations:
items:
enum:
- all
- consume
- produce
- create
- alter
- delete
- describe
- ClusterAction
- DescribeConfigs
- AlterConfigs
- IdempotentWrite
type: string
type: array
required:
- name
- operations
type: object
type: array
type:
enum:
- http
- kafka
- database
type: string
required:
- name
type: object
type: array
service:
properties:
name:
type: string
required:
- name
type: object
required:
- calls
- service
type: object
status:
description: IntentsStatus defines the observed state of ClientIntents
properties:
upToDate:
description: |-
upToDate field reflects whether the client intents have successfully been applied
to the cluster to the state specified
type: boolean
type: object
type: object
served: true
storage: false
subresources:
status: {}
- name: v1alpha3
schema:
openAPIV3Schema:
description: ClientIntents is the Schema for the intents API
Expand Down Expand Up @@ -292,145 +427,10 @@ spec:
type: object
type: object
served: true
storage: true
subresources:
status: {}
- name: v1alpha2
schema:
openAPIV3Schema:
description: ClientIntents is the Schema for the intents API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: IntentsSpec defines the desired state of ClientIntents
properties:
calls:
items:
properties:
databaseResources:
items:
properties:
databaseName:
type: string
operations:
items:
enum:
- ALL
- SELECT
- INSERT
- UPDATE
- DELETE
type: string
type: array
table:
type: string
required:
- databaseName
type: object
type: array
name:
type: string
resources:
items:
properties:
methods:
items:
enum:
- GET
- POST
- PUT
- DELETE
- OPTIONS
- TRACE
- PATCH
- CONNECT
type: string
type: array
path:
type: string
required:
- methods
- path
type: object
type: array
topics:
items:
properties:
name:
type: string
operations:
items:
enum:
- all
- consume
- produce
- create
- alter
- delete
- describe
- ClusterAction
- DescribeConfigs
- AlterConfigs
- IdempotentWrite
type: string
type: array
required:
- name
- operations
type: object
type: array
type:
enum:
- http
- kafka
- database
type: string
required:
- name
type: object
type: array
service:
properties:
name:
type: string
required:
- name
type: object
required:
- calls
- service
type: object
status:
description: IntentsStatus defines the observed state of ClientIntents
properties:
upToDate:
description: |-
upToDate field reflects whether the client intents have successfully been applied
to the cluster to the state specified
type: boolean
type: object
type: object
served: true
storage: false
subresources:
status: {}
- name: v1alpha3
- name: v1beta1
schema:
openAPIV3Schema:
description: ClientIntents is the Schema for the intents API
Expand Down Expand Up @@ -695,7 +695,7 @@ spec:
type: object
type: object
served: true
storage: false
storage: true
subresources:
status: {}
- name: v2alpha1
Expand Down
Loading

0 comments on commit dba9212

Please sign in to comment.