Skip to content

Commit

Permalink
rollouts: manifests for v0.0.2 release (#3869)
Browse files Browse the repository at this point in the history
  • Loading branch information
droot committed Mar 9, 2023
1 parent 9f6a868 commit ccd703d
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 17 deletions.
2 changes: 1 addition & 1 deletion rollouts/config/crd/bases/gitops.kpt.dev_remotesyncs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.11.3
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: remotesyncs.gitops.kpt.dev
spec:
Expand Down
8 changes: 4 additions & 4 deletions rollouts/manifests/controller/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ rules:
- apiGroups:
- gitops.kpt.dev
resources:
- remoterootsyncs
- remotesyncs
verbs:
- create
- delete
Expand All @@ -140,13 +140,13 @@ rules:
- apiGroups:
- gitops.kpt.dev
resources:
- remoterootsyncs/finalizers
- remotesyncs/finalizers
verbs:
- update
- apiGroups:
- gitops.kpt.dev
resources:
- remoterootsyncs/status
- remotesyncs/status
verbs:
- get
- patch
Expand Down Expand Up @@ -374,7 +374,7 @@ spec:
- --leader-elect
command:
- /manager
image: gcr.io/kpt-dev/rollouts-controller:v0.0.1
image: gcr.io/kpt-dev/rollouts-controller:v0.0.2
livenessProbe:
httpGet:
path: /healthz
Expand Down
102 changes: 90 additions & 12 deletions rollouts/manifests/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,20 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: remoterootsyncs.gitops.kpt.dev
name: remotesyncs.gitops.kpt.dev
spec:
group: gitops.kpt.dev
names:
kind: RemoteRootSync
listKind: RemoteRootSyncList
plural: remoterootsyncs
singular: remoterootsync
kind: RemoteSync
listKind: RemoteSyncList
plural: remotesyncs
singular: remotesync
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: RemoteRootSync is the Schema for the remoterootsyncs API
description: RemoteSync is the Schema for the remotesyncs 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'
Expand All @@ -143,7 +143,7 @@ spec:
metadata:
type: object
spec:
description: RemoteRootSyncSpec defines the desired state of RemoteRootSync
description: RemoteSyncSpec defines the desired state of RemoteSync
properties:
clusterRef:
description: ClusterReference contains the identify information need to refer a cluster.
Expand All @@ -155,6 +155,18 @@ spec:
type: object
template:
properties:
metadata:
description: Metadata specifies labels and annotations to add to the RSync object.
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
type: object
spec:
properties:
git:
Expand Down Expand Up @@ -192,9 +204,14 @@ spec:
type: string
type: object
type: object
type:
enum:
- RootSync
- RepoSync
type: string
type: object
status:
description: RemoteRootSyncStatus defines the observed state of RemoteRootSync
description: RemoteSyncStatus defines the observed state of RemoteSync
properties:
conditions:
description: Conditions describes the reconciliation state of the object.
Expand Down Expand Up @@ -244,8 +261,14 @@ spec:
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state of cluster Important: Run "make" to regenerate code after modifying this file'
format: int64
type: integer
syncCreated:
description: Internal only. SyncCreated describes if the external sync has been created.
type: boolean
syncStatus:
description: SyncStatus describes the observed state of external sync.
type: string
required:
- syncCreated
type: object
type: object
served: true
Expand Down Expand Up @@ -326,11 +349,13 @@ spec:
description: Packages source for this Rollout.
properties:
github:
description: GitHubSource defines the packages source in Git.
description: GitHubSource defines the packages source in GitHub.
properties:
selector:
description: GitHubSelector defines the selector to apply to Git.
description: GitHubSelector defines the selector to apply to packages in GitHub.
properties:
branch:
type: string
directory:
type: string
org:
Expand All @@ -349,17 +374,45 @@ spec:
required:
- org
- repo
- revision
type: object
required:
- selector
type: object
gitlab:
description: GitLabSource defines the packages source in GitLab.
properties:
secretRef:
description: SecretReference is the reference to a kubernetes secret that contains GitLab access token
properties:
name:
description: Name represents the secret name
type: string
type: object
selector:
description: Selector defines the package selector in GitLab.
properties:
branch:
description: Branch refers to the branch
type: string
directory:
description: Directory refers to the subdirectory path in the project
type: string
projectID:
description: ProjectID is the numerical identifier of the GitLab project It will not be specified if selection involves multiple projects
type: string
revision:
description: Revision refers to the branch, tag of the GitLab repo
type: string
type: object
required:
- selector
type: object
sourceType:
enum:
- GitHub
- GitLab
type: string
required:
- github
- sourceType
type: object
strategy:
Expand Down Expand Up @@ -410,6 +463,7 @@ spec:
description: SyncTemplate defines the type and attributes for the RSync object used to syncing the packages.
properties:
repoSync:
description: RepoSyncTemplate represent the sync template for RepoSync.
properties:
git:
properties:
Expand Down Expand Up @@ -442,6 +496,18 @@ spec:
- auth
- repo
type: object
metadata:
description: Metadata specifies labels and annotations to add to the RSync object.
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
type: object
sourceFormat:
type: string
type: object
Expand Down Expand Up @@ -479,6 +545,18 @@ spec:
- auth
- repo
type: object
metadata:
description: Metadata specifies labels and annotations to add to the RSync object.
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
type: object
sourceFormat:
type: string
type: object
Expand Down

0 comments on commit ccd703d

Please sign in to comment.