Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

add Azure/azure-service-operator #17

Merged
merged 2 commits into from
Nov 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: Check Code Generator
run: cargo check --package code-generator --locked
- name: Check all CRDs
- name: Check changed CRDs
run: |
for mld in ./kube-custom-resources-rs/src/*; do
if [ -f "${mld}/mod.rs" ]; then
module=$(basename "${mld}")
echo "testing ${module}"
cargo check --package kube-custom-resources-rs --features "${module}" --locked
fi
for module in $(git diff --name-only origin/main -- ./kube-custom-resources-rs/src | grep --invert-match lib.rs | xargs --no-run-if-empty -I{} dirname {} | sort --unique | xargs --no-run-if-empty -I{} basename {}); do
echo "testing ${module}"
cargo check --package kube-custom-resources-rs --features "${module}" --locked
done
env:
RUSTFLAGS: "-A warnings"
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ Files: crd-catalog/aws-controllers-k8s/sfn-controller/*
Copyright: The aws-controllers-k8s/sfn-controller Authors
License: Apache-2.0

Files: crd-catalog/Azure/azure-service-operator/*
Copyright: The Azure/azure-service-operator Authors
License: Apache-2.0

Files: crd-catalog/b3scale/b3scale-operator/*
Copyright: The b3scale/b3scale-operator Authors
License: Apache-2.0
Expand Down
48 changes: 48 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,54 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/aws-controllers-k8s/sfn-controller/blob/main/config/crd/bases/sfn.services.k8s.aws_statemachines.yaml",
],
},
UpstreamSource {
project_name: "Azure/azure-service-operator",
license: APACHE_V2,
urls: &[
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_apimgmtapis.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_apimservices.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_appinsights.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_appinsightsapikeys.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azureloadbalancers.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azurenetworkinterfaces.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azurepublicipaddresses.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azuresqlactions.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azuresqldatabases.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azuresqlfailovergroups.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azuresqlfirewallrules.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azuresqlmanagedusers.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azuresqlservers.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azuresqlusers.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azuresqlvnetrules.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azurevirtualmachineextensions.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azurevirtualmachines.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_azurevmscalesets.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_blobcontainers.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_consumergroups.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_cosmosdbs.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_eventhubnamespaces.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_eventhubs.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_keyvaultkeys.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_keyvaults.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_mysqlaadusers.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_mysqldatabases.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_mysqlfirewallrules.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_mysqlserveradministrators.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_mysqlservers.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_mysqlusers.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_mysqlvnetrules.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_postgresqldatabases.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_postgresqlfirewallrules.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_postgresqlservers.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_postgresqlusers.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_postgresqlvnetrules.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_rediscacheactions.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_rediscachefirewallrules.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_resourcegroups.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_storageaccounts.azure.microsoft.com.yaml",
"https://github.com/Azure/azure-service-operator/blob/main/charts/azure-service-operator/crds/apiextensions.k8s.io_v1_customresourcedefinition_virtualnetworks.azure.microsoft.com.yaml",
],
},
UpstreamSource {
project_name: "b3scale/b3scale-operator",
license: APACHE_V2,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.8.0
name: apimgmtapis.azure.microsoft.com
spec:
group: azure.microsoft.com
names:
kind: APIMgmtAPI
listKind: APIMgmtAPIList
plural: apimgmtapis
shortNames:
- apim
singular: apimgmtapi
preserveUnknownFields: false
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.provisioned
name: Provisioned
type: string
- jsonPath: .status.message
name: Message
type: string
name: v1alpha1
schema:
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'
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'
type: string
metadata:
type: object
spec:
description: APIMgmtSpec defines the desired state of APIMgmt
properties:
apiId:
type: string
apiService:
type: string
location:
type: string
properties:
properties:
apiRevision:
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
type: string
apiVersionDescription:
description: APIVersionDescription - Description of the Api Version.
type: string
apiVersionSetId:
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.
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.
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.
type: string
displayName:
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: ''WadlXML'', ''WadlLinkJSON'', ''SwaggerJSON'', ''SwaggerLinkJSON'', ''Wsdl'', ''WsdlLink'', ''Openapi'', ''Openapijson'', ''OpenapiLink'''
type: string
isCurrent:
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.
type: boolean
path:
description: Path - Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It 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.
items:
type: string
type: array
serviceUrl:
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.
type: boolean
type: object
resourceGroup:
minLength: 1
pattern: ^[-\w\._\(\)]+$
type: string
required:
- apiId
- apiService
- location
- properties
- resourceGroup
type: object
status:
description: ASOStatus (AzureServiceOperatorsStatus) defines the observed state of resource actions
properties:
completed:
format: date-time
type: string
containsUpdate:
type: boolean
failedProvisioning:
type: boolean
flattenedSecrets:
type: boolean
message:
type: string
output:
type: string
pollingUrl:
type: string
pollingUrlKind:
enum:
- CreateOrUpdate
- Delete
type: string
provisioned:
type: boolean
provisioning:
type: boolean
requested:
format: date-time
type: string
resourceId:
type: string
specHash:
type: string
state:
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ''
plural: ''
conditions: []
storedVersions: []
Loading