Skip to content

Commit

Permalink
Added ProviderReference description
Browse files Browse the repository at this point in the history
  • Loading branch information
uzaxirr committed Mar 18, 2024
1 parent a8af5e0 commit bc16e85
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions apis/civo/cluster/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type CivoKubernetesSpec struct {
// Changing the version to a higher version will upgrade the cluster. Note that this may cause breaking changes to the Kubernetes API so please check kubernetes deprecations/mitigations before upgrading.
Version *string `json:"version,omitempty"`

// ProviderReference holds configs (region, API key etc) for the crossplane provider that is being used.
ProviderReference *xpv1.Reference `json:"providerReference"`
// TODO: Update the examples as well
}
Expand Down
4 changes: 3 additions & 1 deletion apis/civo/instance/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ type SecretReference struct {
type CivoInstanceSpec struct {
xpv1.ResourceSpec `json:",inline"`
InstanceConfig CivoInstanceConfig `json:"instanceConfig"`
ProviderReference *xpv1.Reference `json:"providerReference"`

// ProviderReference holds configs (region, API key etc) for the crossplane provider that is being used.
ProviderReference *xpv1.Reference `json:"providerReference"`
}

// CivoInstanceObservation observation fields
Expand Down
3 changes: 2 additions & 1 deletion package/crds/cluster.civo.crossplane.io_civokubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ spec:
- name
type: object
providerReference:
description: A Reference to a named object.
description: ProviderReference holds configs (region, API key etc)
for the crossplane provider that is being used.
properties:
name:
description: Name of the referenced object.
Expand Down
3 changes: 2 additions & 1 deletion package/crds/instance.civo.crossplane.io_civoinstances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ spec:
- name
type: object
providerReference:
description: A Reference to a named object.
description: ProviderReference holds configs (region, API key etc)
for the crossplane provider that is being used.
properties:
name:
description: Name of the referenced object.
Expand Down

0 comments on commit bc16e85

Please sign in to comment.