Skip to content

Commit

Permalink
Add aks configuration to the crd
Browse files Browse the repository at this point in the history
  • Loading branch information
sarataha committed Oct 2, 2023
1 parent 01374fb commit 7ecb1e4
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 1 deletion.
19 changes: 19 additions & 0 deletions api/v1alpha1/automatedclusterdiscovery_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ import (
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

// AKS defines the desired state of AKS
type AKS struct {
// SubscriptionID is the Azure subscription ID
SubscriptionID string `json:"subscriptionId,omitempty"`

Filter AKSFilter `json:"filter,omitempty"`

// Exclude is the list of clusters to exclude
Exclude []string `json:"exclude,omitempty"`
}

// Filter criteria for AKS clusters
type AKSFilter struct {
// Location is the location of the AKS clusters
Location string `json:"location,omitempty"`
}

// AutomatedClusterDiscoverySpec defines the desired state of AutomatedClusterDiscovery
type AutomatedClusterDiscoverySpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Expand All @@ -33,6 +50,8 @@ type AutomatedClusterDiscoverySpec struct {

// Type is the provider type
Type string `json:"type,omitempty"`

AKS *AKS `json:"aks,omitempty"`
}

// AutomatedClusterDiscoveryStatus defines the observed state of AutomatedClusterDiscovery
Expand Down
43 changes: 42 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,25 @@ spec:
description: AutomatedClusterDiscoverySpec defines the desired state of
AutomatedClusterDiscovery
properties:
aks:
description: AKS defines the desired state of AKS
properties:
exclude:
description: Exclude is the list of clusters to exclude
items:
type: string
type: array
filter:
description: Filter criteria for AKS clusters
properties:
location:
description: Location is the location of the AKS clusters
type: string
type: object
subscriptionId:
description: SubscriptionID is the Azure subscription ID
type: string
type: object
name:
description: Name is the name of the cluster
type: string
Expand Down

0 comments on commit 7ecb1e4

Please sign in to comment.