Skip to content

Commit

Permalink
Automatic Update Crossplane Types to 3895/merge
Browse files Browse the repository at this point in the history
  • Loading branch information
akuitybot committed Jan 25, 2024
1 parent 43c6d95 commit 29c925c
Show file tree
Hide file tree
Showing 11 changed files with 1,942 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
// This is an auto-generated file. DO NOT EDIT
/*
Copyright 2023 Akuity, Inc.
*/

package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status

// ArgoCD is the Schema for the argocd API
type ArgoCD struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec ArgoCDSpec `json:"spec,omitempty"`
}

//+kubebuilder:object:root=true

// ArgoCDList contains a list of ArgoCD
type ArgoCDList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ArgoCD `json:"items"`
}

func init() {
SchemeBuilder.Register(&ArgoCD{}, &ArgoCDList{})
}

type ArgoCDSpec struct {
Description string `json:"description"`
Version string `json:"version"`
Shard string `json:"shard"`
InstanceSpec InstanceSpec `json:"instanceSpec,omitempty"`
}

type ArgoCDExtensionInstallEntry struct {
Id string `json:"id,omitempty"`
Version string `json:"version,omitempty"`
}

type ClusterCustomization struct {
AutoUpgradeDisabled bool `json:"autoUpgradeDisabled,omitempty"`
Kustomization runtime.RawExtension `json:"kustomization,omitempty"`
AppReplication bool `json:"appReplication,omitempty"`
RedisTunneling bool `json:"redisTunneling,omitempty"`
}

type AppsetPolicy struct {
Policy string `json:"policy,omitempty"`
OverridePolicy bool `json:"overridePolicy,omitempty"`
}

type AgentPermissionsRule struct {
ApiGroups []string `json:"apiGroups,omitempty"`
Resources []string `json:"resources,omitempty"`
Verbs []string `json:"verbs,omitempty"`
}

type InstanceSpec struct {
IpAllowList []*IPAllowListEntry `json:"ipAllowList,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
DeclarativeManagementEnabled bool `json:"declarativeManagementEnabled,omitempty"`
Extensions []*ArgoCDExtensionInstallEntry `json:"extensions,omitempty"`
ClusterCustomizationDefaults *ClusterCustomization `json:"clusterCustomizationDefaults,omitempty"`
ImageUpdaterEnabled bool `json:"imageUpdaterEnabled,omitempty"`
BackendIpAllowListEnabled bool `json:"backendIpAllowListEnabled,omitempty"`
RepoServerDelegate *RepoServerDelegate `json:"repoServerDelegate,omitempty"`
AuditExtensionEnabled bool `json:"auditExtensionEnabled,omitempty"`
SyncHistoryExtensionEnabled bool `json:"syncHistoryExtensionEnabled,omitempty"`
ImageUpdaterDelegate *ImageUpdaterDelegate `json:"imageUpdaterDelegate,omitempty"`
AppSetDelegate *AppSetDelegate `json:"appSetDelegate,omitempty"`
AssistantExtensionEnabled bool `json:"assistantExtensionEnabled,omitempty"`
AppsetPolicy *AppsetPolicy `json:"appsetPolicy,omitempty"`
HostAliases []*HostAliases `json:"hostAliases,omitempty"`
AgentPermissionsRules []*AgentPermissionsRule `json:"agentPermissionsRules,omitempty"`
}

type ManagedCluster struct {
ClusterName string `json:"clusterName,omitempty"`
}

type RepoServerDelegate struct {
ControlPlane bool `json:"controlPlane,omitempty"`
ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"`
}

type ImageUpdaterDelegate struct {
ControlPlane bool `json:"controlPlane,omitempty"`
ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"`
}

type AppSetDelegate struct {
ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"`
}

type IPAllowListEntry struct {
Ip string `json:"ip,omitempty"`
Description string `json:"description,omitempty"`
}

type HostAliases struct {
Ip string `json:"ip,omitempty"`
Hostnames []string `json:"hostnames,omitempty"`
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// This is an auto-generated file. DO NOT EDIT
/*
Copyright 2023 Akuity, Inc.
*/

package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status

// Cluster is the Schema for the cluster API
type Cluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec ClusterSpec `json:"spec,omitempty"`
}

type ClusterSize string

type DirectClusterType string

//+kubebuilder:object:root=true

// ClusterList contains a list of Cluster
type ClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Cluster `json:"items"`
}

func init() {
SchemeBuilder.Register(&Cluster{}, &ClusterList{})
}

type ClusterSpec struct {
Description string `json:"description,omitempty"`
NamespaceScoped bool `json:"namespaceScoped,omitempty"`
Data ClusterData `json:"data,omitempty"`
}

type DirectClusterSpec struct {
ClusterType DirectClusterType `json:"clusterType,omitempty"`
KargoInstanceId *string `json:"kargoInstanceId,omitempty"`
Server *string `json:"server,omitempty"`
Token *string `json:"token,omitempty"`
}

type ClusterData struct {
Size ClusterSize `json:"size,omitempty"`
AutoUpgradeDisabled *bool `json:"autoUpgradeDisabled,omitempty"`
Kustomization runtime.RawExtension `json:"kustomization,omitempty"`
AppReplication *bool `json:"appReplication,omitempty"`
TargetVersion string `json:"targetVersion,omitempty"`
RedisTunneling *bool `json:"redisTunneling,omitempty"`
DirectClusterSpec *DirectClusterSpec `json:"directClusterSpec,omitempty"`
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
Copyright 2023 Akuity, Inc.
*/

// Package v1alpha1 contains API Schema definitions for the argocd.akuity.io v1alpha1 API group
// +kubebuilder:object:generate=true
// +groupName=argocd.akuity.io
package v1alpha1

import (
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/controller-runtime/pkg/scheme"
)

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "argocd.akuity.io", Version: "v1alpha1"}

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

// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
)
Loading

0 comments on commit 29c925c

Please sign in to comment.