Skip to content

Commit 31fa8fb

Browse files
authored
[Sync] Synchronize API (#931)
1 parent e8fdfad commit 31fa8fb

File tree

3 files changed

+12
-39
lines changed

3 files changed

+12
-39
lines changed

pkg/apis/deployment/v2alpha1/cluster_synchronization_spec.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
package v2alpha1
2222

2323
type ArangoClusterSynchronizationSpec struct {
24-
DeploymentName *string `json:"deploymentName,omitempty"`
24+
DeploymentName string `json:"deploymentName,omitempty"`
2525
KubeConfig *ArangoClusterSynchronizationKubeConfigSpec `json:"kubeconfig,omitempty"`
2626
}
2727

2828
type ArangoClusterSynchronizationKubeConfigSpec struct {
2929
SecretName string `json:"secretName"`
30+
SecretKey string `json:"secretKey"`
3031
Namespace string `json:"namespace"`
3132
}

pkg/apis/deployment/v2alpha1/cluster_synchronization_status.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ import "k8s.io/apimachinery/pkg/types"
2424

2525
type ArangoClusterSynchronizationStatus struct {
2626
Deployment *ArangoClusterSynchronizationDeploymentStatus `json:"deployment,omitempty"`
27-
KubeConfig *ArangoClusterSynchronizationKubeConfigStatus `json:"kubeconfig,omitempty"`
27+
Conditions ConditionList `json:"conditions,omitempty"`
2828
}
2929

3030
type ArangoClusterSynchronizationDeploymentStatus struct {
31-
UID types.UID `json:"UID"`
32-
}
33-
34-
type ArangoClusterSynchronizationKubeConfigStatus struct {
35-
Conditions ConditionList `json:"conditions,omitempty"`
31+
Name string `json:"name"`
32+
Namespace string `json:"namespace"`
33+
UID types.UID `json:"uid"`
3634
}

pkg/apis/deployment/v2alpha1/zz_generated.deepcopy.go

Lines changed: 6 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)