armkubernetesconfiguration

package module
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 15 Imported by: 0

README

Azure Kubernetes Configuration Module for Go

PkgGoDev

The armkubernetesconfiguration module provides operations for working with Azure Kubernetes Configuration.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Kubernetes Configuration module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Kubernetes Configuration. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Kubernetes Configuration module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armkubernetesconfiguration.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armkubernetesconfiguration.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewSourceControlConfigurationsClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Kubernetes Configuration label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AKSIdentityType

type AKSIdentityType string

AKSIdentityType - The identity type.

const (
	AKSIdentityTypeSystemAssigned AKSIdentityType = "SystemAssigned"
	AKSIdentityTypeUserAssigned   AKSIdentityType = "UserAssigned"
)

func PossibleAKSIdentityTypeValues

func PossibleAKSIdentityTypeValues() []AKSIdentityType

PossibleAKSIdentityTypeValues returns the possible values for the AKSIdentityType const type.

type AzureBlobDefinition

type AzureBlobDefinition struct {
	// The account key (shared key) to access the storage account
	AccountKey *string

	// The Azure Blob container name to sync from the url endpoint for the flux configuration.
	ContainerName *string

	// Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided
	// configuration secrets.
	LocalAuthRef *string

	// Parameters to authenticate using a Managed Identity.
	ManagedIdentity *ManagedIdentityDefinition

	// The Shared Access token to access the storage container
	SasToken *string

	// Parameters to authenticate using Service Principal.
	ServicePrincipal *ServicePrincipalDefinition

	// The interval at which to re-reconcile the cluster Azure Blob source with the remote.
	SyncIntervalInSeconds *int64

	// The maximum time to attempt to reconcile the cluster Azure Blob source with the remote.
	TimeoutInSeconds *int64

	// The URL to sync for the flux configuration Azure Blob storage account.
	URL *string
}

AzureBlobDefinition - Parameters to reconcile to the AzureBlob source kind type.

func (AzureBlobDefinition) MarshalJSON

