deploy

package
v0.0.0-...-823d357 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Overview

Code generated for package deploy by go-bindata DO NOT EDIT. (@generated) sources: cluster-predeploy.json databases-development.json env-development.json rbac-development.json rp-development-predeploy.json rp-development.json rp-production-global-acr-replication.json rp-production-global-subscription.json rp-production-global.json rp-production-managed-identity.json rp-production-parameters.json rp-production-predeploy-parameters.json rp-production-predeploy.json rp-production-subscription.json rp-production.json

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

type Config

type Config struct {
	RPs           []RPConfig     `json:"rps,omitempty"`
	Configuration *Configuration `json:"configuration,omitempty"`
}

Config represents configuration object for deployer tooling

func DevConfig

func DevConfig(_env env.Core) (*Config, error)

type Configuration

type Configuration struct {
	ACRLocationOverride                *string       `json:"acrLocationOverride,omitempty"`
	ACRResourceID                      *string       `json:"acrResourceId,omitempty" value:"required"`
	AzureCloudName                     *string       `json:"azureCloudName,omitempty" value:"required"`
	RPVersionStorageAccountName        *string       `json:"rpVersionStorageAccountName,omitempty" value:"required"`
	ACRReplicaDisabled                 *bool         `json:"acrReplicaDisabled,omitempty"`
	AdminAPICABundle                   *string       `json:"adminApiCaBundle,omitempty" value:"required"`
	AdminAPIClientCertCommonName       *string       `json:"adminApiClientCertCommonName,omitempty" value:"required"`
	ARMAPICABundle                     *string       `json:"armApiCaBundle,omitempty"`
	ARMAPIClientCertCommonName         *string       `json:"armApiClientCertCommonName,omitempty"`
	ARMClientID                        *string       `json:"armClientId,omitempty"`
	BillingE2EStorageAccountID         *string       `json:"billingE2EStorageAccountId,omitempty"`
	BillingServicePrincipalID          *string       `json:"billingServicePrincipalId,omitempty"`
	ClusterMDSDConfigVersion           *string       `json:"clusterMdsdConfigVersion,omitempty" value:"required"`
	ClusterParentDomainName            *string       `json:"clusterParentDomainName,omitempty" value:"required"`
	DatabaseAccountName                *string       `json:"databaseAccountName,omitempty" value:"required"`
	DisableCosmosDBFirewall            *bool         `json:"disableCosmosDBFirewall,omitempty"`
	ExtraClusterKeyvaultAccessPolicies []interface{} `json:"extraClusterKeyvaultAccessPolicies,omitempty" value:"required"`
	ExtraDBTokenKeyvaultAccessPolicies []interface{} `json:"extraDBTokenKeyvaultAccessPolicies,omitempty" value:"required"`
	ExtraCosmosDBIPs                   []string      `json:"extraCosmosDBIPs,omitempty"`
	ExtraPortalKeyvaultAccessPolicies  []interface{} `json:"extraPortalKeyvaultAccessPolicies,omitempty" value:"required"`
	ExtraServiceKeyvaultAccessPolicies []interface{} `json:"extraServiceKeyvaultAccessPolicies,omitempty" value:"required"`
	FPClientID                         *string       `json:"fpClientId,omitempty" value:"required"`
	FPServerCertCommonName             *string       `json:"fpServerCertCommonName,omitempty"`
	FPServicePrincipalID               *string       `json:"fpServicePrincipalId,omitempty" value:"required"`
	GlobalResourceGroupName            *string       `json:"globalResourceGroupName,omitempty" value:"required"`
	GlobalResourceGroupLocation        *string       `json:"globalResourceGroupLocation,omitempty" value:"required"`
	GlobalSubscriptionID               *string       `json:"globalSubscriptionId,omitempty" value:"required"`
	KeyvaultDNSSuffix                  *string       `json:"keyvaultDNSSuffix,omitempty" value:"required"`
	KeyvaultPrefix                     *string       `json:"keyvaultPrefix,omitempty" value:"required"`
	MDMFrontendURL                     *string       `json:"mdmFrontendUrl,omitempty" value:"required"`
	MDSDEnvironment                    *string       `json:"mdsdEnvironment,omitempty" value:"required"`
	PortalAccessGroupIDs               []string      `json:"portalAccessGroupIds,omitempty" value:"required"`
	PortalClientID                     *string       `json:"portalClientId,omitempty" value:"required"`
	PortalElevatedGroupIDs             []string      `json:"portalElevatedGroupIds,omitempty" value:"required"`
	RPFeatures                         []string      `json:"rpFeatures,omitempty"`
	RPImagePrefix                      *string       `json:"rpImagePrefix,omitempty" value:"required"`
	RPMDSDConfigVersion                *string       `json:"rpMdsdConfigVersion,omitempty" value:"required"`
	RPNSGSourceAddressPrefixes         []string      `json:"rpNsgSourceAddressPrefixes,omitempty" value:"required"`
	RPParentDomainName                 *string       `json:"rpParentDomainName,omitempty" value:"required"`
	SubscriptionResourceGroupName      *string       `json:"subscriptionResourceGroupName,omitempty" value:"required"`
	SubscriptionResourceGroupLocation  *string       `json:"subscriptionResourceGroupLocation,omitempty" value:"required"`
	RPVMSSCapacity                     *int          `json:"rpVmssCapacity,omitempty"`
	SSHPublicKey                       *string       `json:"sshPublicKey,omitempty" value:"required"`
	StorageAccountDomain               *string       `json:"storageAccountDomain,omitempty" value:"required"`
	VMSize                             *string       `json:"vmSize,omitempty" value:"required"`
}

Configuration represents configuration structure

type Deployer

type Deployer interface {
	PreDeploy(context.Context) error
	DeployRP(context.Context) error
	UpgradeRP(context.Context) error
	SaveVersion(context.Context) error
}

func New

func New(ctx context.Context, log *logrus.Entry, _env env.Core, config *RPConfig, version string) (Deployer, error)

New initiates new deploy utility object

type RPConfig

type RPConfig struct {
	Location            string         `json:"location,omitempty"`
	SubscriptionID      string         `json:"subscriptionId,omitempty"`
	RPResourceGroupName string         `json:"rpResourceGroupName,omitempty"`
	Configuration       *Configuration `json:"configuration,omitempty"`
}

RPConfig represents individual RP configuration

func GetConfig

func GetConfig(path, location string) (*RPConfig, error)

GetConfig return RP configuration from the file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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