Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into sp-docs-update
  • Loading branch information
Sakthi Vetrivel committed Aug 17, 2020
2 parents 124dc90 + 61732fa commit 9112a7e
Show file tree
Hide file tree
Showing 91 changed files with 837 additions and 886 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @frodopwns @WilliamMortlMicrosoft @jananivMS @davefellows @theunrepentantgeek @porges @matthchr
* @frodopwns @WilliamMortlMicrosoft @jananivMS @davefellows @theunrepentantgeek @porges @matthchr @babbageclunk
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ test-cleanup-azure-resources:
az group delete --name $$rgname --no-wait --yes; \
done

for rgname in `az group list --query "[*].[name]" -o table | grep 'rg-prime$$' `; do \
echo "$$rgname will be deleted"; \
az group delete --name $$rgname --no-wait --yes; \
done

# Build the docker image
docker-build:
docker build . -t ${IMG} ${ARGS}
Expand Down
3 changes: 3 additions & 0 deletions api/v1alpha1/azurepublicipaddress_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
type AzurePublicIPAddressSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

Location string `json:"location"`
// +kubebuilder:validation:Pattern=^[-\w\._\(\)]+$
// +kubebuilder:validation:MinLength:1
Expand All @@ -23,6 +24,8 @@ type AzurePublicIPAddressSpec struct {
IdleTimeoutInMinutes int `json:"idleTimeoutInMinutes"`
PublicIPAddressVersion string `json:"publicIPAddressVersion"`
SkuName string `json:"skuName"`
// +optional
IPTags map[string]string `json:"ipTags,omitempty"`
}

// +kubebuilder:object:root=true
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/azurepublicipaddress_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ var _ = Describe("AzurePublicIPAddress", func() {
IdleTimeoutInMinutes: 3,
PublicIPAddressVersion: "IPv4",
SkuName: "Basic",
IPTags: map[string]string{"TestIpTag": "/Test/VipPool"},
}}

By("creating an API obj")
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/azuresqldatabase_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type AzureSqlDatabaseList struct {
Items []AzureSqlDatabase `json:"items"`
}

// DBEdition - wraps: https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql#DatabaseEdition
// DBEdition - wraps: https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql#DatabaseEdition
type DBEdition byte

