Skip to content

Commit 87cd8d7

Browse files
authored
Merge pull request #348 from MisterMX/feat/crossplane-cluster-namespace-apis
feat: Add namespace APIs
2 parents b0d9c5b + a7a8a84 commit 87cd8d7

File tree

170 files changed

+70150
-652
lines changed

Some content is hidden

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

170 files changed

+70150
-652
lines changed
File renamed without changes.

apis/applications/v1alpha1/types.go renamed to apis/cluster/applications/v1alpha1/types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ type HydrateTo struct {
157157
// ApplicationDestination holds information about the application's destination
158158
type ApplicationDestination struct {
159159
// Server specifies the URL of the target cluster and must be set to the Kubernetes control plane API
160-
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/cluster/v1alpha1.Cluster
161-
// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-argocd/apis/cluster/v1alpha1.ServerAddress()
160+
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/cluster/cluster/v1alpha1.Cluster
161+
// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-argocd/apis/cluster/cluster/v1alpha1.ServerAddress()
162162
// +crossplane:generate:reference:refFieldName=ServerRef
163163
// +crossplane:generate:reference:selectorFieldName=ServerSelector
164164
// +optional
@@ -174,8 +174,8 @@ type ApplicationDestination struct {
174174
// +optional
175175
Namespace *string `json:"namespace,omitempty"`
176176
// Name is an alternate way of specifying the target cluster by its symbolic name
177-
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/cluster/v1alpha1.Cluster
178-
// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-argocd/apis/cluster/v1alpha1.ServerName()
177+
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/cluster/cluster/v1alpha1.Cluster
178+
// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-argocd/apis/cluster/cluster/v1alpha1.ServerName()
179179
// +crossplane:generate:reference:refFieldName=NameRef
180180
// +crossplane:generate:reference:selectorFieldName=NameSelector
181181
// +optional

apis/applications/v1alpha1/zz_generated.resolvers.go renamed to apis/cluster/applications/v1alpha1/zz_generated.resolvers.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/applicationsets/v1alpha1/application_types.go renamed to apis/cluster/applicationsets/v1alpha1/application_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ type HydrateTo struct {
143143
// ApplicationDestination holds information about the application's destination
144144
type ApplicationDestination struct {
145145
// Server specifies the URL of the target cluster and must be set to the Kubernetes control plane API
146-
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/cluster/v1alpha1.Cluster
146+
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/cluster/cluster/v1alpha1.Cluster
147147
// +crossplane:generate:reference:refFieldName=ServerRef
148148
// +crossplane:generate:reference:selectorFieldName=ServerSelector
149149
// +optional
@@ -159,8 +159,8 @@ type ApplicationDestination struct {
159159
// +optional
160160
Namespace *string `json:"namespace,omitempty"`
161161
// Name is an alternate way of specifying the target cluster by its symbolic name
162-
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/cluster/v1alpha1.Cluster
163-
// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-argocd/apis/cluster/v1alpha1.ServerName()
162+
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-argocd/apis/cluster/cluster/v1alpha1.Cluster
163+
// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-argocd/apis/cluster/cluster/v1alpha1.ServerName()
164164
// +crossplane:generate:reference:refFieldName=NameRef
165165
// +crossplane:generate:reference:selectorFieldName=NameSelector
166166
// +optional

0 commit comments

Comments
 (0)