func (a AzureBlobDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureBlobDefinition.

func (*AzureBlobDefinition) UnmarshalJSON

func (a *AzureBlobDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobDefinition.

type AzureBlobPatchDefinition

type AzureBlobPatchDefinition struct {
	// The account key (shared key) to access the storage account
	AccountKey *string

	// The Azure Blob container name to sync from the url endpoint for the flux configuration.
	ContainerName *string

	// Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided
	// configuration secrets.
	LocalAuthRef *string

	// Parameters to authenticate using a Managed Identity.
	ManagedIdentity *ManagedIdentityPatchDefinition

	// The Shared Access token to access the storage container
	SasToken *string

	// Parameters to authenticate using Service Principal.
	ServicePrincipal *ServicePrincipalPatchDefinition

	// The interval at which to re-reconcile the cluster Azure Blob source with the remote.
	SyncIntervalInSeconds *int64

	// The maximum time to attempt to reconcile the cluster Azure Blob source with the remote.
	TimeoutInSeconds *int64

	// The URL to sync for the flux configuration Azure Blob storage account.
	URL *string
}

AzureBlobPatchDefinition - Parameters to reconcile to the AzureBlob source kind type.

func (AzureBlobPatchDefinition) MarshalJSON

func (a AzureBlobPatchDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureBlobPatchDefinition.

func (*AzureBlobPatchDefinition) UnmarshalJSON

func (a *AzureBlobPatchDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobPatchDefinition.

type BucketDefinition

type BucketDefinition struct {
	// Plaintext access key used to securely access the S3 bucket
	AccessKey *string

	// The bucket name to sync from the url endpoint for the flux configuration.
	BucketName *string

	// Specify whether to use insecure communication when puling data from the S3 bucket.
	Insecure *bool

	// Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided
	// configuration secrets.
	LocalAuthRef *string

	// The interval at which to re-reconcile the cluster bucket source with the remote.
	SyncIntervalInSeconds *int64

	// The maximum time to attempt to reconcile the cluster bucket source with the remote.
	TimeoutInSeconds *int64

	// The URL to sync for the flux configuration S3 bucket.
	URL *string
}

BucketDefinition - Parameters to reconcile to the Bucket source kind type.

func (BucketDefinition) MarshalJSON

func (b BucketDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BucketDefinition.

func (*BucketDefinition) UnmarshalJSON

func (b *BucketDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BucketDefinition.

type BucketPatchDefinition

type BucketPatchDefinition struct {
	// Plaintext access key used to securely access the S3 bucket
	AccessKey *string

	// The bucket name to sync from the url endpoint for the flux configuration.
	BucketName *string

	// Specify whether to use insecure communication when puling data from the S3 bucket.
	Insecure *bool

	// Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided
	// configuration secrets.
	LocalAuthRef *string

	// The interval at which to re-reconcile the cluster bucket source with the remote.
	SyncIntervalInSeconds *int64

	// The maximum time to attempt to reconcile the cluster bucket source with the remote.
	TimeoutInSeconds *int64

	// The URL to sync for the flux configuration S3 bucket.
	URL *string
}

BucketPatchDefinition - Parameters to reconcile to the Bucket source kind type.

func (BucketPatchDefinition) MarshalJSON

func (b BucketPatchDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BucketPatchDefinition.

func (*BucketPatchDefinition) UnmarshalJSON

func (b *BucketPatchDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BucketPatchDefinition.

type ClientFactory

type ClientFactory struct {
	// contains filtered or unexported fields
}

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewExtensionsClient

func (c *ClientFactory) NewExtensionsClient() *ExtensionsClient

NewExtensionsClient creates a new instance of ExtensionsClient.

func (*ClientFactory) NewFluxConfigOperationStatusClient

func (c *ClientFactory) NewFluxConfigOperationStatusClient() *FluxConfigOperationStatusClient

NewFluxConfigOperationStatusClient creates a new instance of FluxConfigOperationStatusClient.

func (*ClientFactory) NewFluxConfigurationsClient

func (c *ClientFactory) NewFluxConfigurationsClient() *FluxConfigurationsClient

NewFluxConfigurationsClient creates a new instance of FluxConfigurationsClient.

func (*ClientFactory) NewOperationStatusClient

func (c *ClientFactory) NewOperationStatusClient() *OperationStatusClient

NewOperationStatusClient creates a new instance of OperationStatusClient.

func (*ClientFactory) NewOperationsClient

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewSourceControlConfigurationsClient

func (c *ClientFactory) NewSourceControlConfigurationsClient() *SourceControlConfigurationsClient

NewSourceControlConfigurationsClient creates a new instance of SourceControlConfigurationsClient.

type ComplianceStateType

type ComplianceStateType string

ComplianceStateType - The compliance state of the configuration.

const (
	ComplianceStateTypeCompliant    ComplianceStateType = "Compliant"
	ComplianceStateTypeFailed       ComplianceStateType = "Failed"
	ComplianceStateTypeInstalled    ComplianceStateType = "Installed"
	ComplianceStateTypeNoncompliant ComplianceStateType = "Noncompliant"
	ComplianceStateTypePending      ComplianceStateType = "Pending"
)

func PossibleComplianceStateTypeValues

func PossibleComplianceStateTypeValues() []ComplianceStateType

PossibleComplianceStateTypeValues returns the possible values for the ComplianceStateType const type.

type ComplianceStatus

type ComplianceStatus struct {
	// Datetime the configuration was last applied.
	LastConfigApplied *time.Time

	// Message from when the configuration was applied.
	Message *string

	// Level of the message.
	MessageLevel *MessageLevelType

	// READ-ONLY; The compliance state of the configuration.
	ComplianceState *ComplianceStateType
}

ComplianceStatus - Compliance Status details

func (ComplianceStatus) MarshalJSON

func (c ComplianceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ComplianceStatus.

func (*ComplianceStatus) UnmarshalJSON

func (c *ComplianceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ComplianceStatus.

type CreatedByType

type CreatedByType string

CreatedByType - The type of identity that created the resource.

const (
	CreatedByTypeApplication     CreatedByType = "Application"
	CreatedByTypeKey             CreatedByType = "Key"
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	CreatedByTypeUser            CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	// READ-ONLY; The additional info.
	Info any

	// READ-ONLY; The additional info type.
	Type *string
}

ErrorAdditionalInfo - The resource management error additional info.

func (ErrorAdditionalInfo) MarshalJSON

func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.

func (*ErrorAdditionalInfo) UnmarshalJSON

func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.

type ErrorDetail

type ErrorDetail struct {
	// READ-ONLY; The error additional info.
	AdditionalInfo []*ErrorAdditionalInfo

	// READ-ONLY; The error code.
	Code *string

	// READ-ONLY; The error details.
	Details []*ErrorDetail

	// READ-ONLY; The error message.
	Message *string

	// READ-ONLY; The error target.
	Target *string
}

ErrorDetail - The error detail.

func (ErrorDetail) MarshalJSON

func (e ErrorDetail) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorDetail.

func (*ErrorDetail) UnmarshalJSON

func (e *ErrorDetail) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.

type ErrorResponse

type ErrorResponse struct {
	// The error object.
	Error *ErrorDetail
}

ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).

func (ErrorResponse) MarshalJSON

func (e ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON

func (e *ErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.

type Extension

type Extension struct {
	// Identity of the Extension resource
	Identity *Identity

	// The plan information.
	Plan *Plan

	// Properties of an Extension resource
	Properties *ExtensionProperties

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

Extension - The Extension object.

func (Extension) MarshalJSON

func (e Extension) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Extension.

func (*Extension) UnmarshalJSON

func (e *Extension) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Extension.

type ExtensionProperties

type ExtensionProperties struct {
	// Identity of the Extension resource in an AKS cluster
	AksAssignedIdentity *ExtensionPropertiesAksAssignedIdentity

	// Flag to note if this extension participates in auto upgrade of minor version, or not.
	AutoUpgradeMinorVersion *bool

	// Configuration settings that are sensitive, as name-value pairs for configuring this extension.
	ConfigurationProtectedSettings map[string]*string

	// Configuration settings, as name-value pairs for configuring this extension.
	ConfigurationSettings map[string]*string

	// Type of the Extension, of which this resource is an instance of. It must be one of the Extension Types registered with
	// Microsoft.KubernetesConfiguration by the Extension publisher.
	ExtensionType *string

	// ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion
	// is 'true'.
	ReleaseTrain *string

	// Scope at which the extension is installed.
	Scope *Scope

	// Status from this extension.
	Statuses []*ExtensionStatus

	// User-specified version of the extension for this extension to 'pin'. To use 'version', autoUpgradeMinorVersion must be
	// 'false'.
	Version *string

	// READ-ONLY; Currently installed version of the extension.
	CurrentVersion *string

	// READ-ONLY; Custom Location settings properties.
	CustomLocationSettings map[string]*string

	// READ-ONLY; Error information from the Agent - e.g. errors during installation.
	ErrorInfo *ErrorDetail

	// READ-ONLY; Flag to note if this extension is a system extension
	IsSystemExtension *bool

	// READ-ONLY; Uri of the Helm package
	PackageURI *string

	// READ-ONLY; Status of installation of this extension.
	ProvisioningState *ProvisioningState
}

ExtensionProperties - Properties of an Extension resource

func (ExtensionProperties) MarshalJSON

func (e ExtensionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExtensionProperties.

func (*ExtensionProperties) UnmarshalJSON

func (e *ExtensionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExtensionProperties.

type ExtensionPropertiesAksAssignedIdentity

type ExtensionPropertiesAksAssignedIdentity struct {
	// The identity type.
	Type *AKSIdentityType

	// READ-ONLY; The principal ID of resource identity.
	PrincipalID *string

	// READ-ONLY; The tenant ID of resource.
	TenantID *string
}

ExtensionPropertiesAksAssignedIdentity - Identity of the Extension resource in an AKS cluster

func (ExtensionPropertiesAksAssignedIdentity) MarshalJSON

func (e ExtensionPropertiesAksAssignedIdentity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExtensionPropertiesAksAssignedIdentity.

func (*ExtensionPropertiesAksAssignedIdentity) UnmarshalJSON

func (e *ExtensionPropertiesAksAssignedIdentity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExtensionPropertiesAksAssignedIdentity.

type ExtensionStatus

type ExtensionStatus struct {
	// Status code provided by the Extension
	Code *string

	// Short description of status of the extension.
	DisplayStatus *string

	// Level of the status.
	Level *LevelType

	// Detailed message of the status from the Extension.
	Message *string

	// DateLiteral (per ISO8601) noting the time of installation status.
	Time *string
}

ExtensionStatus - Status from the extension.

func (ExtensionStatus) MarshalJSON

func (e ExtensionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExtensionStatus.

func (*ExtensionStatus) UnmarshalJSON

func (e *ExtensionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExtensionStatus.

type ExtensionsClient

type ExtensionsClient struct {
	// contains filtered or unexported fields
}

ExtensionsClient contains the methods for the Extensions group. Don't use this type directly, use NewExtensionsClient() instead.

func NewExtensionsClient

func NewExtensionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExtensionsClient, error)

NewExtensionsClient creates a new instance of ExtensionsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ExtensionsClient) BeginCreate

func (client *ExtensionsClient) BeginCreate(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, extensionName string, extension Extension, options *ExtensionsClientBeginCreateOptions) (*runtime.Poller[ExtensionsClientCreateResponse], error)

BeginCreate - Create a new Kubernetes Cluster Extension. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • extensionName - Name of the Extension.
  • extension - Properties necessary to Create an Extension.
  • options - ExtensionsClientBeginCreateOptions contains the optional parameters for the ExtensionsClient.BeginCreate method.
Example (CreateExtension)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/CreateExtension.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewExtensionsClient().BeginCreate(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "ClusterMonitor", armkubernetesconfiguration.Extension{
	Properties: &armkubernetesconfiguration.ExtensionProperties{
		AutoUpgradeMinorVersion: to.Ptr(true),
		ConfigurationProtectedSettings: map[string]*string{
			"omsagent.secret.key": to.Ptr("secretKeyValue01"),
		},
		ConfigurationSettings: map[string]*string{
			"omsagent.env.clusterName": to.Ptr("clusterName1"),
			"omsagent.secret.wsid":     to.Ptr("a38cef99-5a89-52ed-b6db-22095c23664b"),
		},
		ExtensionType: to.Ptr("azuremonitor-containers"),
		ReleaseTrain:  to.Ptr("Preview"),
		Scope: &armkubernetesconfiguration.Scope{
			Cluster: &armkubernetesconfiguration.ScopeCluster{
				ReleaseNamespace: to.Ptr("kube-system"),
			},
		},
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Extension = armkubernetesconfiguration.Extension{
// 	Name: to.Ptr("ClusterMonitor"),
// 	Type: to.Ptr("Microsoft.KubernetesConfiguration/extensions"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor"),
// 	Properties: &armkubernetesconfiguration.ExtensionProperties{
// 		AutoUpgradeMinorVersion: to.Ptr(false),
// 		ConfigurationSettings: map[string]*string{
// 			"omsagent.env.clusterName": to.Ptr("clusterName1"),
// 			"omsagent.secret.wsid": to.Ptr("a38cef99-5a89-52ed-b6db-22095c23664b"),
// 		},
// 		CurrentVersion: to.Ptr("0.1.4"),
// 		ExtensionType: to.Ptr("azuremonitor-containers"),
// 		IsSystemExtension: to.Ptr(false),
// 		ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
// 		ReleaseTrain: to.Ptr("Preview"),
// 		Scope: &armkubernetesconfiguration.Scope{
// 			Cluster: &armkubernetesconfiguration.ScopeCluster{
// 				ReleaseNamespace: to.Ptr("kube-system"),
// 			},
// 		},
// 		Statuses: []*armkubernetesconfiguration.ExtensionStatus{
// 		},
// 		Version: to.Ptr("0.1.4"),
// 	},
// 	SystemData: &armkubernetesconfiguration.SystemData{
// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
// 		CreatedBy: to.Ptr("string"),
// 		CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
// 		LastModifiedBy: to.Ptr("string"),
// 		LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 	},
// }
Output:

Example (CreateExtensionWithPlan)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/CreateExtensionWithPlan.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewExtensionsClient().BeginCreate(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "azureVote", armkubernetesconfiguration.Extension{
	Plan: &armkubernetesconfiguration.Plan{
		Name:      to.Ptr("azure-vote-standard"),
		Product:   to.Ptr("azure-vote-standard-offer-id"),
		Publisher: to.Ptr("Microsoft"),
	},
	Properties: &armkubernetesconfiguration.ExtensionProperties{
		AutoUpgradeMinorVersion: to.Ptr(true),
		ExtensionType:           to.Ptr("azure-vote"),
		ReleaseTrain:            to.Ptr("Preview"),
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Extension = armkubernetesconfiguration.Extension{
// 	Name: to.Ptr("azureVote"),
// 	Type: to.Ptr("Microsoft.KubernetesConfiguration/extensions"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/azureVote"),
// 	Plan: &armkubernetesconfiguration.Plan{
// 		Name: to.Ptr("azure-vote-standard"),
// 		Product: to.Ptr("azure-vote-standard-offer-id"),
// 		Publisher: to.Ptr("Microsoft"),
// 	},
// 	Properties: &armkubernetesconfiguration.ExtensionProperties{
// 		AutoUpgradeMinorVersion: to.Ptr(true),
// 		CurrentVersion: to.Ptr("0.1.4"),
// 		ExtensionType: to.Ptr("azure-vote"),
// 		IsSystemExtension: to.Ptr(false),
// 		ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
// 		ReleaseTrain: to.Ptr("Preview"),
// 		Scope: &armkubernetesconfiguration.Scope{
// 			Cluster: &armkubernetesconfiguration.ScopeCluster{
// 				ReleaseNamespace: to.Ptr("kube-system"),
// 			},
// 		},
// 		Statuses: []*armkubernetesconfiguration.ExtensionStatus{
// 		},
// 		Version: to.Ptr("0.1.4"),
// 	},
// 	SystemData: &armkubernetesconfiguration.SystemData{
// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
// 		CreatedBy: to.Ptr("string"),
// 		CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
// 		LastModifiedBy: to.Ptr("string"),
// 		LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 	},
// }
Output:

func (*ExtensionsClient) BeginDelete

func (client *ExtensionsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, extensionName string, options *ExtensionsClientBeginDeleteOptions) (*runtime.Poller[ExtensionsClientDeleteResponse], error)

BeginDelete - Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • extensionName - Name of the Extension.
  • options - ExtensionsClientBeginDeleteOptions contains the optional parameters for the ExtensionsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/DeleteExtension.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewExtensionsClient().BeginDelete(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "ClusterMonitor", &armkubernetesconfiguration.ExtensionsClientBeginDeleteOptions{ForceDelete: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*ExtensionsClient) BeginUpdate

func (client *ExtensionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, extensionName string, patchExtension PatchExtension, options *ExtensionsClientBeginUpdateOptions) (*runtime.Poller[ExtensionsClientUpdateResponse], error)

BeginUpdate - Patch an existing Kubernetes Cluster Extension. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • extensionName - Name of the Extension.
  • patchExtension - Properties to Patch in an existing Extension.
  • options - ExtensionsClientBeginUpdateOptions contains the optional parameters for the ExtensionsClient.BeginUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/PatchExtension.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewExtensionsClient().BeginUpdate(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "ClusterMonitor", armkubernetesconfiguration.PatchExtension{
	Properties: &armkubernetesconfiguration.PatchExtensionProperties{
		AutoUpgradeMinorVersion: to.Ptr(true),
		ConfigurationProtectedSettings: map[string]*string{
			"omsagent.secret.key": to.Ptr("secretKeyValue01"),
		},
		ConfigurationSettings: map[string]*string{
			"omsagent.env.clusterName": to.Ptr("clusterName1"),
			"omsagent.secret.wsid":     to.Ptr("a38cef99-5a89-52ed-b6db-22095c23664b"),
		},
		ReleaseTrain: to.Ptr("Preview"),
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Extension = armkubernetesconfiguration.Extension{
// 	Properties: &armkubernetesconfiguration.ExtensionProperties{
// 		AutoUpgradeMinorVersion: to.Ptr(true),
// 		ConfigurationSettings: map[string]*string{
// 			"omsagent.env.clusterName": to.Ptr("clusterName1"),
// 			"omsagent.secret.wsid": to.Ptr("a38cef99-5a89-52ed-b6db-22095c23664b"),
// 		},
// 		ExtensionType: to.Ptr("azuremonitor-containers"),
// 		ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
// 		ReleaseTrain: to.Ptr("Preview"),
// 		Scope: &armkubernetesconfiguration.Scope{
// 			Cluster: &armkubernetesconfiguration.ScopeCluster{
// 				ReleaseNamespace: to.Ptr("kube-system"),
// 			},
// 		},
// 		Statuses: []*armkubernetesconfiguration.ExtensionStatus{
// 		},
// 		Version: to.Ptr("0.1.4"),
// 	},
// }
Output:

func (*ExtensionsClient) Get

func (client *ExtensionsClient) Get(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, extensionName string, options *ExtensionsClientGetOptions) (ExtensionsClientGetResponse, error)

Get - Gets Kubernetes Cluster Extension. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • extensionName - Name of the Extension.
  • options - ExtensionsClientGetOptions contains the optional parameters for the ExtensionsClient.Get method.
Example (GetExtension)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/GetExtension.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewExtensionsClient().Get(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "ClusterMonitor", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Extension = armkubernetesconfiguration.Extension{
// 	Name: to.Ptr("ClusterMonitor"),
// 	Type: to.Ptr("Microsoft.KubernetesConfiguration/extensions"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor"),
// 	Properties: &armkubernetesconfiguration.ExtensionProperties{
// 		AutoUpgradeMinorVersion: to.Ptr(false),
// 		ConfigurationSettings: map[string]*string{
// 			"omsagent.env.clusterName": to.Ptr("clusterName1"),
// 			"omsagent.secret.wsid": to.Ptr("a38cef99-5a89-52ed-b6db-22095c23664b"),
// 		},
// 		CurrentVersion: to.Ptr("0.1.4"),
// 		ExtensionType: to.Ptr("azuremonitor-containers"),
// 		IsSystemExtension: to.Ptr(false),
// 		ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
// 		ReleaseTrain: to.Ptr("Preview"),
// 		Scope: &armkubernetesconfiguration.Scope{
// 			Cluster: &armkubernetesconfiguration.ScopeCluster{
// 				ReleaseNamespace: to.Ptr("kube-system"),
// 			},
// 		},
// 		Statuses: []*armkubernetesconfiguration.ExtensionStatus{
// 		},
// 		Version: to.Ptr("0.1.4"),
// 	},
// 	SystemData: &armkubernetesconfiguration.SystemData{
// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
// 		CreatedBy: to.Ptr("string"),
// 		CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
// 		LastModifiedBy: to.Ptr("string"),
// 		LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 	},
// }
Output:

Example (GetExtensionWithPlan)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/GetExtensionWithPlan.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewExtensionsClient().Get(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "azureVote", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Extension = armkubernetesconfiguration.Extension{
// 	Name: to.Ptr("azureVote"),
// 	Type: to.Ptr("Microsoft.KubernetesConfiguration/extensions"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/azureVote"),
// 	Plan: &armkubernetesconfiguration.Plan{
// 		Name: to.Ptr("azure-vote-standard"),
// 		Product: to.Ptr("azure-vote-standard-offer-id"),
// 		Publisher: to.Ptr("Microsoft"),
// 	},
// 	Properties: &armkubernetesconfiguration.ExtensionProperties{
// 		AutoUpgradeMinorVersion: to.Ptr(false),
// 		ConfigurationSettings: map[string]*string{
// 			"omsagent.env.clusterName": to.Ptr("clusterName1"),
// 			"omsagent.secret.wsid": to.Ptr("a38cef99-5a89-52ed-b6db-22095c23664b"),
// 		},
// 		CurrentVersion: to.Ptr("0.1.4"),
// 		ExtensionType: to.Ptr("azure-vote"),
// 		IsSystemExtension: to.Ptr(false),
// 		ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
// 		ReleaseTrain: to.Ptr("Preview"),
// 		Scope: &armkubernetesconfiguration.Scope{
// 			Cluster: &armkubernetesconfiguration.ScopeCluster{
// 				ReleaseNamespace: to.Ptr("kube-system"),
// 			},
// 		},
// 		Statuses: []*armkubernetesconfiguration.ExtensionStatus{
// 		},
// 		Version: to.Ptr("0.1.4"),
// 	},
// 	SystemData: &armkubernetesconfiguration.SystemData{
// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
// 		CreatedBy: to.Ptr("string"),
// 		CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
// 		LastModifiedBy: to.Ptr("string"),
// 		LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 	},
// }
Output:

func (*ExtensionsClient) NewListPager

func (client *ExtensionsClient) NewListPager(resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, options *ExtensionsClientListOptions) *runtime.Pager[ExtensionsClientListResponse]

NewListPager - List all Extensions in the cluster.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • options - ExtensionsClientListOptions contains the optional parameters for the ExtensionsClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/ListExtensions.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewExtensionsClient().NewListPager("rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.ExtensionsList = armkubernetesconfiguration.ExtensionsList{
	// 	Value: []*armkubernetesconfiguration.Extension{
	// 		{
	// 			Name: to.Ptr("ClusterMonitor"),
	// 			Type: to.Ptr("Microsoft.KubernetesConfiguration/extensions"),
	// 			ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor"),
	// 			Properties: &armkubernetesconfiguration.ExtensionProperties{
	// 				AutoUpgradeMinorVersion: to.Ptr(false),
	// 				ConfigurationSettings: map[string]*string{
	// 					"omsagent.env.clusterName": to.Ptr("clusterName1"),
	// 					"omsagent.secret.wsid": to.Ptr("a38cef99-5a89-52ed-b6db-22095c23664b"),
	// 				},
	// 				CurrentVersion: to.Ptr("0.1.4"),
	// 				ExtensionType: to.Ptr("azuremonitor-containers"),
	// 				IsSystemExtension: to.Ptr(false),
	// 				ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
	// 				ReleaseTrain: to.Ptr("Preview"),
	// 				Scope: &armkubernetesconfiguration.Scope{
	// 					Cluster: &armkubernetesconfiguration.ScopeCluster{
	// 						ReleaseNamespace: to.Ptr("kube-system"),
	// 					},
	// 				},
	// 				Statuses: []*armkubernetesconfiguration.ExtensionStatus{
	// 				},
	// 				Version: to.Ptr("0.1.4"),
	// 			},
	// 			SystemData: &armkubernetesconfiguration.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
	// 				CreatedBy: to.Ptr("string"),
	// 				CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("string"),
	// 				LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("App1Monitor"),
	// 			Type: to.Ptr("Microsoft.KubernetesConfiguration/extensions"),
	// 			ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/BackupVault01"),
	// 			Properties: &armkubernetesconfiguration.ExtensionProperties{
	// 				AutoUpgradeMinorVersion: to.Ptr(true),
	// 				ConfigurationSettings: map[string]*string{
	// 				},
	// 				CurrentVersion: to.Ptr("1.0.1"),
	// 				ExtensionType: to.Ptr("Microsoft.RecoveryServices/recoveryVault"),
	// 				IsSystemExtension: to.Ptr(false),
	// 				ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
	// 				ReleaseTrain: to.Ptr("Stable"),
	// 				Scope: &armkubernetesconfiguration.Scope{
	// 					Cluster: &armkubernetesconfiguration.ScopeCluster{
	// 						ReleaseNamespace: to.Ptr("myKVNamespace"),
	// 					},
	// 				},
	// 				Statuses: []*armkubernetesconfiguration.ExtensionStatus{
	// 				},
	// 			},
	// 			SystemData: &armkubernetesconfiguration.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T04:09:23.011Z"); return t}()),
	// 				CreatedBy: to.Ptr("string"),
	// 				CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T04:09:23.011Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("string"),
	// 				LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("azureVote"),
	// 			Type: to.Ptr("Microsoft.KubernetesConfiguration/extensions"),
	// 			ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/azureVote"),
	// 			Plan: &armkubernetesconfiguration.Plan{
	// 				Name: to.Ptr("azure-vote-standard"),
	// 				Product: to.Ptr("azure-vote-standard-offer-id"),
	// 				Publisher: to.Ptr("Microsoft"),
	// 			},
	// 			Properties: &armkubernetesconfiguration.ExtensionProperties{
	// 				AutoUpgradeMinorVersion: to.Ptr(false),
	// 				ConfigurationSettings: map[string]*string{
	// 					"omsagent.env.clusterName": to.Ptr("clusterName1"),
	// 					"omsagent.secret.wsid": to.Ptr("a38cef99-5a89-52ed-b6db-22095c23664b"),
	// 				},
	// 				CurrentVersion: to.Ptr("0.1.4"),
	// 				ExtensionType: to.Ptr("azure-vote"),
	// 				IsSystemExtension: to.Ptr(false),
	// 				ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
	// 				ReleaseTrain: to.Ptr("Preview"),
	// 				Scope: &armkubernetesconfiguration.Scope{
	// 					Cluster: &armkubernetesconfiguration.ScopeCluster{
	// 						ReleaseNamespace: to.Ptr("kube-system"),
	// 					},
	// 				},
	// 				Statuses: []*armkubernetesconfiguration.ExtensionStatus{
	// 				},
	// 				Version: to.Ptr("0.1.4"),
	// 			},
	// 			SystemData: &armkubernetesconfiguration.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
	// 				CreatedBy: to.Ptr("string"),
	// 				CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-08T05:10:57.027Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("string"),
	// 				LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 			},
	// 	}},
	// }
}
Output:

type ExtensionsClientBeginCreateOptions

type ExtensionsClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ExtensionsClientBeginCreateOptions contains the optional parameters for the ExtensionsClient.BeginCreate method.

type ExtensionsClientBeginDeleteOptions

type ExtensionsClientBeginDeleteOptions struct {
	// Delete the extension resource in Azure - not the normal asynchronous delete.
	ForceDelete *bool

	// Resumes the LRO from the provided token.
	ResumeToken string
}

ExtensionsClientBeginDeleteOptions contains the optional parameters for the ExtensionsClient.BeginDelete method.

type ExtensionsClientBeginUpdateOptions

type ExtensionsClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ExtensionsClientBeginUpdateOptions contains the optional parameters for the ExtensionsClient.BeginUpdate method.

type ExtensionsClientCreateResponse

type ExtensionsClientCreateResponse struct {
	// The Extension object.
	Extension
}

ExtensionsClientCreateResponse contains the response from method ExtensionsClient.BeginCreate.

type ExtensionsClientDeleteResponse

type ExtensionsClientDeleteResponse struct {
}

ExtensionsClientDeleteResponse contains the response from method ExtensionsClient.BeginDelete.

type ExtensionsClientGetOptions

type ExtensionsClientGetOptions struct {
}

ExtensionsClientGetOptions contains the optional parameters for the ExtensionsClient.Get method.

type ExtensionsClientGetResponse

type ExtensionsClientGetResponse struct {
	// The Extension object.
	Extension
}

ExtensionsClientGetResponse contains the response from method ExtensionsClient.Get.

type ExtensionsClientListOptions

type ExtensionsClientListOptions struct {
}

ExtensionsClientListOptions contains the optional parameters for the ExtensionsClient.NewListPager method.

type ExtensionsClientListResponse

type ExtensionsClientListResponse struct {
	// Result of the request to list Extensions. It contains a list of Extension objects and a URL link to get the next set of
	// results.
	ExtensionsList
}

ExtensionsClientListResponse contains the response from method ExtensionsClient.NewListPager.

type ExtensionsClientUpdateResponse

type ExtensionsClientUpdateResponse struct {
	// The Extension object.
	Extension
}

ExtensionsClientUpdateResponse contains the response from method ExtensionsClient.BeginUpdate.

type ExtensionsList

type ExtensionsList struct {
	// READ-ONLY; URL to get the next set of extension objects, if any.
	NextLink *string

	// READ-ONLY; List of Extensions within a Kubernetes cluster.
	Value []*Extension
}

ExtensionsList - Result of the request to list Extensions. It contains a list of Extension objects and a URL link to get the next set of results.

func (ExtensionsList) MarshalJSON

func (e ExtensionsList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExtensionsList.

func (*ExtensionsList) UnmarshalJSON

func (e *ExtensionsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExtensionsList.

type FluxComplianceState

type FluxComplianceState string

FluxComplianceState - Compliance state of the cluster object.

const (
	FluxComplianceStateCompliant    FluxComplianceState = "Compliant"
	FluxComplianceStateNonCompliant FluxComplianceState = "Non-Compliant"
	FluxComplianceStatePending      FluxComplianceState = "Pending"
	FluxComplianceStateSuspended    FluxComplianceState = "Suspended"
	FluxComplianceStateUnknown      FluxComplianceState = "Unknown"
)

func PossibleFluxComplianceStateValues

func PossibleFluxComplianceStateValues() []FluxComplianceState

PossibleFluxComplianceStateValues returns the possible values for the FluxComplianceState const type.

type FluxConfigOperationStatusClient

type FluxConfigOperationStatusClient struct {
	// contains filtered or unexported fields
}

FluxConfigOperationStatusClient contains the methods for the FluxConfigOperationStatus group. Don't use this type directly, use NewFluxConfigOperationStatusClient() instead.

func NewFluxConfigOperationStatusClient

func NewFluxConfigOperationStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FluxConfigOperationStatusClient, error)

NewFluxConfigOperationStatusClient creates a new instance of FluxConfigOperationStatusClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FluxConfigOperationStatusClient) Get

func (client *FluxConfigOperationStatusClient) Get(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, fluxConfigurationName string, operationID string, options *FluxConfigOperationStatusClientGetOptions) (FluxConfigOperationStatusClientGetResponse, error)

Get - Get Async Operation status If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • fluxConfigurationName - Name of the Flux Configuration.
  • operationID - operation Id
  • options - FluxConfigOperationStatusClientGetOptions contains the optional parameters for the FluxConfigOperationStatusClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/GetFluxConfigurationAsyncOperationStatus.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFluxConfigOperationStatusClient().Get(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "srs-fluxconfig", "99999999-9999-9999-9999-999999999999", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.OperationStatusResult = armkubernetesconfiguration.OperationStatusResult{
// 	Name: to.Ptr("99999999-9999-9999-9999-999999999999"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/srs-fluxconfig/operations/99999999-9999-9999-9999-999999999999"),
// 	Properties: map[string]*string{
// 	},
// 	Status: to.Ptr("Succeeded"),
// }
Output:

type FluxConfigOperationStatusClientGetOptions

type FluxConfigOperationStatusClientGetOptions struct {
}

FluxConfigOperationStatusClientGetOptions contains the optional parameters for the FluxConfigOperationStatusClient.Get method.

type FluxConfigOperationStatusClientGetResponse

type FluxConfigOperationStatusClientGetResponse struct {
	// The current status of an async operation.
	OperationStatusResult
}

FluxConfigOperationStatusClientGetResponse contains the response from method FluxConfigOperationStatusClient.Get.

type FluxConfiguration

type FluxConfiguration struct {
	// Properties to create a Flux Configuration resource
	Properties *FluxConfigurationProperties

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

FluxConfiguration - The Flux Configuration object returned in Get & Put response.

func (FluxConfiguration) MarshalJSON

func (f FluxConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FluxConfiguration.

func (*FluxConfiguration) UnmarshalJSON

func (f *FluxConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FluxConfiguration.

type FluxConfigurationPatch

type FluxConfigurationPatch struct {
	// Updatable properties of an Flux Configuration Patch Request
	Properties *FluxConfigurationPatchProperties
}

FluxConfigurationPatch - The Flux Configuration Patch Request object.

func (FluxConfigurationPatch) MarshalJSON

func (f FluxConfigurationPatch) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FluxConfigurationPatch.

func (*FluxConfigurationPatch) UnmarshalJSON

func (f *FluxConfigurationPatch) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FluxConfigurationPatch.

type FluxConfigurationPatchProperties

type FluxConfigurationPatchProperties struct {
	// Parameters to reconcile to the AzureBlob source kind type.
	AzureBlob *AzureBlobPatchDefinition

	// Parameters to reconcile to the Bucket source kind type.
	Bucket *BucketPatchDefinition

	// Key-value pairs of protected configuration settings for the configuration
	ConfigurationProtectedSettings map[string]*string

	// Parameters to reconcile to the GitRepository source kind type.
	GitRepository *GitRepositoryPatchDefinition

	// Array of kustomizations used to reconcile the artifact pulled by the source type on the cluster.
	Kustomizations map[string]*KustomizationPatchDefinition

	// Source Kind to pull the configuration data from.
	SourceKind *SourceKindType

	// Whether this configuration should suspend its reconciliation of its kustomizations and sources.
	Suspend *bool
}

FluxConfigurationPatchProperties - Updatable properties of an Flux Configuration Patch Request

func (FluxConfigurationPatchProperties) MarshalJSON

func (f FluxConfigurationPatchProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FluxConfigurationPatchProperties.

func (*FluxConfigurationPatchProperties) UnmarshalJSON

func (f *FluxConfigurationPatchProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FluxConfigurationPatchProperties.

type FluxConfigurationProperties

type FluxConfigurationProperties struct {
	// Parameters to reconcile to the AzureBlob source kind type.
	AzureBlob *AzureBlobDefinition

	// Parameters to reconcile to the Bucket source kind type.
	Bucket *BucketDefinition

	// Key-value pairs of protected configuration settings for the configuration
	ConfigurationProtectedSettings map[string]*string

	// Parameters to reconcile to the GitRepository source kind type.
	GitRepository *GitRepositoryDefinition

	// Array of kustomizations used to reconcile the artifact pulled by the source type on the cluster.
	Kustomizations map[string]*KustomizationDefinition

	// The namespace to which this configuration is installed to. Maximum of 253 lower case alphanumeric characters, hyphen and
	// period only.
	Namespace *string

	// Maximum duration to wait for flux configuration reconciliation. E.g PT1H, PT5M, P1D
	ReconciliationWaitDuration *string

	// Scope at which the operator will be installed.
	Scope *ScopeType

	// Source Kind to pull the configuration data from.
	SourceKind *SourceKindType

	// Whether this configuration should suspend its reconciliation of its kustomizations and sources.
	Suspend *bool

	// Whether flux configuration deployment should wait for cluster to reconcile the kustomizations.
	WaitForReconciliation *bool

	// READ-ONLY; Combined status of the Flux Kubernetes resources created by the fluxConfiguration or created by the managed
	// objects.
	ComplianceState *FluxComplianceState

	// READ-ONLY; Error message returned to the user in the case of provisioning failure.
	ErrorMessage *string

	// READ-ONLY; Status of the creation of the fluxConfiguration.
	ProvisioningState *ProvisioningState

	// READ-ONLY; Public Key associated with this fluxConfiguration (either generated within the cluster or provided by the user).
	RepositoryPublicKey *string

	// READ-ONLY; Branch and/or SHA of the source commit synced with the cluster.
	SourceSyncedCommitID *string

	// READ-ONLY; Datetime the fluxConfiguration synced its source on the cluster.
	SourceUpdatedAt *time.Time

	// READ-ONLY; Datetime the fluxConfiguration synced its status on the cluster with Azure.
	StatusUpdatedAt *time.Time

	// READ-ONLY; Statuses of the Flux Kubernetes resources created by the fluxConfiguration or created by the managed objects
	// provisioned by the fluxConfiguration.
	Statuses []*ObjectStatusDefinition
}

FluxConfigurationProperties - Properties to create a Flux Configuration resource

func (FluxConfigurationProperties) MarshalJSON

func (f FluxConfigurationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FluxConfigurationProperties.

func (*FluxConfigurationProperties) UnmarshalJSON

func (f *FluxConfigurationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FluxConfigurationProperties.

type FluxConfigurationsClient

type FluxConfigurationsClient struct {
	// contains filtered or unexported fields
}

FluxConfigurationsClient contains the methods for the FluxConfigurations group. Don't use this type directly, use NewFluxConfigurationsClient() instead.

func NewFluxConfigurationsClient

func NewFluxConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FluxConfigurationsClient, error)

NewFluxConfigurationsClient creates a new instance of FluxConfigurationsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FluxConfigurationsClient) BeginCreateOrUpdate

func (client *FluxConfigurationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, fluxConfigurationName string, fluxConfiguration FluxConfiguration, options *FluxConfigurationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[FluxConfigurationsClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create a new Kubernetes Flux Configuration. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • fluxConfigurationName - Name of the Flux Configuration.
  • fluxConfiguration - Properties necessary to Create a FluxConfiguration.
  • options - FluxConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the FluxConfigurationsClient.BeginCreateOrUpdate method.
Example (CreateFluxConfiguration)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/CreateFluxConfiguration.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFluxConfigurationsClient().BeginCreateOrUpdate(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "srs-fluxconfig", armkubernetesconfiguration.FluxConfiguration{
	Properties: &armkubernetesconfiguration.FluxConfigurationProperties{
		GitRepository: &armkubernetesconfiguration.GitRepositoryDefinition{
			HTTPSCACert: to.Ptr("ZXhhbXBsZWNlcnRpZmljYXRl"),
			RepositoryRef: &armkubernetesconfiguration.RepositoryRefDefinition{
				Branch: to.Ptr("master"),
			},
			SyncIntervalInSeconds: to.Ptr[int64](600),
			TimeoutInSeconds:      to.Ptr[int64](600),
			URL:                   to.Ptr("https://github.com/Azure/arc-k8s-demo"),
		},
		Kustomizations: map[string]*armkubernetesconfiguration.KustomizationDefinition{
			"srs-kustomization1": {
				Path:      to.Ptr("./test/path"),
				DependsOn: []*string{},
				PostBuild: &armkubernetesconfiguration.PostBuildDefinition{
					Substitute: map[string]*string{
						"cluster_env":   to.Ptr("prod"),
						"replica_count": to.Ptr("2"),
					},
					SubstituteFrom: []*armkubernetesconfiguration.SubstituteFromDefinition{
						{
							Name:     to.Ptr("cluster-test"),
							Kind:     to.Ptr("ConfigMap"),
							Optional: to.Ptr(true),
						}},
				},
				SyncIntervalInSeconds: to.Ptr[int64](600),
				TimeoutInSeconds:      to.Ptr[int64](600),
				Wait:                  to.Ptr(true),
			},
			"srs-kustomization2": {
				Path: to.Ptr("./other/test/path"),
				DependsOn: []*string{
					to.Ptr("srs-kustomization1")},
				PostBuild: &armkubernetesconfiguration.PostBuildDefinition{
					SubstituteFrom: []*armkubernetesconfiguration.SubstituteFromDefinition{
						{
							Name:     to.Ptr("cluster-values"),
							Kind:     to.Ptr("ConfigMap"),
							Optional: to.Ptr(true),
						},
						{
							Name:     to.Ptr("secret-name"),
							Kind:     to.Ptr("Secret"),
							Optional: to.Ptr(false),
						}},
				},
				Prune:                  to.Ptr(false),
				RetryIntervalInSeconds: to.Ptr[int64](600),
				SyncIntervalInSeconds:  to.Ptr[int64](600),
				TimeoutInSeconds:       to.Ptr[int64](600),
				Wait:                   to.Ptr(false),
			},
		},
		Namespace:                  to.Ptr("srs-namespace"),
		ReconciliationWaitDuration: to.Ptr("PT30M"),
		Scope:                      to.Ptr(armkubernetesconfiguration.ScopeTypeCluster),
		SourceKind:                 to.Ptr(armkubernetesconfiguration.SourceKindTypeGitRepository),
		Suspend:                    to.Ptr(false),
		WaitForReconciliation:      to.Ptr(true),
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.FluxConfiguration = armkubernetesconfiguration.FluxConfiguration{
// 	Name: to.Ptr("srs-fluxconfig"),
// 	Type: to.Ptr("Microsoft.KubernetesConfiguration/fluxConfigurations"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/srs-fluxconfig"),
// 	Properties: &armkubernetesconfiguration.FluxConfigurationProperties{
// 		ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 		ErrorMessage: to.Ptr(""),
// 		GitRepository: &armkubernetesconfiguration.GitRepositoryDefinition{
// 			HTTPSCACert: to.Ptr("ZXhhbXBsZWNlcnRpZmljYXRl"),
// 			RepositoryRef: &armkubernetesconfiguration.RepositoryRefDefinition{
// 				Branch: to.Ptr("master"),
// 			},
// 			SyncIntervalInSeconds: to.Ptr[int64](600),
// 			TimeoutInSeconds: to.Ptr[int64](600),
// 			URL: to.Ptr("https://github.com/Azure/arc-k8s-demo"),
// 		},
// 		Kustomizations: map[string]*armkubernetesconfiguration.KustomizationDefinition{
// 			"srs-kustomization1": &armkubernetesconfiguration.KustomizationDefinition{
// 				Name: to.Ptr("srs-kustomization1"),
// 				Path: to.Ptr("./test/path"),
// 				DependsOn: []*string{
// 				},
// 				PostBuild: &armkubernetesconfiguration.PostBuildDefinition{
// 					Substitute: map[string]*string{
// 						"cluster_env": to.Ptr("prod"),
// 						"replica_count": to.Ptr("2"),
// 					},
// 					SubstituteFrom: []*armkubernetesconfiguration.SubstituteFromDefinition{
// 						{
// 							Name: to.Ptr("cluster-test"),
// 							Kind: to.Ptr("ConfigMap"),
// 							Optional: to.Ptr(true),
// 					}},
// 				},
// 				SyncIntervalInSeconds: to.Ptr[int64](600),
// 				TimeoutInSeconds: to.Ptr[int64](600),
// 				Wait: to.Ptr(true),
// 			},
// 			"srs-kustomization2": &armkubernetesconfiguration.KustomizationDefinition{
// 				Name: to.Ptr("srs-kustomization2"),
// 				Path: to.Ptr("./other/test/path"),
// 				DependsOn: []*string{
// 					to.Ptr("srs-kustomization1")},
// 					PostBuild: &armkubernetesconfiguration.PostBuildDefinition{
// 						SubstituteFrom: []*armkubernetesconfiguration.SubstituteFromDefinition{
// 							{
// 								Name: to.Ptr("cluster-values"),
// 								Kind: to.Ptr("ConfigMap"),
// 								Optional: to.Ptr(true),
// 							},
// 							{
// 								Name: to.Ptr("secret-name"),
// 								Kind: to.Ptr("Secret"),
// 								Optional: to.Ptr(false),
// 						}},
// 					},
// 					Prune: to.Ptr(false),
// 					RetryIntervalInSeconds: to.Ptr[int64](600),
// 					SyncIntervalInSeconds: to.Ptr[int64](600),
// 					TimeoutInSeconds: to.Ptr[int64](600),
// 					Wait: to.Ptr(false),
// 				},
// 			},
// 			Namespace: to.Ptr("srs-namespace"),
// 			ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
// 			RepositoryPublicKey: to.Ptr("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiNkrANrhtRy+02Xc7b5bwvgOKvQMbqUQaXeB6FCDkbLaavw/zO/vIhIBEQu+vbBt6IlI/Pui0rMFr5JjA8Vwwd85oabzU07TPzbFvKSU9eCXqWRKWf0DHNQj/kxPJNtyPYFv3lGoiZZ6QzejOxlW/lPPokUePN0oI10daWwqznm2q0Cmh1EgPUYveq3J5KCWncZXCdwY36zWYulCWFaqazoaGy4kxcqlVy+mPjE/UJthaoLm3mq+23uhlmmfCc1j7W6+H6fcOwTyOtcbimxz2Ug8HlTzSTXBPtEe7qyllMyk62EPNUUq4bVoVsex9sKBK6/hW0Cn2P5i5jslUPCQF"),
// 			Scope: to.Ptr(armkubernetesconfiguration.ScopeTypeCluster),
// 			SourceKind: to.Ptr(armkubernetesconfiguration.SourceKindTypeGitRepository),
// 			SourceSyncedCommitID: to.Ptr("master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590"),
// 			SourceUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
// 			StatusUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
// 			Statuses: []*armkubernetesconfiguration.ObjectStatusDefinition{
// 				{
// 					Name: to.Ptr("srs-fluxconfig"),
// 					ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 					Kind: to.Ptr("GitRepository"),
// 					StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 						{
// 							Type: to.Ptr("Ready"),
// 							LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 							Message: to.Ptr("'Fetched revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 							Reason: to.Ptr("GitOperationSucceed"),
// 							Status: to.Ptr("True"),
// 					}},
// 				},
// 				{
// 					Name: to.Ptr("srs-fluxconfig-srs-kustomization1"),
// 					ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 					HelmReleaseProperties: &armkubernetesconfiguration.HelmReleasePropertiesDefinition{
// 						HelmChartRef: &armkubernetesconfiguration.ObjectReferenceDefinition{
// 							Name: to.Ptr("myname"),
// 							Namespace: to.Ptr("mynamespace"),
// 						},
// 						LastRevisionApplied: to.Ptr[int64](1),
// 					},
// 					Kind: to.Ptr("Kustomization"),
// 					StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 						{
// 							Type: to.Ptr("Ready"),
// 							LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 							Message: to.Ptr("'Applied revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 							Reason: to.Ptr("ReconciliationSucceeded"),
// 							Status: to.Ptr("True"),
// 					}},
// 				},
// 				{
// 					Name: to.Ptr("srs-fluxconfig-srs-kustomization2"),
// 					ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 					HelmReleaseProperties: &armkubernetesconfiguration.HelmReleasePropertiesDefinition{
// 						HelmChartRef: &armkubernetesconfiguration.ObjectReferenceDefinition{
// 							Name: to.Ptr("myname"),
// 							Namespace: to.Ptr("mynamespace"),
// 						},
// 						LastRevisionApplied: to.Ptr[int64](1),
// 					},
// 					Kind: to.Ptr("Kustomization"),
// 					StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 						{
// 							Type: to.Ptr("Ready"),
// 							LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 							Message: to.Ptr("'Applied revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 							Reason: to.Ptr("ReconciliationSucceeded"),
// 							Status: to.Ptr("True"),
// 					}},
// 			}},
// 			Suspend: to.Ptr(false),
// 		},
// 		SystemData: &armkubernetesconfiguration.SystemData{
// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T05:10:57.027Z"); return t}()),
// 			CreatedBy: to.Ptr("string"),
// 			CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-19T05:10:57.027Z"); return t}()),
// 			LastModifiedBy: to.Ptr("string"),
// 			LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 		},
// 	}
Output:

Example (CreateFluxConfigurationWithBucketSourceKind)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/CreateFluxConfigurationWithBucket.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFluxConfigurationsClient().BeginCreateOrUpdate(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "srs-fluxconfig", armkubernetesconfiguration.FluxConfiguration{
	Properties: &armkubernetesconfiguration.FluxConfigurationProperties{
		Bucket: &armkubernetesconfiguration.BucketDefinition{
			AccessKey:             to.Ptr("fluxminiotest"),
			BucketName:            to.Ptr("flux"),
			SyncIntervalInSeconds: to.Ptr[int64](1000),
			TimeoutInSeconds:      to.Ptr[int64](1000),
			URL:                   to.Ptr("https://fluxminiotest.az.minio.io"),
		},
		Kustomizations: map[string]*armkubernetesconfiguration.KustomizationDefinition{
			"srs-kustomization1": {
				Path:                  to.Ptr("./test/path"),
				DependsOn:             []*string{},
				SyncIntervalInSeconds: to.Ptr[int64](600),
				TimeoutInSeconds:      to.Ptr[int64](600),
			},
			"srs-kustomization2": {
				Path: to.Ptr("./other/test/path"),
				DependsOn: []*string{
					to.Ptr("srs-kustomization1")},
				Prune:                  to.Ptr(false),
				RetryIntervalInSeconds: to.Ptr[int64](600),
				SyncIntervalInSeconds:  to.Ptr[int64](600),
				TimeoutInSeconds:       to.Ptr[int64](600),
			},
		},
		Namespace:  to.Ptr("srs-namespace"),
		Scope:      to.Ptr(armkubernetesconfiguration.ScopeTypeCluster),
		SourceKind: to.Ptr(armkubernetesconfiguration.SourceKindTypeBucket),
		Suspend:    to.Ptr(false),
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.FluxConfiguration = armkubernetesconfiguration.FluxConfiguration{
// 	Name: to.Ptr("srs-fluxconfig"),
// 	Type: to.Ptr("Microsoft.KubernetesConfiguration/fluxConfigurations"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/srs-fluxconfig"),
// 	Properties: &armkubernetesconfiguration.FluxConfigurationProperties{
// 		Bucket: &armkubernetesconfiguration.BucketDefinition{
// 			AccessKey: to.Ptr("fluxminiotest"),
// 			BucketName: to.Ptr("flux"),
// 			SyncIntervalInSeconds: to.Ptr[int64](1000),
// 			TimeoutInSeconds: to.Ptr[int64](1000),
// 			URL: to.Ptr("https://fluxminiotest.az.minio.io"),
// 		},
// 		ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 		ErrorMessage: to.Ptr(""),
// 		Kustomizations: map[string]*armkubernetesconfiguration.KustomizationDefinition{
// 			"srs-kustomization1": &armkubernetesconfiguration.KustomizationDefinition{
// 				Name: to.Ptr("srs-kustomization1"),
// 				Path: to.Ptr("./test/path"),
// 				DependsOn: []*string{
// 				},
// 				SyncIntervalInSeconds: to.Ptr[int64](600),
// 				TimeoutInSeconds: to.Ptr[int64](600),
// 			},
// 			"srs-kustomization2": &armkubernetesconfiguration.KustomizationDefinition{
// 				Name: to.Ptr("srs-kustomization2"),
// 				Path: to.Ptr("./other/test/path"),
// 				DependsOn: []*string{
// 					to.Ptr("srs-kustomization1")},
// 					Prune: to.Ptr(false),
// 					RetryIntervalInSeconds: to.Ptr[int64](600),
// 					SyncIntervalInSeconds: to.Ptr[int64](600),
// 					TimeoutInSeconds: to.Ptr[int64](600),
// 				},
// 			},
// 			Namespace: to.Ptr("srs-namespace"),
// 			ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
// 			RepositoryPublicKey: to.Ptr(""),
// 			Scope: to.Ptr(armkubernetesconfiguration.ScopeTypeCluster),
// 			SourceKind: to.Ptr(armkubernetesconfiguration.SourceKindTypeBucket),
// 			SourceSyncedCommitID: to.Ptr("0ba6f0d30760d567de0bac86c8c4eec13ce1a590"),
// 			SourceUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
// 			StatusUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
// 			Statuses: []*armkubernetesconfiguration.ObjectStatusDefinition{
// 				{
// 					Name: to.Ptr("srs-fluxconfig"),
// 					ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 					Kind: to.Ptr("Bucket"),
// 					StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 						{
// 							Type: to.Ptr("Ready"),
// 							LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-04T07:17:30.000Z"); return t}()),
// 							Message: to.Ptr("stored artifact for revision '55396be14f18fa2b977c1f22becef26a94d1d9a7ccb1e19d12f9cac52d757a84'"),
// 							Reason: to.Ptr("Succeeded"),
// 							Status: to.Ptr("True"),
// 					}},
// 				},
// 				{
// 					Name: to.Ptr("srs-fluxconfig-srs-kustomization1"),
// 					ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 					HelmReleaseProperties: &armkubernetesconfiguration.HelmReleasePropertiesDefinition{
// 						HelmChartRef: &armkubernetesconfiguration.ObjectReferenceDefinition{
// 							Name: to.Ptr("myname"),
// 							Namespace: to.Ptr("mynamespace"),
// 						},
// 						LastRevisionApplied: to.Ptr[int64](1),
// 					},
// 					Kind: to.Ptr("Kustomization"),
// 					StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 						{
// 							Type: to.Ptr("Ready"),
// 							LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 							Message: to.Ptr("'Applied revision: 0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 							Reason: to.Ptr("ReconciliationSucceeded"),
// 							Status: to.Ptr("True"),
// 					}},
// 				},
// 				{
// 					Name: to.Ptr("srs-fluxconfig-srs-kustomization2"),
// 					ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 					HelmReleaseProperties: &armkubernetesconfiguration.HelmReleasePropertiesDefinition{
// 						HelmChartRef: &armkubernetesconfiguration.ObjectReferenceDefinition{
// 							Name: to.Ptr("myname"),
// 							Namespace: to.Ptr("mynamespace"),
// 						},
// 						LastRevisionApplied: to.Ptr[int64](1),
// 					},
// 					Kind: to.Ptr("Kustomization"),
// 					StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 						{
// 							Type: to.Ptr("Ready"),
// 							LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 							Message: to.Ptr("'Applied revision: 0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 							Reason: to.Ptr("ReconciliationSucceeded"),
// 							Status: to.Ptr("True"),
// 					}},
// 			}},
// 			Suspend: to.Ptr(false),
// 		},
// 		SystemData: &armkubernetesconfiguration.SystemData{
// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T05:10:57.027Z"); return t}()),
// 			CreatedBy: to.Ptr("string"),
// 			CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-19T05:10:57.027Z"); return t}()),
// 			LastModifiedBy: to.Ptr("string"),
// 			LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 		},
// 	}
Output:

func (*FluxConfigurationsClient) BeginDelete

func (client *FluxConfigurationsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, fluxConfigurationName string, options *FluxConfigurationsClientBeginDeleteOptions) (*runtime.Poller[FluxConfigurationsClientDeleteResponse], error)

BeginDelete - This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • fluxConfigurationName - Name of the Flux Configuration.
  • options - FluxConfigurationsClientBeginDeleteOptions contains the optional parameters for the FluxConfigurationsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/DeleteFluxConfiguration.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFluxConfigurationsClient().BeginDelete(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "srs-fluxconfig", &armkubernetesconfiguration.FluxConfigurationsClientBeginDeleteOptions{ForceDelete: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*FluxConfigurationsClient) BeginUpdate

func (client *FluxConfigurationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, fluxConfigurationName string, fluxConfigurationPatch FluxConfigurationPatch, options *FluxConfigurationsClientBeginUpdateOptions) (*runtime.Poller[FluxConfigurationsClientUpdateResponse], error)

BeginUpdate - Update an existing Kubernetes Flux Configuration. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • fluxConfigurationName - Name of the Flux Configuration.
  • fluxConfigurationPatch - Properties to Patch in an existing Flux Configuration.
  • options - FluxConfigurationsClientBeginUpdateOptions contains the optional parameters for the FluxConfigurationsClient.BeginUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/PatchFluxConfiguration.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFluxConfigurationsClient().BeginUpdate(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "srs-fluxconfig", armkubernetesconfiguration.FluxConfigurationPatch{
	Properties: &armkubernetesconfiguration.FluxConfigurationPatchProperties{
		GitRepository: &armkubernetesconfiguration.GitRepositoryPatchDefinition{
			URL: to.Ptr("https://github.com/jonathan-innis/flux2-kustomize-helm-example.git"),
		},
		Kustomizations: map[string]*armkubernetesconfiguration.KustomizationPatchDefinition{
			"srs-kustomization1": nil,
			"srs-kustomization2": {
				Path:                  to.Ptr("./test/alt-path"),
				SyncIntervalInSeconds: to.Ptr[int64](300),
			},
			"srs-kustomization3": {
				Path:                  to.Ptr("./test/another-path"),
				SyncIntervalInSeconds: to.Ptr[int64](300),
			},
		},
		Suspend: to.Ptr(true),
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.FluxConfiguration = armkubernetesconfiguration.FluxConfiguration{
// 	Properties: &armkubernetesconfiguration.FluxConfigurationProperties{
// 		ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 		ErrorMessage: to.Ptr(""),
// 		GitRepository: &armkubernetesconfiguration.GitRepositoryDefinition{
// 			RepositoryRef: &armkubernetesconfiguration.RepositoryRefDefinition{
// 				Branch: to.Ptr("master"),
// 			},
// 			SyncIntervalInSeconds: to.Ptr[int64](600),
// 			TimeoutInSeconds: to.Ptr[int64](600),
// 			URL: to.Ptr("https://github.com/jonathan-innis/flux2-kustomize-helm-example.git"),
// 		},
// 		Kustomizations: map[string]*armkubernetesconfiguration.KustomizationDefinition{
// 			"srs-kustomization2": &armkubernetesconfiguration.KustomizationDefinition{
// 				Path: to.Ptr("./test/alt-path"),
// 				Prune: to.Ptr(false),
// 				RetryIntervalInSeconds: to.Ptr[int64](600),
// 				SyncIntervalInSeconds: to.Ptr[int64](300),
// 				TimeoutInSeconds: to.Ptr[int64](600),
// 			},
// 			"srs-kustomization3": &armkubernetesconfiguration.KustomizationDefinition{
// 				Path: to.Ptr("./test/another-path"),
// 				Prune: to.Ptr(false),
// 				SyncIntervalInSeconds: to.Ptr[int64](300),
// 				TimeoutInSeconds: to.Ptr[int64](600),
// 			},
// 		},
// 		Namespace: to.Ptr("srs-namespace"),
// 		ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
// 		RepositoryPublicKey: to.Ptr("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiNkrANrhtRy+02Xc7b5bwvgOKvQMbqUQaXeB6FCDkbLaavw/zO/vIhIBEQu+vbBt6IlI/Pui0rMFr5JjA8Vwwd85oabzU07TPzbFvKSU9eCXqWRKWf0DHNQj/kxPJNtyPYFv3lGoiZZ6QzejOxlW/lPPokUePN0oI10daWwqznm2q0Cmh1EgPUYveq3J5KCWncZXCdwY36zWYulCWFaqazoaGy4kxcqlVy+mPjE/UJthaoLm3mq+23uhlmmfCc1j7W6+H6fcOwTyOtcbimxz2Ug8HlTzSTXBPtEe7qyllMyk62EPNUUq4bVoVsex9sKBK6/hW0Cn2P5i5jslUPCQF"),
// 		Scope: to.Ptr(armkubernetesconfiguration.ScopeTypeCluster),
// 		SourceKind: to.Ptr(armkubernetesconfiguration.SourceKindTypeGitRepository),
// 		SourceSyncedCommitID: to.Ptr("master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590"),
// 		SourceUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
// 		StatusUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
// 		Statuses: []*armkubernetesconfiguration.ObjectStatusDefinition{
// 			{
// 				Name: to.Ptr("srs-fluxconfig"),
// 				ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 				Kind: to.Ptr("GitRepository"),
// 				StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 					{
// 						Type: to.Ptr("Ready"),
// 						LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 						Message: to.Ptr("'Fetched revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 						Reason: to.Ptr("GitOperationSucceed"),
// 						Status: to.Ptr("True"),
// 				}},
// 			},
// 			{
// 				Name: to.Ptr("srs-fluxconfig-srs-kustomization1"),
// 				ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 				HelmReleaseProperties: &armkubernetesconfiguration.HelmReleasePropertiesDefinition{
// 					HelmChartRef: &armkubernetesconfiguration.ObjectReferenceDefinition{
// 						Name: to.Ptr("myname"),
// 						Namespace: to.Ptr("mynamespace"),
// 					},
// 					LastRevisionApplied: to.Ptr[int64](1),
// 				},
// 				Kind: to.Ptr("Kustomization"),
// 				StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 					{
// 						Type: to.Ptr("Ready"),
// 						LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 						Message: to.Ptr("'Applied revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 						Reason: to.Ptr("ReconciliationSucceeded"),
// 						Status: to.Ptr("True"),
// 				}},
// 			},
// 			{
// 				Name: to.Ptr("srs-fluxconfig-srs-kustomization2"),
// 				ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 				HelmReleaseProperties: &armkubernetesconfiguration.HelmReleasePropertiesDefinition{
// 					HelmChartRef: &armkubernetesconfiguration.ObjectReferenceDefinition{
// 						Name: to.Ptr("myname"),
// 						Namespace: to.Ptr("mynamespace"),
// 					},
// 					LastRevisionApplied: to.Ptr[int64](1),
// 				},
// 				Kind: to.Ptr("Kustomization"),
// 				StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 					{
// 						Type: to.Ptr("Ready"),
// 						LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 						Message: to.Ptr("'Applied revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 						Reason: to.Ptr("ReconciliationSucceeded"),
// 						Status: to.Ptr("True"),
// 				}},
// 		}},
// 		Suspend: to.Ptr(false),
// 	},
// }
Output:

func (*FluxConfigurationsClient) Get

func (client *FluxConfigurationsClient) Get(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, fluxConfigurationName string, options *FluxConfigurationsClientGetOptions) (FluxConfigurationsClientGetResponse, error)

Get - Gets details of the Flux Configuration. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • fluxConfigurationName - Name of the Flux Configuration.
  • options - FluxConfigurationsClientGetOptions contains the optional parameters for the FluxConfigurationsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/GetFluxConfiguration.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFluxConfigurationsClient().Get(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "srs-fluxconfig", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.FluxConfiguration = armkubernetesconfiguration.FluxConfiguration{
// 	Name: to.Ptr("srs-fluxconfig"),
// 	Type: to.Ptr("Microsoft.KubernetesConfiguration/fluxConfigurations"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/srs-fluxconfig"),
// 	Properties: &armkubernetesconfiguration.FluxConfigurationProperties{
// 		ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 		ErrorMessage: to.Ptr(""),
// 		GitRepository: &armkubernetesconfiguration.GitRepositoryDefinition{
// 			RepositoryRef: &armkubernetesconfiguration.RepositoryRefDefinition{
// 				Branch: to.Ptr("master"),
// 			},
// 			SyncIntervalInSeconds: to.Ptr[int64](600),
// 			TimeoutInSeconds: to.Ptr[int64](600),
// 			URL: to.Ptr("https://github.com/Azure/arc-k8s-demo"),
// 		},
// 		Kustomizations: map[string]*armkubernetesconfiguration.KustomizationDefinition{
// 			"srs-kustomization1": &armkubernetesconfiguration.KustomizationDefinition{
// 				Name: to.Ptr("srs-kustomization1"),
// 				Path: to.Ptr("./test/path"),
// 				DependsOn: []*string{
// 				},
// 				PostBuild: &armkubernetesconfiguration.PostBuildDefinition{
// 					Substitute: map[string]*string{
// 						"cluster_env": to.Ptr("prod"),
// 						"replica_count": to.Ptr("2"),
// 					},
// 					SubstituteFrom: []*armkubernetesconfiguration.SubstituteFromDefinition{
// 						{
// 							Name: to.Ptr("cluster-test"),
// 							Kind: to.Ptr("ConfigMap"),
// 							Optional: to.Ptr(true),
// 					}},
// 				},
// 				SyncIntervalInSeconds: to.Ptr[int64](600),
// 				TimeoutInSeconds: to.Ptr[int64](600),
// 				Wait: to.Ptr(true),
// 			},
// 			"srs-kustomization2": &armkubernetesconfiguration.KustomizationDefinition{
// 				Name: to.Ptr("srs-kustomization2"),
// 				Path: to.Ptr("./other/test/path"),
// 				DependsOn: []*string{
// 					to.Ptr("srs-kustomization1")},
// 					PostBuild: &armkubernetesconfiguration.PostBuildDefinition{
// 						SubstituteFrom: []*armkubernetesconfiguration.SubstituteFromDefinition{
// 							{
// 								Name: to.Ptr("cluster-values"),
// 								Kind: to.Ptr("ConfigMap"),
// 								Optional: to.Ptr(true),
// 							},
// 							{
// 								Name: to.Ptr("secret-name"),
// 								Kind: to.Ptr("Secret"),
// 								Optional: to.Ptr(false),
// 						}},
// 					},
// 					Prune: to.Ptr(false),
// 					RetryIntervalInSeconds: to.Ptr[int64](600),
// 					SyncIntervalInSeconds: to.Ptr[int64](600),
// 					TimeoutInSeconds: to.Ptr[int64](600),
// 					Wait: to.Ptr(false),
// 				},
// 			},
// 			Namespace: to.Ptr("srs-namespace"),
// 			ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
// 			RepositoryPublicKey: to.Ptr("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiNkrANrhtRy+02Xc7b5bwvgOKvQMbqUQaXeB6FCDkbLaavw/zO/vIhIBEQu+vbBt6IlI/Pui0rMFr5JjA8Vwwd85oabzU07TPzbFvKSU9eCXqWRKWf0DHNQj/kxPJNtyPYFv3lGoiZZ6QzejOxlW/lPPokUePN0oI10daWwqznm2q0Cmh1EgPUYveq3J5KCWncZXCdwY36zWYulCWFaqazoaGy4kxcqlVy+mPjE/UJthaoLm3mq+23uhlmmfCc1j7W6+H6fcOwTyOtcbimxz2Ug8HlTzSTXBPtEe7qyllMyk62EPNUUq4bVoVsex9sKBK6/hW0Cn2P5i5jslUPCQF"),
// 			Scope: to.Ptr(armkubernetesconfiguration.ScopeTypeCluster),
// 			SourceKind: to.Ptr(armkubernetesconfiguration.SourceKindTypeGitRepository),
// 			SourceSyncedCommitID: to.Ptr("master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590"),
// 			SourceUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
// 			StatusUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
// 			Statuses: []*armkubernetesconfiguration.ObjectStatusDefinition{
// 				{
// 					Name: to.Ptr("srs-fluxconfig"),
// 					ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 					Kind: to.Ptr("GitRepository"),
// 					StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 						{
// 							Type: to.Ptr("Ready"),
// 							LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 							Message: to.Ptr("'Fetched revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 							Reason: to.Ptr("GitOperationSucceed"),
// 							Status: to.Ptr("True"),
// 					}},
// 				},
// 				{
// 					Name: to.Ptr("srs-fluxconfig-srs-kustomization1"),
// 					AppliedBy: &armkubernetesconfiguration.ObjectReferenceDefinition{
// 						Name: to.Ptr("my-name"),
// 						Namespace: to.Ptr("my-namespace"),
// 					},
// 					ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 					HelmReleaseProperties: &armkubernetesconfiguration.HelmReleasePropertiesDefinition{
// 						HelmChartRef: &armkubernetesconfiguration.ObjectReferenceDefinition{
// 							Name: to.Ptr("myname"),
// 							Namespace: to.Ptr("mynamespace"),
// 						},
// 						LastRevisionApplied: to.Ptr[int64](1),
// 					},
// 					Kind: to.Ptr("Kustomization"),
// 					StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 						{
// 							Type: to.Ptr("Ready"),
// 							LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 							Message: to.Ptr("'Applied revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 							Reason: to.Ptr("ReconciliationSucceeded"),
// 							Status: to.Ptr("True"),
// 					}},
// 				},
// 				{
// 					Name: to.Ptr("srs-fluxconfig-srs-kustomization2"),
// 					ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
// 					HelmReleaseProperties: &armkubernetesconfiguration.HelmReleasePropertiesDefinition{
// 						HelmChartRef: &armkubernetesconfiguration.ObjectReferenceDefinition{
// 							Name: to.Ptr("myname"),
// 							Namespace: to.Ptr("mynamespace"),
// 						},
// 						LastRevisionApplied: to.Ptr[int64](1),
// 					},
// 					Kind: to.Ptr("Kustomization"),
// 					StatusConditions: []*armkubernetesconfiguration.ObjectStatusConditionDefinition{
// 						{
// 							Type: to.Ptr("Ready"),
// 							LastTransitionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:12:40.000Z"); return t}()),
// 							Message: to.Ptr("'Applied revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'"),
// 							Reason: to.Ptr("ReconciliationSucceeded"),
// 							Status: to.Ptr("True"),
// 					}},
// 			}},
// 			Suspend: to.Ptr(false),
// 		},
// 		SystemData: &armkubernetesconfiguration.SystemData{
// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T05:10:57.027Z"); return t}()),
// 			CreatedBy: to.Ptr("string"),
// 			CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-19T05:10:57.027Z"); return t}()),
// 			LastModifiedBy: to.Ptr("string"),
// 			LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 		},
// 	}
Output:

func (*FluxConfigurationsClient) NewListPager

func (client *FluxConfigurationsClient) NewListPager(resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, options *FluxConfigurationsClientListOptions) *runtime.Pager[FluxConfigurationsClientListResponse]

NewListPager - List all Flux Configurations.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • options - FluxConfigurationsClientListOptions contains the optional parameters for the FluxConfigurationsClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/ListFluxConfigurations.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewFluxConfigurationsClient().NewListPager("rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.FluxConfigurationsList = armkubernetesconfiguration.FluxConfigurationsList{
	// 	Value: []*armkubernetesconfiguration.FluxConfiguration{
	// 		{
	// 			Name: to.Ptr("srs-fluxconfig"),
	// 			Type: to.Ptr("Microsoft.KubernetesConfiguration/fluxConfigurations"),
	// 			ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/srs-fluxconfig"),
	// 			Properties: &armkubernetesconfiguration.FluxConfigurationProperties{
	// 				ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
	// 				ErrorMessage: to.Ptr(""),
	// 				GitRepository: &armkubernetesconfiguration.GitRepositoryDefinition{
	// 					RepositoryRef: &armkubernetesconfiguration.RepositoryRefDefinition{
	// 						Branch: to.Ptr("master"),
	// 					},
	// 					SyncIntervalInSeconds: to.Ptr[int64](600),
	// 					TimeoutInSeconds: to.Ptr[int64](600),
	// 					URL: to.Ptr("https://github.com/Azure/arc-k8s-demo"),
	// 				},
	// 				Kustomizations: map[string]*armkubernetesconfiguration.KustomizationDefinition{
	// 					"srs-kustomization1": &armkubernetesconfiguration.KustomizationDefinition{
	// 						Name: to.Ptr("srs-kustomization1"),
	// 						Path: to.Ptr("./test/path"),
	// 						DependsOn: []*string{
	// 						},
	// 						PostBuild: &armkubernetesconfiguration.PostBuildDefinition{
	// 							Substitute: map[string]*string{
	// 								"cluster_env": to.Ptr("prod"),
	// 								"replica_count": to.Ptr("2"),
	// 							},
	// 							SubstituteFrom: []*armkubernetesconfiguration.SubstituteFromDefinition{
	// 								{
	// 									Name: to.Ptr("cluster-test"),
	// 									Kind: to.Ptr("ConfigMap"),
	// 									Optional: to.Ptr(true),
	// 							}},
	// 						},
	// 						SyncIntervalInSeconds: to.Ptr[int64](600),
	// 						TimeoutInSeconds: to.Ptr[int64](600),
	// 						Wait: to.Ptr(true),
	// 					},
	// 					"srs-kustomization2": &armkubernetesconfiguration.KustomizationDefinition{
	// 						Name: to.Ptr("srs-kustomization2"),
	// 						Path: to.Ptr("./other/test/path"),
	// 						DependsOn: []*string{
	// 							to.Ptr("srs-kustomization1")},
	// 							PostBuild: &armkubernetesconfiguration.PostBuildDefinition{
	// 								SubstituteFrom: []*armkubernetesconfiguration.SubstituteFromDefinition{
	// 									{
	// 										Name: to.Ptr("cluster-values"),
	// 										Kind: to.Ptr("ConfigMap"),
	// 										Optional: to.Ptr(true),
	// 									},
	// 									{
	// 										Name: to.Ptr("secret-name"),
	// 										Kind: to.Ptr("Secret"),
	// 										Optional: to.Ptr(false),
	// 								}},
	// 							},
	// 							Prune: to.Ptr(false),
	// 							RetryIntervalInSeconds: to.Ptr[int64](600),
	// 							SyncIntervalInSeconds: to.Ptr[int64](600),
	// 							TimeoutInSeconds: to.Ptr[int64](600),
	// 							Wait: to.Ptr(false),
	// 						},
	// 					},
	// 					Namespace: to.Ptr("srs-namespace"),
	// 					ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
	// 					RepositoryPublicKey: to.Ptr("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiNkrANrhtRy+02Xc7b5bwvgOKvQMbqUQaXeB6FCDkbLaavw/zO/vIhIBEQu+vbBt6IlI/Pui0rMFr5JjA8Vwwd85oabzU07TPzbFvKSU9eCXqWRKWf0DHNQj/kxPJNtyPYFv3lGoiZZ6QzejOxlW/lPPokUePN0oI10daWwqznm2q0Cmh1EgPUYveq3J5KCWncZXCdwY36zWYulCWFaqazoaGy4kxcqlVy+mPjE/UJthaoLm3mq+23uhlmmfCc1j7W6+H6fcOwTyOtcbimxz2Ug8HlTzSTXBPtEe7qyllMyk62EPNUUq4bVoVsex9sKBK6/hW0Cn2P5i5jslUPCQF"),
	// 					Scope: to.Ptr(armkubernetesconfiguration.ScopeTypeCluster),
	// 					SourceKind: to.Ptr(armkubernetesconfiguration.SourceKindTypeGitRepository),
	// 					SourceSyncedCommitID: to.Ptr("master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590"),
	// 					SourceUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
	// 					StatusUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
	// 					Statuses: []*armkubernetesconfiguration.ObjectStatusDefinition{
	// 						{
	// 							Name: to.Ptr("srs-fluxconfig"),
	// 							ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
	// 							Kind: to.Ptr("GitRepository"),
	// 						},
	// 						{
	// 							Name: to.Ptr("srs-fluxconfig-srs-kustomization1"),
	// 							ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
	// 							Kind: to.Ptr("Kustomization"),
	// 						},
	// 						{
	// 							Name: to.Ptr("srs-fluxconfig-srs-kustomization2"),
	// 							ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
	// 							Kind: to.Ptr("Kustomization"),
	// 					}},
	// 					Suspend: to.Ptr(false),
	// 				},
	// 				SystemData: &armkubernetesconfiguration.SystemData{
	// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T05:10:57.027Z"); return t}()),
	// 					CreatedBy: to.Ptr("string"),
	// 					CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-19T05:10:57.027Z"); return t}()),
	// 					LastModifiedBy: to.Ptr("string"),
	// 					LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("srs-fluxconfig"),
	// 				Type: to.Ptr("Microsoft.KubernetesConfiguration/fluxConfigurations"),
	// 				ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/srs-fluxconfig"),
	// 				Properties: &armkubernetesconfiguration.FluxConfigurationProperties{
	// 					ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
	// 					ErrorMessage: to.Ptr(""),
	// 					GitRepository: &armkubernetesconfiguration.GitRepositoryDefinition{
	// 						RepositoryRef: &armkubernetesconfiguration.RepositoryRefDefinition{
	// 							Branch: to.Ptr("master"),
	// 						},
	// 						SyncIntervalInSeconds: to.Ptr[int64](600),
	// 						TimeoutInSeconds: to.Ptr[int64](600),
	// 						URL: to.Ptr("https://github.com/Azure/arc-k8s-demo"),
	// 					},
	// 					Kustomizations: map[string]*armkubernetesconfiguration.KustomizationDefinition{
	// 						"srs-kustomization1": &armkubernetesconfiguration.KustomizationDefinition{
	// 							Name: to.Ptr("srs-kustomization1"),
	// 							Path: to.Ptr("./test/path"),
	// 							DependsOn: []*string{
	// 							},
	// 							SyncIntervalInSeconds: to.Ptr[int64](600),
	// 							TimeoutInSeconds: to.Ptr[int64](600),
	// 						},
	// 						"srs-kustomization2": &armkubernetesconfiguration.KustomizationDefinition{
	// 							Name: to.Ptr("srs-kustomization2"),
	// 							Path: to.Ptr("./other/test/path"),
	// 							DependsOn: []*string{
	// 								to.Ptr("srs-kustomization1")},
	// 								Prune: to.Ptr(false),
	// 								RetryIntervalInSeconds: to.Ptr[int64](600),
	// 								SyncIntervalInSeconds: to.Ptr[int64](600),
	// 								TimeoutInSeconds: to.Ptr[int64](600),
	// 							},
	// 						},
	// 						Namespace: to.Ptr("srs-namespace"),
	// 						ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateSucceeded),
	// 						RepositoryPublicKey: to.Ptr("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiNkrANrhtRy+02Xc7b5bwvgOKvQMbqUQaXeB6FCDkbLaavw/zO/vIhIBEQu+vbBt6IlI/Pui0rMFr5JjA8Vwwd85oabzU07TPzbFvKSU9eCXqWRKWf0DHNQj/kxPJNtyPYFv3lGoiZZ6QzejOxlW/lPPokUePN0oI10daWwqznm2q0Cmh1EgPUYveq3J5KCWncZXCdwY36zWYulCWFaqazoaGy4kxcqlVy+mPjE/UJthaoLm3mq+23uhlmmfCc1j7W6+H6fcOwTyOtcbimxz2Ug8HlTzSTXBPtEe7qyllMyk62EPNUUq4bVoVsex9sKBK6/hW0Cn2P5i5jslUPCQF"),
	// 						Scope: to.Ptr(armkubernetesconfiguration.ScopeTypeCluster),
	// 						SourceKind: to.Ptr(armkubernetesconfiguration.SourceKindTypeGitRepository),
	// 						SourceSyncedCommitID: to.Ptr("master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590"),
	// 						SourceUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
	// 						StatusUpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T18:17:12.000Z"); return t}()),
	// 						Statuses: []*armkubernetesconfiguration.ObjectStatusDefinition{
	// 							{
	// 								Name: to.Ptr("srs-fluxconfig"),
	// 								ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
	// 								Kind: to.Ptr("GitRepository"),
	// 							},
	// 							{
	// 								Name: to.Ptr("srs-fluxconfig-srs-kustomization1"),
	// 								ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
	// 								Kind: to.Ptr("Kustomization"),
	// 							},
	// 							{
	// 								Name: to.Ptr("srs-fluxconfig-srs-kustomization2"),
	// 								ComplianceState: to.Ptr(armkubernetesconfiguration.FluxComplianceStateCompliant),
	// 								Kind: to.Ptr("Kustomization"),
	// 						}},
	// 						Suspend: to.Ptr(false),
	// 					},
	// 					SystemData: &armkubernetesconfiguration.SystemData{
	// 						CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-19T05:10:57.027Z"); return t}()),
	// 						CreatedBy: to.Ptr("string"),
	// 						CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 						LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-19T05:10:57.027Z"); return t}()),
	// 						LastModifiedBy: to.Ptr("string"),
	// 						LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 					},
	// 			}},
	// 		}
}
Output:

type FluxConfigurationsClientBeginCreateOrUpdateOptions

type FluxConfigurationsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FluxConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the FluxConfigurationsClient.BeginCreateOrUpdate method.

type FluxConfigurationsClientBeginDeleteOptions

type FluxConfigurationsClientBeginDeleteOptions struct {
	// Delete the extension resource in Azure - not the normal asynchronous delete.
	ForceDelete *bool

	// Resumes the LRO from the provided token.
	ResumeToken string
}

FluxConfigurationsClientBeginDeleteOptions contains the optional parameters for the FluxConfigurationsClient.BeginDelete method.

type FluxConfigurationsClientBeginUpdateOptions

type FluxConfigurationsClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FluxConfigurationsClientBeginUpdateOptions contains the optional parameters for the FluxConfigurationsClient.BeginUpdate method.

type FluxConfigurationsClientCreateOrUpdateResponse

type FluxConfigurationsClientCreateOrUpdateResponse struct {
	// The Flux Configuration object returned in Get & Put response.
	FluxConfiguration
}

FluxConfigurationsClientCreateOrUpdateResponse contains the response from method FluxConfigurationsClient.BeginCreateOrUpdate.

type FluxConfigurationsClientDeleteResponse

type FluxConfigurationsClientDeleteResponse struct {
}

FluxConfigurationsClientDeleteResponse contains the response from method FluxConfigurationsClient.BeginDelete.

type FluxConfigurationsClientGetOptions

type FluxConfigurationsClientGetOptions struct {
}

FluxConfigurationsClientGetOptions contains the optional parameters for the FluxConfigurationsClient.Get method.

type FluxConfigurationsClientGetResponse

type FluxConfigurationsClientGetResponse struct {
	// The Flux Configuration object returned in Get & Put response.
	FluxConfiguration
}

FluxConfigurationsClientGetResponse contains the response from method FluxConfigurationsClient.Get.

type FluxConfigurationsClientListOptions

type FluxConfigurationsClientListOptions struct {
}

FluxConfigurationsClientListOptions contains the optional parameters for the FluxConfigurationsClient.NewListPager method.

type FluxConfigurationsClientListResponse

type FluxConfigurationsClientListResponse struct {
	// Result of the request to list Flux Configurations. It contains a list of FluxConfiguration objects and a URL link to get
	// the next set of results.
	FluxConfigurationsList
}

FluxConfigurationsClientListResponse contains the response from method FluxConfigurationsClient.NewListPager.

type FluxConfigurationsClientUpdateResponse

type FluxConfigurationsClientUpdateResponse struct {
	// The Flux Configuration object returned in Get & Put response.
	FluxConfiguration
}

FluxConfigurationsClientUpdateResponse contains the response from method FluxConfigurationsClient.BeginUpdate.

type FluxConfigurationsList

type FluxConfigurationsList struct {
	// READ-ONLY; URL to get the next set of configuration objects, if any.
	NextLink *string

	// READ-ONLY; List of Flux Configurations within a Kubernetes cluster.
	Value []*FluxConfiguration
}

FluxConfigurationsList - Result of the request to list Flux Configurations. It contains a list of FluxConfiguration objects and a URL link to get the next set of results.

func (FluxConfigurationsList) MarshalJSON

func (f FluxConfigurationsList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FluxConfigurationsList.

func (*FluxConfigurationsList) UnmarshalJSON

func (f *FluxConfigurationsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FluxConfigurationsList.

type GitRepositoryDefinition

type GitRepositoryDefinition struct {
	// Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS
	HTTPSCACert *string

	// Plaintext HTTPS username used to access private git repositories over HTTPS
	HTTPSUser *string

	// Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided
	// configuration secrets.
	LocalAuthRef *string

	// The source reference for the GitRepository object.
	RepositoryRef *RepositoryRefDefinition

	// Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH
	SSHKnownHosts *string

	// The interval at which to re-reconcile the cluster git repository source with the remote.
	SyncIntervalInSeconds *int64

	// The maximum time to attempt to reconcile the cluster git repository source with the remote.
	TimeoutInSeconds *int64

	// The URL to sync for the flux configuration git repository.
	URL *string
}

GitRepositoryDefinition - Parameters to reconcile to the GitRepository source kind type.

func (GitRepositoryDefinition) MarshalJSON

func (g GitRepositoryDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GitRepositoryDefinition.

func (*GitRepositoryDefinition) UnmarshalJSON

func (g *GitRepositoryDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GitRepositoryDefinition.

type GitRepositoryPatchDefinition

type GitRepositoryPatchDefinition struct {
	// Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS
	HTTPSCACert *string

	// Plaintext HTTPS username used to access private git repositories over HTTPS
	HTTPSUser *string

	// Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided
	// configuration secrets.
	LocalAuthRef *string

	// The source reference for the GitRepository object.
	RepositoryRef *RepositoryRefDefinition

	// Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH
	SSHKnownHosts *string

	// The interval at which to re-reconcile the cluster git repository source with the remote.
	SyncIntervalInSeconds *int64

	// The maximum time to attempt to reconcile the cluster git repository source with the remote.
	TimeoutInSeconds *int64

	// The URL to sync for the flux configuration git repository.
	URL *string
}

GitRepositoryPatchDefinition - Parameters to reconcile to the GitRepository source kind type.

func (GitRepositoryPatchDefinition) MarshalJSON

func (g GitRepositoryPatchDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GitRepositoryPatchDefinition.

func (*GitRepositoryPatchDefinition) UnmarshalJSON

func (g *GitRepositoryPatchDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GitRepositoryPatchDefinition.

type HelmOperatorProperties

type HelmOperatorProperties struct {
	// Values override for the operator Helm chart.
	ChartValues *string

	// Version of the operator Helm chart.
	ChartVersion *string
}

HelmOperatorProperties - Properties for Helm operator.

func (HelmOperatorProperties) MarshalJSON

func (h HelmOperatorProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HelmOperatorProperties.

func (*HelmOperatorProperties) UnmarshalJSON

func (h *HelmOperatorProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HelmOperatorProperties.

type HelmReleasePropertiesDefinition

type HelmReleasePropertiesDefinition struct {
	// Total number of times that the HelmRelease failed to install or upgrade
	FailureCount *int64

	// The reference to the HelmChart object used as the source to this HelmRelease
	HelmChartRef *ObjectReferenceDefinition

	// Number of times that the HelmRelease failed to install
	InstallFailureCount *int64

	// The revision number of the last released object change
	LastRevisionApplied *int64

	// Number of times that the HelmRelease failed to upgrade
	UpgradeFailureCount *int64
}

HelmReleasePropertiesDefinition - Properties for HelmRelease objects

func (HelmReleasePropertiesDefinition) MarshalJSON

func (h HelmReleasePropertiesDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HelmReleasePropertiesDefinition.

func (*HelmReleasePropertiesDefinition) UnmarshalJSON

func (h *HelmReleasePropertiesDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HelmReleasePropertiesDefinition.

type Identity

type Identity struct {
	// The identity type.
	Type *string

	// READ-ONLY; The principal ID of resource identity.
	PrincipalID *string

	// READ-ONLY; The tenant ID of resource.
	TenantID *string
}

Identity for the resource.

func (Identity) MarshalJSON

func (i Identity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Identity.

func (*Identity) UnmarshalJSON

func (i *Identity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Identity.

type KustomizationDefinition

type KustomizationDefinition struct {
	// Specifies other Kustomizations that this Kustomization depends on. This Kustomization will not reconcile until all dependencies
	// have completed their reconciliation.
	DependsOn []*string

	// Enable/disable re-creating Kubernetes resources on the cluster when patching fails due to an immutable field change.
	Force *bool

	// The path in the source reference to reconcile on the cluster.
	Path *string

	// Used for variable substitution for this Kustomization after kustomize build.
	PostBuild *PostBuildDefinition

	// Enable/disable garbage collections of Kubernetes objects created by this Kustomization.
	Prune *bool

	// The interval at which to re-reconcile the Kustomization on the cluster in the event of failure on reconciliation.
	RetryIntervalInSeconds *int64

	// The interval at which to re-reconcile the Kustomization on the cluster.
	SyncIntervalInSeconds *int64

	// The maximum time to attempt to reconcile the Kustomization on the cluster.
	TimeoutInSeconds *int64

	// Enable/disable health check for all Kubernetes objects created by this Kustomization.
	Wait *bool

	// READ-ONLY; Name of the Kustomization, matching the key in the Kustomizations object map.
	Name *string
}

KustomizationDefinition - The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster.

func (KustomizationDefinition) MarshalJSON

func (k KustomizationDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type KustomizationDefinition.

func (*KustomizationDefinition) UnmarshalJSON

func (k *KustomizationDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type KustomizationDefinition.

type KustomizationPatchDefinition

type KustomizationPatchDefinition struct {
	// Specifies other Kustomizations that this Kustomization depends on. This Kustomization will not reconcile until all dependencies
	// have completed their reconciliation.
	DependsOn []*string

	// Enable/disable re-creating Kubernetes resources on the cluster when patching fails due to an immutable field change.
	Force *bool

	// The path in the source reference to reconcile on the cluster.
	Path *string

	// Used for variable substitution for this Kustomization after kustomize build.
	PostBuild *PostBuildDefinition

	// Enable/disable garbage collections of Kubernetes objects created by this Kustomization.
	Prune *bool

	// The interval at which to re-reconcile the Kustomization on the cluster in the event of failure on reconciliation.
	RetryIntervalInSeconds *int64

	// The interval at which to re-reconcile the Kustomization on the cluster.
	SyncIntervalInSeconds *int64

	// The maximum time to attempt to reconcile the Kustomization on the cluster.
	TimeoutInSeconds *int64

	// Enable/disable health check for all Kubernetes objects created by this Kustomization.
	Wait *bool
}

KustomizationPatchDefinition - The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster.

func (KustomizationPatchDefinition) MarshalJSON

func (k KustomizationPatchDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type KustomizationPatchDefinition.

func (*KustomizationPatchDefinition) UnmarshalJSON

func (k *KustomizationPatchDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type KustomizationPatchDefinition.

type KustomizationValidationType

type KustomizationValidationType string

KustomizationValidationType - Specify whether to validate the Kubernetes objects referenced in the Kustomization before applying them to the cluster.

const (
	KustomizationValidationTypeClient KustomizationValidationType = "client"
	KustomizationValidationTypeNone   KustomizationValidationType = "none"
	KustomizationValidationTypeServer KustomizationValidationType = "server"
)

func PossibleKustomizationValidationTypeValues

func PossibleKustomizationValidationTypeValues() []KustomizationValidationType

PossibleKustomizationValidationTypeValues returns the possible values for the KustomizationValidationType const type.

type LevelType

type LevelType string

LevelType - Level of the status.

const (
	LevelTypeError       LevelType = "Error"
	LevelTypeInformation LevelType = "Information"
	LevelTypeWarning     LevelType = "Warning"
)

func PossibleLevelTypeValues

func PossibleLevelTypeValues() []LevelType

PossibleLevelTypeValues returns the possible values for the LevelType const type.

type ManagedIdentityDefinition

type ManagedIdentityDefinition struct {
	// The client Id for authenticating a Managed Identity.
	ClientID *string
}

ManagedIdentityDefinition - Parameters to authenticate using a Managed Identity.

func (ManagedIdentityDefinition) MarshalJSON

func (m ManagedIdentityDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagedIdentityDefinition.

func (*ManagedIdentityDefinition) UnmarshalJSON

func (m *ManagedIdentityDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityDefinition.

type ManagedIdentityPatchDefinition

type ManagedIdentityPatchDefinition struct {
	// The client Id for authenticating a Managed Identity.
	ClientID *string
}

ManagedIdentityPatchDefinition - Parameters to authenticate using a Managed Identity.

func (ManagedIdentityPatchDefinition) MarshalJSON

func (m ManagedIdentityPatchDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagedIdentityPatchDefinition.

func (*ManagedIdentityPatchDefinition) UnmarshalJSON

func (m *ManagedIdentityPatchDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityPatchDefinition.

type MessageLevelType

type MessageLevelType string

MessageLevelType - Level of the message.

const (
	MessageLevelTypeError       MessageLevelType = "Error"
	MessageLevelTypeInformation MessageLevelType = "Information"
	MessageLevelTypeWarning     MessageLevelType = "Warning"
)

func PossibleMessageLevelTypeValues

func PossibleMessageLevelTypeValues() []MessageLevelType

PossibleMessageLevelTypeValues returns the possible values for the MessageLevelType const type.

type ObjectReferenceDefinition

type ObjectReferenceDefinition struct {
	// Name of the object
	Name *string

	// Namespace of the object
	Namespace *string
}

ObjectReferenceDefinition - Object reference to a Kubernetes object on a cluster

func (ObjectReferenceDefinition) MarshalJSON

func (o ObjectReferenceDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ObjectReferenceDefinition.

func (*ObjectReferenceDefinition) UnmarshalJSON

func (o *ObjectReferenceDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReferenceDefinition.

type ObjectStatusConditionDefinition

type ObjectStatusConditionDefinition struct {
	// Last time this status condition has changed
	LastTransitionTime *time.Time

	// A more verbose description of the object status condition
	Message *string

	// Reason for the specified status condition type status
	Reason *string

	// Status of the Kubernetes object condition type
	Status *string

	// Object status condition type for this object
	Type *string
}

ObjectStatusConditionDefinition - Status condition of Kubernetes object

func (ObjectStatusConditionDefinition) MarshalJSON

func (o ObjectStatusConditionDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ObjectStatusConditionDefinition.

func (*ObjectStatusConditionDefinition) UnmarshalJSON

func (o *ObjectStatusConditionDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ObjectStatusConditionDefinition.

type ObjectStatusDefinition

type ObjectStatusDefinition struct {
	// Object reference to the Kustomization that applied this object
	AppliedBy *ObjectReferenceDefinition

	// Compliance state of the applied object showing whether the applied object has come into a ready state on the cluster.
	ComplianceState *FluxComplianceState

	// Additional properties that are provided from objects of the HelmRelease kind
	HelmReleaseProperties *HelmReleasePropertiesDefinition

	// Kind of the applied object
	Kind *string

	// Name of the applied object
	Name *string

	// Namespace of the applied object
	Namespace *string

	// List of Kubernetes object status conditions present on the cluster
	StatusConditions []*ObjectStatusConditionDefinition
}

ObjectStatusDefinition - Statuses of objects deployed by the user-specified kustomizations from the git repository.

func (ObjectStatusDefinition) MarshalJSON

func (o ObjectStatusDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ObjectStatusDefinition.

func (*ObjectStatusDefinition) UnmarshalJSON

func (o *ObjectStatusDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ObjectStatusDefinition.

type OperationStatusClient

type OperationStatusClient struct {
	// contains filtered or unexported fields
}

OperationStatusClient contains the methods for the OperationStatus group. Don't use this type directly, use NewOperationStatusClient() instead.

func NewOperationStatusClient

func NewOperationStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationStatusClient, error)

NewOperationStatusClient creates a new instance of OperationStatusClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OperationStatusClient) Get

func (client *OperationStatusClient) Get(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, extensionName string, operationID string, options *OperationStatusClientGetOptions) (OperationStatusClientGetResponse, error)

Get - Get Async Operation status If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • extensionName - Name of the Extension.
  • operationID - operation Id
  • options - OperationStatusClientGetOptions contains the optional parameters for the OperationStatusClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/GetExtensionAsyncOperationStatus.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOperationStatusClient().Get(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "ClusterMonitor", "99999999-9999-9999-9999-999999999999", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.OperationStatusResult = armkubernetesconfiguration.OperationStatusResult{
// 	Name: to.Ptr("99999999-9999-9999-9999-999999999999"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/99999999-9999-9999-9999-999999999999"),
// 	Properties: map[string]*string{
// 	},
// 	Status: to.Ptr("Succeeded"),
// }
Output:

func (*OperationStatusClient) NewListPager

func (client *OperationStatusClient) NewListPager(resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, options *OperationStatusClientListOptions) *runtime.Pager[OperationStatusClientListResponse]

NewListPager - List Async Operations, currently in progress, in a cluster

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • options - OperationStatusClientListOptions contains the optional parameters for the OperationStatusClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/ListAsyncOperationStatus.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationStatusClient().NewListPager("rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.OperationStatusList = armkubernetesconfiguration.OperationStatusList{
	// 	Value: []*armkubernetesconfiguration.OperationStatusResult{
	// 		{
	// 			Name: to.Ptr("99999999-9999-9999-9999-999999999999"),
	// 			ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/99999999-9999-9999-9999-999999999999"),
	// 			Properties: map[string]*string{
	// 			},
	// 			Status: to.Ptr("Deleting"),
	// 		},
	// 		{
	// 			Name: to.Ptr("88888888-8888-8888-8888-888888888888"),
	// 			ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/cassandraExtension1/operations/88888888-8888-8888-8888-888888888888"),
	// 			Properties: map[string]*string{
	// 			},
	// 			Status: to.Ptr("Creating"),
	// 	}},
	// }
}
Output:

type OperationStatusClientGetOptions

type OperationStatusClientGetOptions struct {
}

OperationStatusClientGetOptions contains the optional parameters for the OperationStatusClient.Get method.

type OperationStatusClientGetResponse

type OperationStatusClientGetResponse struct {
	// The current status of an async operation.
	OperationStatusResult
}

OperationStatusClientGetResponse contains the response from method OperationStatusClient.Get.

type OperationStatusClientListOptions

type OperationStatusClientListOptions struct {
}

OperationStatusClientListOptions contains the optional parameters for the OperationStatusClient.NewListPager method.

type OperationStatusClientListResponse

type OperationStatusClientListResponse struct {
	// The async operations in progress, in the cluster.
	OperationStatusList
}

OperationStatusClientListResponse contains the response from method OperationStatusClient.NewListPager.

type OperationStatusList

type OperationStatusList struct {
	// READ-ONLY; URL to get the next set of Operation Result objects, if any.
	NextLink *string

	// READ-ONLY; List of async operations in progress, in the cluster.
	Value []*OperationStatusResult
}

OperationStatusList - The async operations in progress, in the cluster.

func (OperationStatusList) MarshalJSON

func (o OperationStatusList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationStatusList.

func (*OperationStatusList) UnmarshalJSON

func (o *OperationStatusList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationStatusList.

type OperationStatusResult

type OperationStatusResult struct {
	// REQUIRED; Operation status.
	Status *string

	// Fully qualified ID for the async operation.
	ID *string

	// Name of the async operation.
	Name *string

	// Additional information, if available.
	Properties map[string]*string

	// READ-ONLY; If present, details of the operation error.
	Error *ErrorDetail
}

OperationStatusResult - The current status of an async operation.

func (OperationStatusResult) MarshalJSON

func (o OperationStatusResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationStatusResult.

func (*OperationStatusResult) UnmarshalJSON

func (o *OperationStatusResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationStatusResult.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OperationsClient) NewListPager

NewListPager - List all the available operations the KubernetesConfiguration resource provider supports.

Generated from API version 2023-05-01

  • options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/OperationsList.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.ResourceProviderOperationList = armkubernetesconfiguration.ResourceProviderOperationList{
	// 	Value: []*armkubernetesconfiguration.ResourceProviderOperation{
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations/write"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Creates or updates source control configuration."),
	// 				Operation: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations/write"),
	// 				Provider: to.Ptr("Microsoft Kubernetes Configuration"),
	// 				Resource: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations/read"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Gets source control configuration."),
	// 				Operation: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations/read"),
	// 				Provider: to.Ptr("Microsoft Kubernetes Configuration"),
	// 				Resource: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations/delete"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Deletes source control configuration."),
	// 				Operation: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations/delete"),
	// 				Provider: to.Ptr("Microsoft Kubernetes Configuration"),
	// 				Resource: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/extensions/read"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Get the specified Extension."),
	// 				Operation: to.Ptr("Get extension"),
	// 				Provider: to.Ptr("Microsoft KubernetesConfiguration"),
	// 				Resource: to.Ptr("extensions"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/extensions/write"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Create the Extension specified."),
	// 				Operation: to.Ptr("Create a Extension"),
	// 				Provider: to.Ptr("Microsoft KubernetesConfiguration"),
	// 				Resource: to.Ptr("extensions"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/extensions/delete"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Delete the specified Extension."),
	// 				Operation: to.Ptr("Delete Extension"),
	// 				Provider: to.Ptr("Microsoft KubernetesConfiguration"),
	// 				Resource: to.Ptr("extensions"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/extensions/operations/read"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Get the Status of the Extension Async Operation."),
	// 				Operation: to.Ptr("Get Extension Async Operation Status"),
	// 				Provider: to.Ptr("Microsoft KubernetesConfiguration"),
	// 				Resource: to.Ptr("extensions"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/fluxConfigurations/read"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Get the specified Flux Configuration."),
	// 				Operation: to.Ptr("Get fluxConfiguration"),
	// 				Provider: to.Ptr("Microsoft KubernetesConfiguration"),
	// 				Resource: to.Ptr("fluxConfigurations"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/fluxConfigurations/write"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Create the Flux Configuration specified."),
	// 				Operation: to.Ptr("Create a fluxConfiguration"),
	// 				Provider: to.Ptr("Microsoft KubernetesConfiguration"),
	// 				Resource: to.Ptr("fluxConfigurations"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/fluxConfigurations/delete"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Delete the specified Flux Configuration."),
	// 				Operation: to.Ptr("Delete Flux Configuration"),
	// 				Provider: to.Ptr("Microsoft KubernetesConfiguration"),
	// 				Resource: to.Ptr("fluxConfigurations"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/fluxConfigurations/operations/read"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Get the Status of the Flux Configuration Async Operation."),
	// 				Operation: to.Ptr("Get Flux Configuration Async Operation Status"),
	// 				Provider: to.Ptr("Microsoft KubernetesConfiguration"),
	// 				Resource: to.Ptr("fluxConfigurations"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/register/action"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Registers subscription to Microsoft.KubernetesConfiguration resource provider."),
	// 				Operation: to.Ptr("Microsoft.KubernetesConfiguration/register/action"),
	// 				Provider: to.Ptr("Microsoft Kubernetes Configuration"),
	// 				Resource: to.Ptr("Register"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.KubernetesConfiguration/extensionTypes/read"),
	// 			Display: &armkubernetesconfiguration.ResourceProviderOperationDisplay{
	// 				Description: to.Ptr("Get Kubernetes Configuration Available Extensions"),
	// 				Operation: to.Ptr("Microsoft.KubernetesConfiguration/extensionTypes/read"),
	// 				Provider: to.Ptr("Microsoft KubernetesConfiguration"),
	// 				Resource: to.Ptr("extensionTypes"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 			Origin: to.Ptr("user,system"),
	// 	}},
	// }
}
Output:

type OperationsClientListOptions

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListResponse

type OperationsClientListResponse struct {
	// Result of the request to list operations.
	ResourceProviderOperationList
}

OperationsClientListResponse contains the response from method OperationsClient.NewListPager.

type OperatorScopeType

type OperatorScopeType string

OperatorScopeType - Scope at which the operator will be installed.

const (
	OperatorScopeTypeCluster   OperatorScopeType = "cluster"
	OperatorScopeTypeNamespace OperatorScopeType = "namespace"
)

func PossibleOperatorScopeTypeValues

func PossibleOperatorScopeTypeValues() []OperatorScopeType

PossibleOperatorScopeTypeValues returns the possible values for the OperatorScopeType const type.

type OperatorType

type OperatorType string

OperatorType - Type of the operator

const (
	OperatorTypeFlux OperatorType = "Flux"
)

func PossibleOperatorTypeValues

func PossibleOperatorTypeValues() []OperatorType

PossibleOperatorTypeValues returns the possible values for the OperatorType const type.

type PatchExtension

type PatchExtension struct {
	// Updatable properties of an Extension Patch Request
	Properties *PatchExtensionProperties
}

PatchExtension - The Extension Patch Request object.

func (PatchExtension) MarshalJSON

func (p PatchExtension) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PatchExtension.

func (*PatchExtension) UnmarshalJSON

func (p *PatchExtension) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PatchExtension.

type PatchExtensionProperties

type PatchExtensionProperties struct {
	// Flag to note if this extension participates in auto upgrade of minor version, or not.
	AutoUpgradeMinorVersion *bool

	// Configuration settings that are sensitive, as name-value pairs for configuring this extension.
	ConfigurationProtectedSettings map[string]*string

	// Configuration settings, as name-value pairs for configuring this extension.
	ConfigurationSettings map[string]*string

	// ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion
	// is 'true'.
	ReleaseTrain *string

	// Version of the extension for this extension, if it is 'pinned' to a specific version. autoUpgradeMinorVersion must be 'false'.
	Version *string
}

PatchExtensionProperties - Updatable properties of an Extension Patch Request

func (PatchExtensionProperties) MarshalJSON

func (p PatchExtensionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PatchExtensionProperties.

func (*PatchExtensionProperties) UnmarshalJSON

func (p *PatchExtensionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PatchExtensionProperties.

type Plan

type Plan struct {
	// REQUIRED; A user defined name of the 3rd Party Artifact that is being procured.
	Name *string

	// REQUIRED; The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact
	// at the time of Data Market onboarding.
	Product *string

	// REQUIRED; The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
	Publisher *string

	// A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
	PromotionCode *string

	// The version of the desired product/artifact.
	Version *string
}

Plan for the resource.

func (Plan) MarshalJSON

func (p Plan) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Plan.

func (*Plan) UnmarshalJSON

func (p *Plan) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Plan.

type PostBuildDefinition added in v2.1.0

type PostBuildDefinition struct {
	// Key/value pairs holding the variables to be substituted in this Kustomization.
	Substitute map[string]*string

	// Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.
	SubstituteFrom []*SubstituteFromDefinition
}

PostBuildDefinition - The postBuild definitions defining variable substitutions for this Kustomization after kustomize build.

func (PostBuildDefinition) MarshalJSON added in v2.1.0

func (p PostBuildDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PostBuildDefinition.

func (*PostBuildDefinition) UnmarshalJSON added in v2.1.0

func (p *PostBuildDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PostBuildDefinition.

type ProvisioningState

type ProvisioningState string

ProvisioningState - The provisioning state of the resource.

const (
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateCreating  ProvisioningState = "Creating"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUpdating  ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.

type ProvisioningStateType

type ProvisioningStateType string

ProvisioningStateType - The provisioning state of the resource provider.

const (
	ProvisioningStateTypeAccepted  ProvisioningStateType = "Accepted"
	ProvisioningStateTypeDeleting  ProvisioningStateType = "Deleting"
	ProvisioningStateTypeFailed    ProvisioningStateType = "Failed"
	ProvisioningStateTypeRunning   ProvisioningStateType = "Running"
	ProvisioningStateTypeSucceeded ProvisioningStateType = "Succeeded"
)

func PossibleProvisioningStateTypeValues

func PossibleProvisioningStateTypeValues() []ProvisioningStateType

PossibleProvisioningStateTypeValues returns the possible values for the ProvisioningStateType const type.

type ProxyResource

type ProxyResource struct {
	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

func (ProxyResource) MarshalJSON

func (p ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProxyResource.

func (*ProxyResource) UnmarshalJSON

func (p *ProxyResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.

type RepositoryRefDefinition

type RepositoryRefDefinition struct {
	// The git repository branch name to checkout.
	Branch *string

	// The commit SHA to checkout. This value must be combined with the branch name to be valid. This takes precedence over semver.
	Commit *string

	// The semver range used to match against git repository tags. This takes precedence over tag.
	Semver *string

	// The git repository tag name to checkout. This takes precedence over branch.
	Tag *string
}

RepositoryRefDefinition - The source reference for the GitRepository object.

func (RepositoryRefDefinition) MarshalJSON

func (r RepositoryRefDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RepositoryRefDefinition.

func (*RepositoryRefDefinition) UnmarshalJSON

func (r *RepositoryRefDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RepositoryRefDefinition.

type Resource

type Resource struct {
	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

Resource - Common fields that are returned in the response for all Azure Resource Manager resources

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON

func (r *Resource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Resource.

type ResourceProviderOperation

type ResourceProviderOperation struct {
	// Display metadata associated with the operation.
	Display *ResourceProviderOperationDisplay

	// Operation name, in format of {provider}/{resource}/{operation}
	Name *string

	// READ-ONLY; The flag that indicates whether the operation applies to data plane.
	IsDataAction *bool

	// READ-ONLY; Origin of the operation
	Origin *string
}

ResourceProviderOperation - Supported operation of this resource provider.

func (ResourceProviderOperation) MarshalJSON

func (r ResourceProviderOperation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceProviderOperation.

func (*ResourceProviderOperation) UnmarshalJSON

func (r *ResourceProviderOperation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceProviderOperation.

type ResourceProviderOperationDisplay

type ResourceProviderOperationDisplay struct {
	// Description of this operation.
	Description *string

	// Type of operation: get, read, delete, etc.
	Operation *string

	// Resource provider: Microsoft KubernetesConfiguration.
	Provider *string

	// Resource on which the operation is performed.
	Resource *string
}

ResourceProviderOperationDisplay - Display metadata associated with the operation.

func (ResourceProviderOperationDisplay) MarshalJSON

func (r ResourceProviderOperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceProviderOperationDisplay.

func (*ResourceProviderOperationDisplay) UnmarshalJSON

func (r *ResourceProviderOperationDisplay) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceProviderOperationDisplay.

type ResourceProviderOperationList

type ResourceProviderOperationList struct {
	// List of operations supported by this resource provider.
	Value []*ResourceProviderOperation

	// READ-ONLY; URL to the next set of results, if any.
	NextLink *string
}

ResourceProviderOperationList - Result of the request to list operations.

func (ResourceProviderOperationList) MarshalJSON

func (r ResourceProviderOperationList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceProviderOperationList.

func (*ResourceProviderOperationList) UnmarshalJSON

func (r *ResourceProviderOperationList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceProviderOperationList.

type Scope

type Scope struct {
	// Specifies that the scope of the extension is Cluster
	Cluster *ScopeCluster

	// Specifies that the scope of the extension is Namespace
	Namespace *ScopeNamespace
}

Scope of the extension. It can be either Cluster or Namespace; but not both.

func (Scope) MarshalJSON

func (s Scope) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Scope.

func (*Scope) UnmarshalJSON

func (s *Scope) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Scope.

type ScopeCluster

type ScopeCluster struct {
	// Namespace where the extension Release must be placed, for a Cluster scoped extension. If this namespace does not exist,
	// it will be created
	ReleaseNamespace *string
}

ScopeCluster - Specifies that the scope of the extension is Cluster

func (ScopeCluster) MarshalJSON

func (s ScopeCluster) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScopeCluster.

func (*ScopeCluster) UnmarshalJSON

func (s *ScopeCluster) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScopeCluster.

type ScopeNamespace

type ScopeNamespace struct {
	// Namespace where the extension will be created for an Namespace scoped extension. If this namespace does not exist, it will
	// be created
	TargetNamespace *string
}

ScopeNamespace - Specifies that the scope of the extension is Namespace

func (ScopeNamespace) MarshalJSON

func (s ScopeNamespace) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScopeNamespace.

func (*ScopeNamespace) UnmarshalJSON

func (s *ScopeNamespace) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScopeNamespace.

type ScopeType

type ScopeType string

ScopeType - Scope at which the configuration will be installed.

const (
	ScopeTypeCluster   ScopeType = "cluster"
	ScopeTypeNamespace ScopeType = "namespace"
)

func PossibleScopeTypeValues

func PossibleScopeTypeValues() []ScopeType

PossibleScopeTypeValues returns the possible values for the ScopeType const type.

type ServicePrincipalDefinition

type ServicePrincipalDefinition struct {
	// Base64-encoded certificate used to authenticate a Service Principal
	ClientCertificate *string

	// The password for the certificate used to authenticate a Service Principal
	ClientCertificatePassword *string

	// Specifies whether to include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication
	// for the Client Certificate
	ClientCertificateSendChain *bool

	// The client Id for authenticating a Service Principal.
	ClientID *string

	// The client secret for authenticating a Service Principal
	ClientSecret *string

	// The tenant Id for authenticating a Service Principal
	TenantID *string
}

ServicePrincipalDefinition - Parameters to authenticate using Service Principal.

func (ServicePrincipalDefinition) MarshalJSON

func (s ServicePrincipalDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ServicePrincipalDefinition.

func (*ServicePrincipalDefinition) UnmarshalJSON

func (s *ServicePrincipalDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServicePrincipalDefinition.

type ServicePrincipalPatchDefinition

type ServicePrincipalPatchDefinition struct {
	// Base64-encoded certificate used to authenticate a Service Principal
	ClientCertificate *string

	// The password for the certificate used to authenticate a Service Principal
	ClientCertificatePassword *string

	// Specifies whether to include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication
	// for the Client Certificate
	ClientCertificateSendChain *bool

	// The client Id for authenticating a Service Principal.
	ClientID *string

	// The client secret for authenticating a Service Principal
	ClientSecret *string

	// The tenant Id for authenticating a Service Principal
	TenantID *string
}

ServicePrincipalPatchDefinition - Parameters to authenticate using Service Principal.

func (ServicePrincipalPatchDefinition) MarshalJSON

func (s ServicePrincipalPatchDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ServicePrincipalPatchDefinition.

func (*ServicePrincipalPatchDefinition) UnmarshalJSON

func (s *ServicePrincipalPatchDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServicePrincipalPatchDefinition.

type SourceControlConfiguration

type SourceControlConfiguration struct {
	// Properties to create a Source Control Configuration resource
	Properties *SourceControlConfigurationProperties

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SourceControlConfiguration - The SourceControl Configuration object returned in Get & Put response.

func (SourceControlConfiguration) MarshalJSON

func (s SourceControlConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlConfiguration.

func (*SourceControlConfiguration) UnmarshalJSON

func (s *SourceControlConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlConfiguration.

type SourceControlConfigurationList

type SourceControlConfigurationList struct {
	// READ-ONLY; URL to get the next set of configuration objects, if any.
	NextLink *string

	// READ-ONLY; List of Source Control Configurations within a Kubernetes cluster.
	Value []*SourceControlConfiguration
}

SourceControlConfigurationList - Result of the request to list Source Control Configurations. It contains a list of SourceControlConfiguration objects and a URL link to get the next set of results.

func (SourceControlConfigurationList) MarshalJSON

func (s SourceControlConfigurationList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlConfigurationList.

func (*SourceControlConfigurationList) UnmarshalJSON

func (s *SourceControlConfigurationList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlConfigurationList.

type SourceControlConfigurationProperties

type SourceControlConfigurationProperties struct {
	// Name-value pairs of protected configuration settings for the configuration
	ConfigurationProtectedSettings map[string]*string

	// Option to enable Helm Operator for this git configuration.
	EnableHelmOperator *bool

	// Properties for Helm operator.
	HelmOperatorProperties *HelmOperatorProperties

	// Instance name of the operator - identifying the specific configuration.
	OperatorInstanceName *string

	// The namespace to which this operator is installed to. Maximum of 253 lower case alphanumeric characters, hyphen and period
	// only.
	OperatorNamespace *string

	// Any Parameters for the Operator instance in string format.
	OperatorParams *string

	// Scope at which the operator will be installed.
	OperatorScope *OperatorScopeType

	// Type of the operator
	OperatorType *OperatorType

	// Url of the SourceControl Repository.
	RepositoryURL *string

	// Base64-encoded known_hosts contents containing public SSH keys required to access private Git instances
	SSHKnownHostsContents *string

	// READ-ONLY; Compliance Status of the Configuration
	ComplianceStatus *ComplianceStatus

	// READ-ONLY; The provisioning state of the resource provider.
	ProvisioningState *ProvisioningStateType

	// READ-ONLY; Public Key associated with this SourceControl configuration (either generated within the cluster or provided
	// by the user).
	RepositoryPublicKey *string
}

SourceControlConfigurationProperties - Properties to create a Source Control Configuration resource

func (SourceControlConfigurationProperties) MarshalJSON

func (s SourceControlConfigurationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlConfigurationProperties.

func (*SourceControlConfigurationProperties) UnmarshalJSON

func (s *SourceControlConfigurationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlConfigurationProperties.

type SourceControlConfigurationsClient

type SourceControlConfigurationsClient struct {
	// contains filtered or unexported fields
}

SourceControlConfigurationsClient contains the methods for the SourceControlConfigurations group. Don't use this type directly, use NewSourceControlConfigurationsClient() instead.

func NewSourceControlConfigurationsClient

func NewSourceControlConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SourceControlConfigurationsClient, error)

NewSourceControlConfigurationsClient creates a new instance of SourceControlConfigurationsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SourceControlConfigurationsClient) BeginDelete

func (client *SourceControlConfigurationsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, sourceControlConfigurationName string, options *SourceControlConfigurationsClientBeginDeleteOptions) (*runtime.Poller[SourceControlConfigurationsClientDeleteResponse], error)

BeginDelete - This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • sourceControlConfigurationName - Name of the Source Control Configuration.
  • options - SourceControlConfigurationsClientBeginDeleteOptions contains the optional parameters for the SourceControlConfigurationsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/DeleteSourceControlConfiguration.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSourceControlConfigurationsClient().BeginDelete(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "SRS_GitHubConfig", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*SourceControlConfigurationsClient) CreateOrUpdate

func (client *SourceControlConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, sourceControlConfigurationName string, sourceControlConfiguration SourceControlConfiguration, options *SourceControlConfigurationsClientCreateOrUpdateOptions) (SourceControlConfigurationsClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create a new Kubernetes Source Control Configuration. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • sourceControlConfigurationName - Name of the Source Control Configuration.
  • sourceControlConfiguration - Properties necessary to Create KubernetesConfiguration.
  • options - SourceControlConfigurationsClientCreateOrUpdateOptions contains the optional parameters for the SourceControlConfigurationsClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/CreateSourceControlConfiguration.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSourceControlConfigurationsClient().CreateOrUpdate(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "SRS_GitHubConfig", armkubernetesconfiguration.SourceControlConfiguration{
	Properties: &armkubernetesconfiguration.SourceControlConfigurationProperties{
		ConfigurationProtectedSettings: map[string]*string{
			"protectedSetting1Key": to.Ptr("protectedSetting1Value"),
		},
		EnableHelmOperator: to.Ptr(true),
		HelmOperatorProperties: &armkubernetesconfiguration.HelmOperatorProperties{
			ChartValues:  to.Ptr("--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system"),
			ChartVersion: to.Ptr("0.3.0"),
		},
		OperatorInstanceName:  to.Ptr("SRSGitHubFluxOp-01"),
		OperatorNamespace:     to.Ptr("SRS_Namespace"),
		OperatorParams:        to.Ptr("--git-email=xyzgituser@users.srs.github.com"),
		OperatorScope:         to.Ptr(armkubernetesconfiguration.OperatorScopeTypeNamespace),
		OperatorType:          to.Ptr(armkubernetesconfiguration.OperatorTypeFlux),
		RepositoryURL:         to.Ptr("git@github.com:k8sdeveloper425/flux-get-started"),
		SSHKnownHostsContents: to.Ptr("c3NoLmRldi5henVyZS5jb20gc3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDN0hyMW9UV3FOcU9sekdKT2ZHSjROYWtWeUl6ZjFyWFlkNGQ3d282akJsa0x2Q0E0b2RCbEwwbURVeVowL1FVZlRUcWV1K3RtMjJnT3N2K1ZyVlRNazZ2d1JVNzVnWS95OXV0NU1iM2JSNUJWNThkS1h5cTlBOVVlQjVDYWtlaG41WmdtNngxbUtvVnlmK0ZGbjI2aVlxWEpSZ3pJWlpjWjVWNmhyRTBRZzM5a1ptNGF6NDhvMEFVYmY2U3A0U0xkdm51TWEyc1ZOd0hCYm9TN0VKa201N1hRUFZVMy9RcHlOTEhiV0Rkend0cmxTK2V6MzBTM0FkWWhMS0VPeEFHOHdlT255cnRMSkFVZW45bVRrb2w4b0lJMWVkZjdtV1diV1ZmMG5CbWx5MjErblpjbUNUSVNRQnRkY3lQYUVubzdmRlFNREQyNi9zMGxmS29iNEt3OEg="),
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SourceControlConfiguration = armkubernetesconfiguration.SourceControlConfiguration{
// 	Name: to.Ptr("SRS_GitHubConfig"),
// 	Type: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/SRS_GitHubConfig"),
// 	Properties: &armkubernetesconfiguration.SourceControlConfigurationProperties{
// 		ComplianceStatus: &armkubernetesconfiguration.ComplianceStatus{
// 			ComplianceState: to.Ptr(armkubernetesconfiguration.ComplianceStateTypePending),
// 			LastConfigApplied: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-08T05:25:32.122Z"); return t}()),
// 			Message: to.Ptr("Configuration successfully created"),
// 			MessageLevel: to.Ptr(armkubernetesconfiguration.MessageLevelType("Info")),
// 		},
// 		EnableHelmOperator: to.Ptr(true),
// 		HelmOperatorProperties: &armkubernetesconfiguration.HelmOperatorProperties{
// 			ChartValues: to.Ptr("--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system"),
// 			ChartVersion: to.Ptr("0.3.0"),
// 		},
// 		OperatorInstanceName: to.Ptr("SRSGitHubFluxOp-01"),
// 		OperatorNamespace: to.Ptr("SRS_Namespace"),
// 		OperatorParams: to.Ptr("--git-email=xyzgituser@users.srs.github.com"),
// 		OperatorScope: to.Ptr(armkubernetesconfiguration.OperatorScopeTypeNamespace),
// 		OperatorType: to.Ptr(armkubernetesconfiguration.OperatorTypeFlux),
// 		ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateTypeSucceeded),
// 		RepositoryPublicKey: to.Ptr("ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAqvTzeL+BWgcHnC1CTBRMg2ZfCh9khlrvb2avFHiGG24rRvjLHlKqtfiiw+cZNCKskUyVKqamD2RHrhyn/wXvJ9fFRt0LhYLKn4hJhJaPx4IawdWnW1MUv4U+Mr8o3Cxps4EmiZemqri3fOrhzEIlPL272whKpzlDLV7L4W1XQIGmVPwQ93HTzKEd5uHuEuw6JyFftDDLlCnd3Q1kQ7HOabFEfcSSr9cMx2MU4j/Pjuf3Rd/CzeksvKtU009KSXSnWKm8LL1fihSc1H1WDTi8iuZtT63hsNYH1yxrPRpMVScs3ufLViAGO9NEHQSgDdl/OERQQqKisUn2Qm6adgmftw== rsa-key-20190909"),
// 		RepositoryURL: to.Ptr("git@github.com:k8sdeveloper425/flux-get-started"),
// 		SSHKnownHostsContents: to.Ptr("c3NoLmRldi5henVyZS5jb20gc3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDN0hyMW9UV3FOcU9sekdKT2ZHSjROYWtWeUl6ZjFyWFlkNGQ3d282akJsa0x2Q0E0b2RCbEwwbURVeVowL1FVZlRUcWV1K3RtMjJnT3N2K1ZyVlRNazZ2d1JVNzVnWS95OXV0NU1iM2JSNUJWNThkS1h5cTlBOVVlQjVDYWtlaG41WmdtNngxbUtvVnlmK0ZGbjI2aVlxWEpSZ3pJWlpjWjVWNmhyRTBRZzM5a1ptNGF6NDhvMEFVYmY2U3A0U0xkdm51TWEyc1ZOd0hCYm9TN0VKa201N1hRUFZVMy9RcHlOTEhiV0Rkend0cmxTK2V6MzBTM0FkWWhMS0VPeEFHOHdlT255cnRMSkFVZW45bVRrb2w4b0lJMWVkZjdtV1diV1ZmMG5CbWx5MjErblpjbUNUSVNRQnRkY3lQYUVubzdmRlFNREQyNi9zMGxmS29iNEt3OEg="),
// 	},
// 	SystemData: &armkubernetesconfiguration.SystemData{
// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-08T05:10:57.027Z"); return t}()),
// 		CreatedBy: to.Ptr("string"),
// 		CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-08T05:10:57.027Z"); return t}()),
// 		LastModifiedBy: to.Ptr("string"),
// 		LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 	},
// }
Output:

func (*SourceControlConfigurationsClient) Get

func (client *SourceControlConfigurationsClient) Get(ctx context.Context, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, sourceControlConfigurationName string, options *SourceControlConfigurationsClientGetOptions) (SourceControlConfigurationsClientGetResponse, error)

Get - Gets details of the Source Control Configuration. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • sourceControlConfigurationName - Name of the Source Control Configuration.
  • options - SourceControlConfigurationsClientGetOptions contains the optional parameters for the SourceControlConfigurationsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/GetSourceControlConfiguration.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSourceControlConfigurationsClient().Get(ctx, "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "SRS_GitHubConfig", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SourceControlConfiguration = armkubernetesconfiguration.SourceControlConfiguration{
// 	Name: to.Ptr("SRS_GitHubConfig"),
// 	Type: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations"),
// 	ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/SRS_GitHubConfig"),
// 	Properties: &armkubernetesconfiguration.SourceControlConfigurationProperties{
// 		ComplianceStatus: &armkubernetesconfiguration.ComplianceStatus{
// 			ComplianceState: to.Ptr(armkubernetesconfiguration.ComplianceStateTypePending),
// 			LastConfigApplied: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-08T05:25:32.122Z"); return t}()),
// 			Message: to.Ptr("Configuration successfully created"),
// 			MessageLevel: to.Ptr(armkubernetesconfiguration.MessageLevelType("Info")),
// 		},
// 		HelmOperatorProperties: &armkubernetesconfiguration.HelmOperatorProperties{
// 			ChartValues: to.Ptr("--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system"),
// 			ChartVersion: to.Ptr("0.3.0"),
// 		},
// 		OperatorInstanceName: to.Ptr("SRSGitHubFluxOp-01"),
// 		OperatorNamespace: to.Ptr("SRS_Namespace"),
// 		OperatorParams: to.Ptr("--git-email=xyzgituser@users.srs.github.com"),
// 		OperatorScope: to.Ptr(armkubernetesconfiguration.OperatorScopeTypeNamespace),
// 		OperatorType: to.Ptr(armkubernetesconfiguration.OperatorTypeFlux),
// 		ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateTypeSucceeded),
// 		RepositoryPublicKey: to.Ptr("ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAqvTzeL+BWgcHnC1CTBRMg2ZfCh9khlrvb2avFHiGG24rRvjLHlKqtfiiw+cZNCKskUyVKqamD2RHrhyn/wXvJ9fFRt0LhYLKn4hJhJaPx4IawdWnW1MUv4U+Mr8o3Cxps4EmiZemqri3fOrhzEIlPL272whKpzlDLV7L4W1XQIGmVPwQ93HTzKEd5uHuEuw6JyFftDDLlCnd3Q1kQ7HOabFEfcSSr9cMx2MU4j/Pjuf3Rd/CzeksvKtU009KSXSnWKm8LL1fihSc1H1WDTi8iuZtT63hsNYH1yxrPRpMVScs3ufLViAGO9NEHQSgDdl/OERQQqKisUn2Qm6adgmftw== rsa-key-20190909"),
// 		RepositoryURL: to.Ptr("git@github.com:k8sdeveloper425/flux-get-started"),
// 		SSHKnownHostsContents: to.Ptr("c3NoLmRldi5henVyZS5jb20gc3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDN0hyMW9UV3FOcU9sekdKT2ZHSjROYWtWeUl6ZjFyWFlkNGQ3d282akJsa0x2Q0E0b2RCbEwwbURVeVowL1FVZlRUcWV1K3RtMjJnT3N2K1ZyVlRNazZ2d1JVNzVnWS95OXV0NU1iM2JSNUJWNThkS1h5cTlBOVVlQjVDYWtlaG41WmdtNngxbUtvVnlmK0ZGbjI2aVlxWEpSZ3pJWlpjWjVWNmhyRTBRZzM5a1ptNGF6NDhvMEFVYmY2U3A0U0xkdm51TWEyc1ZOd0hCYm9TN0VKa201N1hRUFZVMy9RcHlOTEhiV0Rkend0cmxTK2V6MzBTM0FkWWhMS0VPeEFHOHdlT255cnRMSkFVZW45bVRrb2w4b0lJMWVkZjdtV1diV1ZmMG5CbWx5MjErblpjbUNUSVNRQnRkY3lQYUVubzdmRlFNREQyNi9zMGxmS29iNEt3OEg="),
// 	},
// 	SystemData: &armkubernetesconfiguration.SystemData{
// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-08T05:10:57.027Z"); return t}()),
// 		CreatedBy: to.Ptr("string"),
// 		CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-08T05:10:57.027Z"); return t}()),
// 		LastModifiedBy: to.Ptr("string"),
// 		LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
// 	},
// }
Output:

func (*SourceControlConfigurationsClient) NewListPager

func (client *SourceControlConfigurationsClient) NewListPager(resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, options *SourceControlConfigurationsClientListOptions) *runtime.Pager[SourceControlConfigurationsClientListResponse]

NewListPager - List all Source Control Configurations.

Generated from API version 2023-05-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
  • clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
  • clusterName - The name of the kubernetes cluster.
  • options - SourceControlConfigurationsClientListOptions contains the optional parameters for the SourceControlConfigurationsClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/ListSourceControlConfiguration.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armkubernetesconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewSourceControlConfigurationsClient().NewListPager("rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.SourceControlConfigurationList = armkubernetesconfiguration.SourceControlConfigurationList{
	// 	Value: []*armkubernetesconfiguration.SourceControlConfiguration{
	// 		{
	// 			Name: to.Ptr("SRS_GitHubConfig"),
	// 			Type: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations"),
	// 			ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/SRS_GitHubConfig"),
	// 			Properties: &armkubernetesconfiguration.SourceControlConfigurationProperties{
	// 				ComplianceStatus: &armkubernetesconfiguration.ComplianceStatus{
	// 					ComplianceState: to.Ptr(armkubernetesconfiguration.ComplianceStateTypeCompliant),
	// 				},
	// 				OperatorInstanceName: to.Ptr("SRSGitHubFluxOp-01"),
	// 				OperatorNamespace: to.Ptr("SRS_Namespace"),
	// 				OperatorScope: to.Ptr(armkubernetesconfiguration.OperatorScopeTypeNamespace),
	// 				OperatorType: to.Ptr(armkubernetesconfiguration.OperatorTypeFlux),
	// 				ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateTypeSucceeded),
	// 				RepositoryURL: to.Ptr("git@github.com:k8sdeveloper425/SRSClusterconfigs"),
	// 				SSHKnownHostsContents: to.Ptr("c3NoLmRldi5henVyZS5jb20gc3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDN0hyMW9UV3FOcU9sekdKT2ZHSjROYWtWeUl6ZjFyWFlkNGQ3d282akJsa0x2Q0E0b2RCbEwwbURVeVowL1FVZlRUcWV1K3RtMjJnT3N2K1ZyVlRNazZ2d1JVNzVnWS95OXV0NU1iM2JSNUJWNThkS1h5cTlBOVVlQjVDYWtlaG41WmdtNngxbUtvVnlmK0ZGbjI2aVlxWEpSZ3pJWlpjWjVWNmhyRTBRZzM5a1ptNGF6NDhvMEFVYmY2U3A0U0xkdm51TWEyc1ZOd0hCYm9TN0VKa201N1hRUFZVMy9RcHlOTEhiV0Rkend0cmxTK2V6MzBTM0FkWWhMS0VPeEFHOHdlT255cnRMSkFVZW45bVRrb2w4b0lJMWVkZjdtV1diV1ZmMG5CbWx5MjErblpjbUNUSVNRQnRkY3lQYUVubzdmRlFNREQyNi9zMGxmS29iNEt3OEg="),
	// 			},
	// 			SystemData: &armkubernetesconfiguration.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-08T05:10:57.027Z"); return t}()),
	// 				CreatedBy: to.Ptr("string"),
	// 				CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-08T05:10:57.027Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("string"),
	// 				LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("SCRS_GitHubConfig"),
	// 			Type: to.Ptr("Microsoft.KubernetesConfiguration/sourceControlConfigurations"),
	// 			ID: to.Ptr("/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/SCRS_GitHubConfig"),
	// 			Properties: &armkubernetesconfiguration.SourceControlConfigurationProperties{
	// 				ComplianceStatus: &armkubernetesconfiguration.ComplianceStatus{
	// 					ComplianceState: to.Ptr(armkubernetesconfiguration.ComplianceStateTypeCompliant),
	// 				},
	// 				OperatorInstanceName: to.Ptr("SCRSGitHubFluxOp-02"),
	// 				OperatorNamespace: to.Ptr("SCRS_Namespace"),
	// 				OperatorScope: to.Ptr(armkubernetesconfiguration.OperatorScopeTypeCluster),
	// 				OperatorType: to.Ptr(armkubernetesconfiguration.OperatorTypeFlux),
	// 				ProvisioningState: to.Ptr(armkubernetesconfiguration.ProvisioningStateTypeSucceeded),
	// 				RepositoryURL: to.Ptr("git@github.com:k8sdeveloper425/SCRSClusterconfigs"),
	// 				SSHKnownHostsContents: to.Ptr("c3NoLmRldi5henVyZS5jb20gc3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDN0hyMW9UV3FOcU9sekdKT2ZHSjROYWtWeUl6ZjFyWFlkNGQ3d282akJsa0x2Q0E0b2RCbEwwbURVeVowL1FVZlRUcWV1K3RtMjJnT3N2K1ZyVlRNazZ2d1JVNzVnWS95OXV0NU1iM2JSNUJWNThkS1h5cTlBOVVlQjVDYWtlaG41WmdtNngxbUtvVnlmK0ZGbjI2aVlxWEpSZ3pJWlpjWjVWNmhyRTBRZzM5a1ptNGF6NDhvMEFVYmY2U3A0U0xkdm51TWEyc1ZOd0hCYm9TN0VKa201N1hRUFZVMy9RcHlOTEhiV0Rkend0cmxTK2V6MzBTM0FkWWhMS0VPeEFHOHdlT255cnRMSkFVZW45bVRrb2w4b0lJMWVkZjdtV1diV1ZmMG5CbWx5MjErblpjbUNUSVNRQnRkY3lQYUVubzdmRlFNREQyNi9zMGxmS29iNEt3OEg="),
	// 			},
	// 			SystemData: &armkubernetesconfiguration.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-08T05:10:57.027Z"); return t}()),
	// 				CreatedBy: to.Ptr("string"),
	// 				CreatedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-08T05:10:57.027Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("string"),
	// 				LastModifiedByType: to.Ptr(armkubernetesconfiguration.CreatedByTypeApplication),
	// 			},
	// 	}},
	// }
}
Output:

type SourceControlConfigurationsClientBeginDeleteOptions

type SourceControlConfigurationsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SourceControlConfigurationsClientBeginDeleteOptions contains the optional parameters for the SourceControlConfigurationsClient.BeginDelete method.

type SourceControlConfigurationsClientCreateOrUpdateOptions

type SourceControlConfigurationsClientCreateOrUpdateOptions struct {
}

SourceControlConfigurationsClientCreateOrUpdateOptions contains the optional parameters for the SourceControlConfigurationsClient.CreateOrUpdate method.

type SourceControlConfigurationsClientCreateOrUpdateResponse

type SourceControlConfigurationsClientCreateOrUpdateResponse struct {
	// The SourceControl Configuration object returned in Get & Put response.
	SourceControlConfiguration
}

SourceControlConfigurationsClientCreateOrUpdateResponse contains the response from method SourceControlConfigurationsClient.CreateOrUpdate.

type SourceControlConfigurationsClientDeleteResponse

type SourceControlConfigurationsClientDeleteResponse struct {
}

SourceControlConfigurationsClientDeleteResponse contains the response from method SourceControlConfigurationsClient.BeginDelete.

type SourceControlConfigurationsClientGetOptions

type SourceControlConfigurationsClientGetOptions struct {
}

SourceControlConfigurationsClientGetOptions contains the optional parameters for the SourceControlConfigurationsClient.Get method.

type SourceControlConfigurationsClientGetResponse

type SourceControlConfigurationsClientGetResponse struct {
	// The SourceControl Configuration object returned in Get & Put response.
	SourceControlConfiguration
}

SourceControlConfigurationsClientGetResponse contains the response from method SourceControlConfigurationsClient.Get.

type SourceControlConfigurationsClientListOptions

type SourceControlConfigurationsClientListOptions struct {
}

SourceControlConfigurationsClientListOptions contains the optional parameters for the SourceControlConfigurationsClient.NewListPager method.

type SourceControlConfigurationsClientListResponse

type SourceControlConfigurationsClientListResponse struct {
	// Result of the request to list Source Control Configurations. It contains a list of SourceControlConfiguration objects and
	// a URL link to get the next set of results.
	SourceControlConfigurationList
}

SourceControlConfigurationsClientListResponse contains the response from method SourceControlConfigurationsClient.NewListPager.

type SourceKindType

type SourceKindType string

SourceKindType - Source Kind to pull the configuration data from.

const (
	SourceKindTypeAzureBlob     SourceKindType = "AzureBlob"
	SourceKindTypeBucket        SourceKindType = "Bucket"
	SourceKindTypeGitRepository SourceKindType = "GitRepository"
)

func PossibleSourceKindTypeValues

func PossibleSourceKindTypeValues() []SourceKindType

PossibleSourceKindTypeValues returns the possible values for the SourceKindType const type.

type SubstituteFromDefinition added in v2.1.0

type SubstituteFromDefinition struct {
	// Define whether it is ConfigMap or Secret that holds the variables to be used in substitution.
	Kind *string

	// Name of the ConfigMap/Secret that holds the variables to be used in substitution.
	Name *string

	// Set to True to proceed without ConfigMap/Secret, if it is not present.
	Optional *bool
}

SubstituteFromDefinition - Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.

func (SubstituteFromDefinition) MarshalJSON added in v2.1.0

func (s SubstituteFromDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SubstituteFromDefinition.

func (*SubstituteFromDefinition) UnmarshalJSON added in v2.1.0

func (s *SubstituteFromDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SubstituteFromDefinition.

type SystemData

type SystemData struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time

	// The identity that created the resource.
	CreatedBy *string

	// The type of identity that created the resource.
	CreatedByType *CreatedByType

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time

	// The identity that last modified the resource.
	LastModifiedBy *string

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType
}

SystemData - Metadata pertaining to creation and last modification of the resource.

func (SystemData) MarshalJSON

func (s SystemData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemData.

func (*SystemData) UnmarshalJSON

func (s *SystemData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL