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 aws-controllers-k8s/sqs-controller #175

Merged
merged 1 commit into from
Feb 18, 2024
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
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ Files: crd-catalog/aws-controllers-k8s/sfn-controller/*
Copyright: The aws-controllers-k8s/sfn-controller Authors
License: Apache-2.0

Files: crd-catalog/aws-controllers-k8s/sqs-controller/*
Copyright: The aws-controllers-k8s/sqs-controller Authors
License: Apache-2.0

Files: crd-catalog/Azure/azure-service-operator/*
Copyright: The Azure/azure-service-operator Authors
License: Apache-2.0
Expand Down
7 changes: 7 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,13 @@ 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: "aws-controllers-k8s/sqs-controller",
license: APACHE_V2,
urls: &[
"https://github.com/aws-controllers-k8s/sqs-controller/blob/main/config/crd/bases/sqs.services.k8s.aws_queues.yaml",
],
},
UpstreamSource {
project_name: "Azure/azure-service-operator",
license: APACHE_V2,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
apiVersion: "apiextensions.k8s.io/v1"
kind: "CustomResourceDefinition"
metadata:
annotations:
controller-gen.kubebuilder.io/version: "v0.14.0"
name: "queues.sqs.services.k8s.aws"
spec:
group: "sqs.services.k8s.aws"
names:
kind: "Queue"
listKind: "QueueList"
plural: "queues"
singular: "queue"
scope: "Namespaced"
versions:
- name: "v1alpha1"
schema:
openAPIV3Schema:
description: "Queue is the Schema for the Queues API"
properties:
apiVersion:
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore 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.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
type: "string"
metadata:
type: "object"
spec:
description: "QueueSpec defines the desired state of Queue."
properties:
contentBasedDeduplication:
type: "string"
delaySeconds:
type: "string"
fifoQueue:
type: "string"
kmsDataKeyReusePeriodSeconds:
type: "string"
kmsMasterKeyID:
type: "string"
kmsMasterKeyRef:
description: "AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference\ntype to provide more user friendly syntax for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t name: my-api"
properties:
from:
description: "AWSResourceReference provides all the values necessary to reference another\nk8s resource for finding the identifier(Id/ARN/Name)"
properties:
name:
type: "string"
type: "object"
type: "object"
maximumMessageSize:
type: "string"
messageRetentionPeriod:
type: "string"
policy:
type: "string"
policyRef:
description: "AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference\ntype to provide more user friendly syntax for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t name: my-api"
properties:
from:
description: "AWSResourceReference provides all the values necessary to reference another\nk8s resource for finding the identifier(Id/ARN/Name)"
properties:
name:
type: "string"
type: "object"
type: "object"
queueName:
type: "string"
receiveMessageWaitTimeSeconds:
type: "string"
redriveAllowPolicy:
type: "string"
redrivePolicy:
type: "string"
tags:
additionalProperties:
type: "string"
description: "Add cost allocation tags to the specified Amazon SQS queue. For an overview,\nsee Tagging Your Amazon SQS Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html)\nin the Amazon SQS Developer Guide.\n\n\nWhen you use queue tags, keep the following guidelines in mind:\n\n\n * Adding more than 50 tags to a queue isn't recommended.\n\n\n * Tags don't have any semantic meaning. Amazon SQS interprets tags as\n character strings.\n\n\n * Tags are case-sensitive.\n\n\n * A new tag with a key identical to that of an existing tag overwrites\n the existing tag.\n\n\nFor a full list of tag restrictions, see Quotas related to queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-limits.html#limits-queues)\nin the Amazon SQS Developer Guide.\n\n\nTo be able to tag a queue on creation, you must have the sqs:CreateQueue\nand sqs:TagQueue permissions.\n\n\nCross-account permissions don't apply to this action. For more information,\nsee Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name)\nin the Amazon SQS Developer Guide."
type: "object"
visibilityTimeout:
type: "string"
required:
- "queueName"
type: "object"
status:
description: "QueueStatus defines the observed state of Queue"
properties:
ackResourceMetadata:
description: "All CRs managed by ACK have a common `Status.ACKResourceMetadata` member\nthat is used to contain resource sync state, account ownership,\nconstructed ARN for the resource"
properties:
arn:
description: "ARN is the Amazon Resource Name for the resource. This is a\nglobally-unique identifier and is set only by the ACK service controller\nonce the controller has orchestrated the creation of the resource OR\nwhen it has verified that an \"adopted\" resource (a resource where the\nARN annotation was set by the Kubernetes user on the CR) exists and\nmatches the supplied CR's Spec field values.\nTODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse\nhttps://github.com/aws/aws-controllers-k8s/issues/270"
type: "string"
ownerAccountID:
description: "OwnerAccountID is the AWS Account ID of the account that owns the\nbackend AWS service API resource."
type: "string"
region:
description: "Region is the AWS region in which the resource exists or will exist."
type: "string"
required:
- "ownerAccountID"
- "region"
type: "object"
conditions:
description: "All CRS managed by ACK have a common `Status.Conditions` member that\ncontains a collection of `ackv1alpha1.Condition` objects that describe\nthe various terminal states of the CR and its backend AWS service API\nresource"
items:
description: "Condition is the common struct used by all CRDs managed by ACK service\ncontrollers to indicate terminal states of the CR and its backend AWS\nservice API resource"
properties:
lastTransitionTime:
description: "Last time the condition transitioned from one status to another."
format: "date-time"
type: "string"
message:
description: "A human readable message indicating details about the transition."
type: "string"
reason:
description: "The reason for the condition's last transition."
type: "string"
status:
description: "Status of the condition, one of True, False, Unknown."
type: "string"
type:
description: "Type is the type of the Condition"
type: "string"
required:
- "status"
- "type"
type: "object"
type: "array"
queueARN:
type: "string"
queueURL:
description: "The URL of the created Amazon SQS queue."
type: "string"
type: "object"
type: "object"
served: true
storage: true
subresources:
status: {}
1 change: 1 addition & 0 deletions kube-custom-resources-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ sonataflow_org = []
source_toolkit_fluxcd_io = []
sparkoperator_k8s_io = []
spv_no = []
sqs_services_k8s_aws = []
status_gatekeeper_sh = []
storage_kubeblocks_io = []
sts_min_io = []
Expand Down
7 changes: 7 additions & 0 deletions kube-custom-resources-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2516,6 +2516,11 @@ apiVersion `spv.no/v2alpha1`:
apiVersion `spv.no/v2beta1`:
- `AzureKeyVaultSecret`

## sqs_services_k8s_aws

apiVersion `sqs.services.k8s.aws/v1alpha1`:
- `Queue`

## status_gatekeeper_sh

apiVersion `status.gatekeeper.sh/v1beta1`:
Expand Down Expand Up @@ -3301,6 +3306,8 @@ pub mod source_toolkit_fluxcd_io;
pub mod sparkoperator_k8s_io;
#[cfg(feature = "spv_no")]
pub mod spv_no;
#[cfg(feature = "sqs_services_k8s_aws")]
pub mod sqs_services_k8s_aws;
#[cfg(feature = "status_gatekeeper_sh")]
pub mod status_gatekeeper_sh;
#[cfg(feature = "storage_kubeblocks_io")]
Expand Down
1 change: 1 addition & 0 deletions kube-custom-resources-rs/src/sqs_services_k8s_aws/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod v1alpha1;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod queues;
Loading