Skip to content

Commit

Permalink
Merge pull request #22 from damsien/dev
Browse files Browse the repository at this point in the history
Fix crd misversionning
  • Loading branch information
damsien authored Oct 17, 2024
2 parents 0ee6e8d + 6f7d063 commit becad7a
Show file tree
Hide file tree
Showing 90 changed files with 7,188 additions and 87 deletions.
54 changes: 42 additions & 12 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ resources:
domain: syngit.io
group: syngit
kind: RemoteUser
path: syngit.io/syngit/api/v2alpha2
version: v2alpha2
path: syngit.io/syngit/api/v1alpha2
version: v1alpha2
webhooks:
validation: true
webhookVersion: v1
Expand All @@ -58,16 +58,16 @@ resources:
domain: syngit.io
group: syngit
kind: RemoteUserBinding
path: syngit.io/syngit/api/v2alpha2
version: v2alpha2
path: syngit.io/syngit/api/v1alpha2
version: v1alpha2
- api:
crdVersion: v1
namespaced: true
domain: syngit.io
group: syngit
kind: RemoteSyncer
path: syngit.io/syngit/api/v2alpha2
version: v2alpha2
path: syngit.io/syngit/api/v1alpha2
version: v1alpha2
webhooks:
validation: true
webhookVersion: v1
Expand All @@ -77,8 +77,8 @@ resources:
domain: syngit.io
group: syngit
kind: RemoteSyncer
path: syngit.io/syngit/api/v3alpha3
version: v3alpha3
path: syngit.io/syngit/api/v1alpha3
version: v1alpha3
webhooks:
validation: true
webhookVersion: v1
Expand All @@ -88,8 +88,8 @@ resources:
domain: syngit.io
group: syngit
kind: RemoteUser
path: syngit.io/syngit/api/v3alpha3
version: v3alpha3
path: syngit.io/syngit/api/v1alpha3
version: v1alpha3
webhooks:
validation: true
webhookVersion: v1
Expand All @@ -99,6 +99,36 @@ resources:
domain: syngit.io
group: syngit
kind: RemoteUserBinding
path: syngit.io/syngit/api/v3alpha3
version: v3alpha3
path: syngit.io/syngit/api/v1alpha3
version: v1alpha3
- api:
crdVersion: v1
namespaced: true
domain: syngit.io
group: syngit
kind: RemoteUserBinding
path: syngit.io/syngit/api/v1alpha4
version: v1alpha4
- api:
crdVersion: v1
namespaced: true
domain: syngit.io
group: syngit
kind: RemoteUser
path: syngit.io/syngit/api/v1alpha4
version: v1alpha4
webhooks:
validation: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: true
domain: syngit.io
group: syngit
kind: RemoteSyncer
path: syngit.io/syngit/api/v1alpha4
version: v1alpha4
webhooks:
validation: true
webhookVersion: v1
version: "3"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ helm repo add syngit https://syngit-org.github.io/syngit
1. Install the operator
You can customize the values before installing the Helm chart.
```sh
helm install syngit syngit/syngit --version 1.0.0 -n syngit --create-namespace
helm install syngit syngit/syngit --version 1.0.1 -n syngit --create-namespace
```

syngit is now installed on your cluster!
Expand All @@ -70,7 +70,7 @@ stringData:
```
```yaml
apiVersion: syngit.syngit.io/v3alpha3
apiVersion: syngit.syngit.io/v1alpha4
kind: RemoteUser
metadata:
name: remoteuser-sample
Expand Down Expand Up @@ -107,7 +107,7 @@ The RemoteSyncer object contains the whole logic part of the operator.
In this example, the RemoteSyncer will intercept all the *configmaps*. It will push them to *https://github.com/my_repo_path.git* in the branch *main* under the path `my_configmaps/`. Because the `commitProcess` is set to `CommitApply`, the changes will be pushed and then applied to the cluster. `CommitOnly` will only push the resource on the git server without applying it on the cluster.

```yaml
apiVersion: syngit.syngit.io/v3alpha3
apiVersion: syngit.syngit.io/v1alpha4
kind: RemoteSyncer
metadata:
name: remotesyncer-sample
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 v2alpha2 contains API Schema definitions for the syngit v2alpha2 API group
// Package v1alpha2 contains API Schema definitions for the syngit v1alpha2 API group
// +kubebuilder:object:generate=true
// +groupName=syngit.syngit.io
package v2alpha2
package v1alpha2

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: "syngit.syngit.io", Version: "v2alpha2"}
GroupVersion = schema.GroupVersion{Group: "syngit.syngit.io", Version: "v1alpha2"}

// 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 v2alpha2
package v1alpha2

import (
admissionv1 "k8s.io/api/admissionregistration/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 v2alpha2
package v1alpha2

import (
"regexp"
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 v3alpha3
package v1alpha2

import (
. "github.com/onsi/ginkgo/v2"
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 v2alpha2
package v1alpha2

import (
corev1 "k8s.io/api/core/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 v2alpha2
package v1alpha2

import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
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 v2alpha2
package v1alpha2

import (
. "github.com/onsi/ginkgo/v2"
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 v2alpha2
package v1alpha2

import (
corev1 "k8s.io/api/core/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 v2alpha2
package v1alpha2

import (
"context"
Expand Down

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

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 v3alpha3 contains API Schema definitions for the syngit v3alpha3 API group
// Package v1alpha3 contains API Schema definitions for the syngit v1alpha3 API group
// +kubebuilder:object:generate=true
// +groupName=syngit.syngit.io
package v3alpha3
package v1alpha3

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: "syngit.syngit.io", Version: "v3alpha3"}
GroupVersion = schema.GroupVersion{Group: "syngit.syngit.io", Version: "v1alpha3"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
Loading

0 comments on commit becad7a

Please sign in to comment.