Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AKS configuration to AutomatedClusterDiscovery CRD #3

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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