const (
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/azuresqlfailovergroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type AzureSqlFailoverGroupList struct {
Items []AzureSqlFailoverGroup `json:"items"`
}

// ReadWriteEndpointFailoverPolicy - wraps https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql#ReadWriteEndpointFailoverPolicy
// ReadWriteEndpointFailoverPolicy - wraps https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql#ReadWriteEndpointFailoverPolicy
type ReadWriteEndpointFailoverPolicy string

const (
Expand Down
9 changes: 8 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

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

49 changes: 40 additions & 9 deletions api/v1beta1/azuresqldatabase_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,41 @@ package v1beta1

import (
helpers "github.com/Azure/azure-service-operator/pkg/helpers"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

type DBEdition byte

const (
SqlDatabaseEditionBasic = DBEdition(0)
SqlDatabaseEditionDataWarehouse = DBEdition(3)
SqlDatabaseEditionFree = DBEdition(4)
SqlDatabaseEditionGeneralPurpose = DBEdition(5)
SqlDatabaseEditionHyperscale = DBEdition(6)
SqlDatabaseEditionPremium = DBEdition(7)
SqlDatabaseEditionStandard = DBEdition(9)
SqlDatabaseEditionStretch = DBEdition(10)
)

type SqlDatabaseSku struct {
// Name - The name of the SKU, typically, a letter + Number code, e.g. P3.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength:1
Name string `json:"name"`
// optional
// Tier - The tier or edition of the particular SKU, e.g. Basic, Premium.
Tier string `json:"tier,omitempty"`
// Size - Size of the particular SKU
Size string `json:"size,omitempty"`
// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
Family string `json:"family,omitempty"`
// Capacity - Capacity of the particular SKU.
Capacity *int32 `json:"capacity,omitempty"`
}

// AzureSqlDatabaseSpec defines the desired state of AzureSqlDatabase
type AzureSqlDatabaseSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Expand All @@ -20,15 +48,18 @@ type AzureSqlDatabaseSpec struct {
// +kubebuilder:validation:Pattern=^[-\w\._\(\)]+$
// +kubebuilder:validation:MinLength:1
// +kubebuilder:validation:Required
ResourceGroup string `json:"resourceGroup"`
Server string `json:"server"`
Edition DBEdition `json:"edition"`
// optional
DbName string `json:"dbName,omitempty"`
WeeklyRetention string `json:"weeklyRetention,omitempty"`
MonthlyRetention string `json:"monthlyRetention,omitempty"`
YearlyRetention string `json:"yearlyRetention,omitempty"`
WeekOfYear int32 `json:"weekOfYear,omitempty"`
ResourceGroup string `json:"resourceGroup"`
Server string `json:"server"`

// +kubebuilder:validation:Optional
Edition DBEdition `json:"edition"` // TODO: Remove this in v1beta2
Sku *SqlDatabaseSku `json:"sku,omitempty"` // TODO: make this required in v1beta2
MaxSize *resource.Quantity `json:"maxSize,omitempty"`
DbName string `json:"dbName,omitempty"`
WeeklyRetention string `json:"weeklyRetention,omitempty"`
MonthlyRetention string `json:"monthlyRetention,omitempty"`
YearlyRetention string `json:"yearlyRetention,omitempty"`
WeekOfYear int32 `json:"weekOfYear,omitempty"`
}

// +kubebuilder:object:root=true
Expand Down
32 changes: 31 additions & 1 deletion api/v1beta1/zz_generated.deepcopy.go

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

Binary file modified charts/azure-service-operator-0.1.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ spec:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
Expand All @@ -51,84 +47,64 @@ spec:
properties:
properties:
apiRevision:
description: APIRevision - Describes the Revision of the Api. If
no value is provided, default revision 1 is created
description: APIRevision - Describes the Revision of the Api. If no value is provided, default revision 1 is created
type: string
apiRevisionDescription:
description: APIRevisionDescription - Description of the Api Revision.
type: string
apiVersion:
description: APIVersion - Indicates the Version identifier of the
API if the API is versioned
description: APIVersion - Indicates the Version identifier of the API if the API is versioned
type: string
apiVersionDescription:
description: APIVersionDescription - Description of the Api Version.
type: string
apiVersionSetId:
description: APIVersionSetID - A resource identifier for the related
ApiVersionSet.
description: APIVersionSetID - A resource identifier for the related ApiVersionSet.
type: string
apiVersionSets:
description: APIVersionSet - APIVersionSetContractDetails an API
Version Set contains the common configuration for a set of API
versions.
description: APIVersionSet - APIVersionSetContractDetails an API Version Set contains the common configuration for a set of API versions.
properties:
description:
description: Description - Description of API Version Set.
type: string
id:
description: ID - Identifier for existing API Version Set. Omit
this value to create a new Version Set.
description: ID - Identifier for existing API Version Set. Omit this value to create a new Version Set.
type: string
name:
description: Name - The display Name of the API Version Set.
type: string
type: object
description:
description: Description - Description of the API. May include HTML
formatting tags.
description: Description - Description of the API. May include HTML formatting tags.
type: string
displayName:
description: DisplayName - API name. Must be 1 to 300 characters
long.
description: DisplayName - API name. Must be 1 to 300 characters long.
type: string
format:
description: " Format - Format of the Content in which the API is
getting imported. Possible values include: \t'WadlXML', 'WadlLinkJSON',
'SwaggerJSON', 'SwaggerLinkJSON', 'Wsdl', 'WsdlLink', 'Openapi',
'Openapijson', 'OpenapiLink'"
description: " Format - Format of the Content in which the API is getting imported. Possible values include: \t'WadlXML', 'WadlLinkJSON', 'SwaggerJSON', 'SwaggerLinkJSON', 'Wsdl', 'WsdlLink', 'Openapi', 'Openapijson', 'OpenapiLink'"
type: string
isCurrent:
description: IsCurrent - Indicates if API revision is current api
revision.
description: IsCurrent - Indicates if API revision is current api revision.
type: boolean
isOnline:
description: IsOnline - READ-ONLY; Indicates if API revision is
accessible via the gateway.
description: IsOnline - READ-ONLY; Indicates if API revision is accessible via the gateway.
type: boolean
path:
description: " Path - Relative URL uniquely identifying this API
and all of its resource paths within the API Management service
instance. \tIt is appended to the API endpoint base URL specified
during the service instance creation to form a public URL for
this API."
description: " Path - Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. \tIt is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API."
type: string
protocols:
description: Protocols - Describes on which protocols the operations
in this API can be invoked.
description: Protocols - Describes on which protocols the operations in this API can be invoked.
items:
type: string
type: array
serviceUrl:
description: ServiceURL - Absolute URL of the backend service implementing
this API. Cannot be more than 2000 characters long.
description: ServiceURL - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
type: string
sourceApiId:
description: SourceAPIID - API identifier of the source API.
type: string
subscriptionRequired:
description: SubscriptionRequired - Specifies whether an API or
Product subscription is required for accessing the API.
description: SubscriptionRequired - Specifies whether an API or Product subscription is required for accessing the API.
type: boolean
type: object
resourceGroup:
Expand All @@ -142,8 +118,7 @@ spec:
- resourceGroup
type: object
status:
description: ASOStatus (AzureServiceOperatorsStatus) defines the observed
state of resource actions
description: ASOStatus (AzureServiceOperatorsStatus) defines the observed state of resource actions
properties:
completed:
format: date-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@ spec:
description: ApimService is the Schema for the apimservices API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
Expand All @@ -56,8 +52,7 @@ spec:
resourceGroup:
type: string
tier:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "make" to regenerate code after modifying this file'
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster Important: Run "make" to regenerate code after modifying this file'
type: string
vnetName:
type: string
Expand All @@ -75,8 +70,7 @@ spec:
- vnetResourceGroup
type: object
status:
description: ASOStatus (AzureServiceOperatorsStatus) defines the observed
state of resource actions
description: ASOStatus (AzureServiceOperatorsStatus) defines the observed state of resource actions
properties:
completed:
format: date-time
Expand Down
Loading

0 comments on commit 9112a7e

Please sign in to comment.